Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bakpakin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
bakpakin
4y ago
I learned to program on scratch in the 6th grade when it was very new, circa 2008. In many ways, it is more real than other learning languages. In retrospect, the smalltalk influence of scratch I think left such an impression on me that I c
2.
▲
by
bakpakin
4y ago
anyone else just define a function log(msg) the prints to stderr or maybe stdout and use that instead for simple programs/daemons? I never really got the big value proposition of seven-leveled logging or the complexity of it. If I need
3.
▲
by
bakpakin
5y ago
Probably unlikely to be added in the core (esp. HTTP/2), but an HTTP/1 implementation could be done in pure janet - there is a binding of just a parser here: https://github.com/andrewchambers/janet-pico-http-p
4.
▲
by
bakpakin
5y ago
Thanks you very much for the support, I can totally understand that position. We have been making great progress in terms of features since then to "flesh out" the languages and libraries including threading support, an event loop
5.
▲
by
bakpakin
6y ago
A list refers to a singly-linked list, while tuples are implemented as immutable arrays. The former is flexible in that multiple lists can hare structure, and prepending to a list is an O(1) operation that does not change the original list
6.
▲
by
bakpakin
6y ago
Author here. Firstly, this is a rather silly argument in general. One could say that Embeddable Common Lisp and Guile address the same niche and all developers from one project should consolidate in the other. I have not used Guile to any e
7.
▲
by
bakpakin
6y ago
This does change the language drastically - source code is represented as tuples usually, although all of the core data structures have literal forms. This means writing macros is still easy, although certain idioms like consing are usually
8.
▲
by
bakpakin
7y ago
Checkout libk https://c.hale.su/lexi/libk/home
9.
▲
by
bakpakin
8y ago
Janet uses setjmp/longjmp for error handling because most alternatives in C don't compose well or are incredibly verbose/inefficient. The C API is not documented yet, but in general one could use setjmp at C++/Rust <-
10.
▲
by
bakpakin
8y ago
Seems to be elf vs mach-o - clang on linux is more or less the same size, actually larger than gcc. Probably also some linking stuff on macosx vs. linux.
11.
▲
by
bakpakin
8y ago
Author here Yes, on most linux systems its closer to about 375 kB right now with the default build. For some reason it is much smaller on macOS, and can be smaller when built with -Os, and even smaller when built without the assembler, peg,
12.
▲
by
bakpakin
8y ago
Pretty cool tool, the NLP focus is surprising but I'm not sure if it is a marketing ploy or fundamental to the technology. The nice syntax is also an improvement over things like LPeg, which seem to obscure the grammar by forcing it to
13.
▲
by
bakpakin
9y ago
Author of Fennel here. Urn seems to be greater in scope and code. Fennel is intentionally small and a single file that can be dragged into any project. Fennel does not try to provide Lisp idioms or abstractions unless they have a direct map
14.
▲
by
bakpakin
9y ago
That's true. I don't want to criticize Guile or Lisp implementations in general, which have a number of features that Lua can't easily emulate (a numeric tower, true continuations, probably a whole lot more I'm not aware
15.
▲
by
bakpakin
9y ago
I like lisp and prefix notation in general, but I definitely still prefer reading large mathematical expressions in infix. Its really just a matter of preference.
16.
▲
by
bakpakin
9y ago
Original author here: The largest reason for use of S exprs is making Meta programming easier. While certain things like arithmetic are more difficult with S-exprs, Macros and DSLs are far easier than with C like syntax. Since Lua is actua