Skip to content

Instantly share code, notes, and snippets.

use zeromq
import zeromq, threading/Thread, os/Time
me: Socket
Actor: class extends Thread {
ctx: Context
me: Socket
init: func(=ctx) {
In file included from rock_tmp/./Signal.c:3:
In file included from .libs/tmp/./Signal.h:6:
.libs/tmp/./Signal-fwd.h:117:9: error: unknown type name 'uint16_t'
typedef uint16_t Signal____Le16;
^
.libs/tmp/./Signal-fwd.h:118:9: error: unknown type name 'uint32_t'
typedef uint32_t Signal____Le32;
^
.libs/tmp/./Signal-fwd.h:120:9: error: unknown type name 'uint64_t'
typedef uint64_t Signal____Le64;
rock_tmp/./Resource.c:132:37: error: invalid application of 'sizeof' to an incomplete type 'Resource__StructRlimit64' (aka 'struct rlimit64')
.instanceSize = sizeof(Resource__StructRlimit64),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from rock_tmp/./Resource.c:3:
In file included from .libs/tmp/./Resource.h:6:
.libs/tmp/./Resource-fwd.h:13:16: note: forward declaration of 'struct rlimit64'
typedef struct rlimit64 Resource__StructRlimit64;
^
rock_tmp/./Resource.c:133:29: error: invalid application of 'sizeof' to an incomplete type 'Resource__StructRlimit64' (aka 'struct rlimit64')
.size = sizeof(Resource__StructRlimit64),
#0 0x08069494 in rock_middle_FunctionCall__FunctionCall_getRef (this=0x0) at source/rock/middle/FunctionCall.ooc:1319
#1 0x0806c6e0 in rock_middle_FunctionDecl__FunctionDecl_unwrapClosure_impl (this=0x8189ea0, trail=0x8d37640, res=0x8b083e8) at source/rock/middle/FunctionDecl.ooc:792
#2 0x0806e9d6 in rock_middle_FunctionDecl__FunctionDecl_unwrapClosure (this=0x8189ea0, trail=0x8d37640, res=0x8b083e8) at source/rock/middle/FunctionDecl.ooc:1317
#3 0x0806bef2 in rock_middle_FunctionDecl__FunctionDecl_resolve_impl (this=0x8189ea0, trail=0x8d37640, res=0x8b083e8) at source/rock/middle/FunctionDecl.ooc:652
#4 0x080584a3 in rock_middle_Node__Node_resolve (this=0x8189ea0, trail=0x8d37640, res=0x8b083e8) at source/rock/middle/Node.ooc:79
#5 0x0805cea9 in rock_middle_VariableDecl__VariableDecl_resolve_impl (this=0x8146c80, trail=0x8d37640, res=0x8b083e8) at source/rock/middle/VariableDecl.ooc:149
#6 0x080584a3 in rock_middle_Node__Node_resolve (this=0x8146c80, trail=0x8d37640, res=0x8b083e8) at source/rock/midd
import structs/HashMap
main: func {
a := HashMap<String, String> new()
a["a"] = "b"
a each(| val |
val println()
)
}
if(!absorbed) {
cache each(| other |
if (!absorbed) {
other getGlobalImports() filter (| imp | imp path == module getFullName()) \
each(| imp |
addon := other getTypes() get(name)
if(!addon) {
addon as CoverDecl absorb(cDecl, params)
absorbed = true
}
if (myObject == blubType || blahType) {
doTheSame();
}
if (42 == (lang_Numbers__SSizeT) "3" || 42 == (lang_Numbers__SSizeT) "2" || 42 == (lang_Numbers__SSizeT) "cd"){
{
}
} else if (42 == (lang_Numbers__SSizeT) NULL){
{
}
} else {
a := event key
b := a keysym
c := b unicode
match (c) {}
import io/Reader
import math
import structs/ArrayList
import text/[Buffer,StringReader]
TokenType: enum {
None
Number
Operator
}