Browsing the source code, I came across something completely unexpected. I didn't know you could put code in structs like this sample from kamby/kamby.c struct KaNode *ka_add(struct KaNode *node, struct KaNode **env) { if (node->type == KA_STR && node->next->type == KA_STR) { struct KaNode *output = ka_str(node->str); strcat(output->str, node->next->str); return output; } return ka_num(node->num + node->next->num); }…
Kamby – A programming language based on Lisp that doesn't seem like Lisp
11–20 of 53 posts
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#12Did someone just reinvent Rebol/Red?
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#13What is Kamby? A small, embeddable and convenient language for who want to use and understand what is happening behind the scenes. The core is just ~400LOC and binary has just 20kb.
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#14What is Kamby? A small, embeddable and convenient language for who want to use and understand what is happening behind the scenes. The core is just ~400LOC and binary has just 20kb.
The more I explore the github, the more amazed I am... the same code compiles to WASM too? Thanks!
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#15Did someone just reinvent Rebol/Red?
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#16Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#17And yet its still filled with unncessary parentheses like an involuntary tic.
But there's always Forth for the the lighter taste in delimiters: https://github.com/TexTerry/forth-examples/blob/master/pasca...
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#18And yet its still filled with unncessary parentheses like an involuntary tic.
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#19Where are the macros?
Re: Kamby – A programming language based on Lisp that doesn't seem like Lisp
#20Anyway again very inspiring :)