Hash :
16410bc7
Author :
Thomas de Grivel
Date :
2024-07-29T18:50:42
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
module()
List.reverse([1, 2, 3])
List.reverse([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
(List) {1, 2}
?
cow 1
(Tag) cow 1
a = cow 1
a
a + 1
cow 1
type(cow 1)
cow 1 + cow 1
cow(1) + cow(1)
quote [a: 1, b: 2]
quote [{:a, 1}, {:b, 2}]
%C3.Operator{}
%GL.Vertex{}
123.456
abc.def
%{a: 1}
%{a: 1}.a
x = %C3.Operator{}
x.sym
quote x.sym
x = %C3.Operator{}
x.sym
x = %{
x = %C3.Operator{sym: :-}
x = %C3.Operator{sym: 1}
x = %C3.Operator{sym: (Sym) "1"}
x = %C3.Operator{sym: :1}
x = %KC3.Operator{sym: :1}
s = Socket.listen("localhost", 8000)
(s8) -128
(S8) -128
type(-128)
type(-127)
128*128
128 * 128
256 * 256 - 1
type(256 * 256 - 1)
type(-256 * 256 - 1)
type(-256 * 256 + 1)
-256 * 256 + 1
type(-65536 * 65536 + 1)
type(-65536 * 65536 - 1)
type(-65536 * 65536 + 1)
-256 * 256 + 1
type(-256 * 256 + 1)
type(-256 * 256 / 8 + 1)
type(-256 * 256 / 2 + 1)
type(-256 * 128 + 1)
type(-256 * 128 + 2)
type(-256 * 256 / 2 + 1)
type(-128 * 128 / 2 + 1)
type(-255 * 256 / 2 + 1)
type(-255 * 256 + 1)
-255 * 256 + 1
-255 * 256
-256 * 256 / 2
-256 * 256 / 2 + 1
type(-32767)
type(-256 * 256 / 2 + 1)
-32767
type(-32767)
(S16) -32767
i = type(-32767)
-32768 * 65536
-32768 * 65536 + 1
-2147483648 * 65536 * 65536 + 1
q
%KC3.Operator{}
%KC3.Operator{sym: :-}
op = %KC3.Operator{sym: :-}
op.sym
op = %{id: 1, sym: :-}
op.id
type(op.id)
type(op.sym)
(Str) op.sym
[fd: (S32) -1]
load("https://git.kmx.io/kc3-lang/kc3/
)
load("lib/kc3/0.1/s32.facts")
(S32) 1
(S32) -1
[fd: (S32) -1]
defmodule Socket do defstruct [fd: (S32) -1]; end
defmodule Socket do
dlopen("lib/kc3/0.1/http.so")
def connect = cfn Socket.Buf "socket_buf_init_connect" (Result, Str, Str)
end
22
server = Socket.listen("192.168.1.50
2
server = Socket.listen("192.168.2.50", "58000")
server_client = Socket.Buf.accept(server)
req = HTTP.Request.buf_parse(server_client.buf_rw.r)