Skip to content

Instantly share code, notes, and snippets.

View 5HT's full-sized avatar
🌐
I'm very skeptical that person without empathy can create beautiful mathematics.

Namdak Tonpa 5HT

🌐
I'm very skeptical that person without empathy can create beautiful mathematics.
View GitHub Profile
@5HT
5HT / gist:029c5250531591be3db4
Last active August 29, 2015 14:16
N2O is an extensible protocol for IoT and WebSoсket applications
Название Доклада: Расширяемый протокол
прикладного уровня N2O для IoT и WebSoсket приложений.
Описание Доклада: Классификация и история развития
протоколов и моделей. Место современных протоколов
и их тенденции. Современные WebSocket real-time
протоколы. Опыт создания инфраструктуры вокруг
бинарного универсального расширяемого протокола.
Тезисы: В основном сейчас доминируют бинарные компактные
_ _ _
__| | ___ _ __ ___ ___(_) |_ ___
/ _. |/ _ \ ._ \ / _ \/ __| | __/ __|
| (_| | __/ |_) | (_) \__ \ | |_\__ \
\__._|\___| .__/ \___/|___/_|\__|___/
|_| N2O v.2.3
20:03:27.910 [info] Ready to start: '[email protected]'
20:03:27.946 [info] ENSEMBLE INIT: {tps_cluster,{2,'[email protected]'}}
20:03:42.860 [info] ENSEMBLE PING: {}
20:03:42.860 [info] {2,'[email protected]'}: Leading
20:03:42.861 [info] ENSEMBLE TICK: Epoch: 7
Seq: 0
Leader: {2,'[email protected]'}
Views: [[{2,'[email protected]'},{3,'[email protected]'}]]
[ALL ] Transcript written on libc.log.
[ALL ] /usr/bin/texi2dvi: pdfetex exited with bad status, quitting.
[ALL ] /usr/bin/texi2dvi: see libc.log for errors.
[ERROR] make[5]: *** [libc.pdf] Error 1
[ALL ] make[5]: Leaving directory `/Volumes/CROSS/crosstool-ng/.build/mipsel-unknown-elf/build/build-libc/mipsel-unknown-elf/newlib/libc'
[ERROR] make[4]: *** [pdf-recursive] Error 1
[ALL ] make[4]: Leaving directory `/Volumes/CROSS/crosstool-ng/.build/mipsel-unknown-elf/build/build-libc/mipsel-unknown-elf/newlib/libc'
bash-3.2$
[ERROR] make[3]: *** [pdf-recursive] Error 1
[ALL ] make[3]: Leaving directory `/Volumes/CROSS/crosstool-ng/.build/mipsel-unknown-elf/build/build-libc/mipsel-unknown-elf/newlib'
[INFO ] =================================================================
[INFO ] Installing libelf for the target
[DEBUG] Entering '/Volumes/CROSS/crosstool-ng/.build/mipsel-unknown-elf/build/build-libelf-target-mipsel-unknown-elf'
[EXTRA] Configuring libelf
[DEBUG] ==> Executing: 'CC=mipsel-unknown-elf-gcc' 'RANLIB=mipsel-unknown-elf-ranlib' 'CFLAGS= -fPIC' 'LDFLAGS=' '/Volumes/CROSS/crosstool-ng/.build/src/libelf-0.8.13/configure' '--build=x86_64-build_apple-darwin14.3.0' '--host=mipsel-unknown-elf' '--target=mipsel-unknown-elf' '--prefix=/usr' '--enable-compat' '--enable-elf64' '--enable-extended-format' '--enable-static' '--enable-shared'
[CFG ] creating cache ./config.cache
[CFG ] checking whether make sets ${MAKE}... yes
[CFG ] checking for gcc... mipsel-unknown-elf-gcc
[CFG ] checking whether the C compiler (mipsel-unknown-elf-gcc -fPIC ) works... no
[ERROR] configure: error: installation or configuration problem: C compiler cannot create executables.
$ as startup.S
startup.S:40:Expected comma after segment-name
startup.S:70:Unary operator ~ ignored because bad operand follows
startup.S:70:32-bit absolute addressing is not supported for x86-64
startup.S:70:cannot do signed 4 byte relocation
startup.S:75:Can't relocate expression. Absolute 0 assumed.
startup.S:80:32-bit absolute addressing is not supported for x86-64
startup.S:80:cannot do signed 4 byte relocation
startup.S:81:Unary operator ~ ignored because bad operand follows
startup.S:82:suffix or operands invalid for `push'
bash-3.2$ lldb mad.img
(lldb) target create "mad.img"
Current executable set to 'mad.img' (x86_64).
(lldb) run
Process 21608 launched: '/Users/5HT/depot/synrc/mad/mad.img' (x86_64)
Process 21608 stopped
* thread #1: tid = 0x2626b2, 0x00000000000c0248 mad.img`mem_malloc(size=72) + 168 at mem.c:548, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x00000000000c0248 mad.img`mem_malloc(size=72) + 168 at mem.c:548
545 }
546 #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
roster() ->
[{all,[d,b,l,x]},
{none,[]},
{d,[nova,noap,sort,deco]},
{b,[tur1,tur2,rmcp,baf1,sude,baf2,trac,maco,soco]},
{l,[cono,drun,eqno,free]},
{x,[sums,arsu]},
{nova,fun solve:nomenify_variables/1},
{noap,fun solve:nomenify_applies/1},
{sort,fun solve:new_order/1},
==> default: nettle-2.7.1/sexp-transport.c
==> default: nettle-2.7.1/rsa-sha512-verify.c
==> default: nettle-2.7.1/sha.h
==> default: nettle-2.7.1/getopt.h
==> default: nettle-2.7.1/sha256.c
==> default: nettle-2.7.1/sec-tabselect.c
==> default: nettle-2.7.1/hmac-sha256.c
==> default: nettle-2.7.1/nettle-internal.c
==> default: nettle-2.7.1/rsa-md5-sign.c
==> default: nettle-2.7.1/sha3-256-meta.c
$ git diff
diff --git a/include/mad.hrl b/include/mad.hrl
index 8302621..ca54a1f 100644
--- a/include/mad.hrl
+++ b/include/mad.hrl
@@ -1 +1 @@
--define(VERSION,"78713a").
+-define(VERSION,"95e4d5").
diff --git a/mad b/mad
index bbd7833..c7aa27c 100755