Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shawn_w
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
421.
▲
by
shawn_w
2y ago
Not so much macro magic, as not having to dispatch at runtime to the correct sequence constructor. (There is some magic if you use literals though).
422.
▲
by
shawn_w
2y ago
Scheme's `do` is implemented using recursion. There's a sample macro for it in 7.3.
423.
▲
by
shawn_w
2y ago
DSP chips are a common exception that people bring up. I think some TI made ones have 64 bit chars. Edit: I see TFA mentions them but questions how relevant C++ is in that sort of embedded environment.
424.
▲
by
shawn_w
2y ago
No, I mean do. It's basically just a C style for loop except with a return value. Nothing special.
425.
▲
by
shawn_w
2y ago
Racket splits up the iteration forms from what to iterate over (sequences[1]). You can compose different sequence constructors together, or make brand new ones, without introducing new syntax. It has limited destructuring - sequences can
426.
▲
by
shawn_w
2y ago
A rooster in full on attack mode can be pretty scary.
427.
▲
by
shawn_w
2y ago
If I used Common Lisp more I'd probably have a go at copying Racket's `for` forms[1]; they're really nice because you can usally tell at a glance what they're going to return - `for/list` returns a list for example.
428.
▲
by
shawn_w
2y ago
`do` is very straightforward and basic compared to the things that `loop` allows.
429.
▲
by
shawn_w
2y ago
And then there's Scheme, where there are no iterative loops; all looping is done with recursion. You can build pretty much everything other languages do with loops on top of that, though.
430.
▲
by
shawn_w
2y ago
It's just as easy to have thin wrappers over C/etc. number crunching libraries in Common Lisp as it is Python. And pure CL code is typically faster than pure Python (though pypy might be a different story). There's no technic
431.
▲
by
shawn_w
2y ago
emacs' smerge has always worked well for me.
432.
▲
by
shawn_w
2y ago
I wonder if they were testing with the paid, commercial version or the free evaluation version of LispWorks, which has significant restrictions. Most people playing around with this will be using sbcl though. It's overwhelmingly the mo
433.
▲
by
shawn_w
2y ago
Emacs has a package manager...
434.
▲
by
shawn_w
2y ago
Betteridge's law of headlines.
435.
▲
by
shawn_w
2y ago
I suspect that if you're fluent in the language, understanding an expression written in it comes just as easily and quickly as reading a sentence in a book does to me.
436.
▲
by
shawn_w
2y ago
puts() adds a newline at the end. gcc will happily turn printf("%s\n", str) into puts(str), though. I've never tested to see if printf("%s", str) becomes the equivalent fputs(str, stdout)
437.
▲
by
shawn_w
2y ago
Maybe if he punched the fish...
438.
▲
by
shawn_w
2y ago
>named let Serapeum has you covered: https://github.com/ruricolist/serapeum/blob/master/REFERENCE...
439.
▲
by
shawn_w
2y ago
For SICP, the best option is probably Racket with the sicp language package. I can't recommend MIT Scheme for anything these days; it's just missing too many things that I feel are required for real work in Scheme, and has too man
440.
▲
by
shawn_w
2y ago
In my experience, guile these days is often faster than chicken, even compiled (the csi interpreter is dog slow and not suitable for anything but interactive exploration). Chicken is just not a fast implementation. Plus guile comes with a m
441.
▲
by
shawn_w
2y ago
"Go bot" made me think of the old toy line and wonder if someone made a motorized one.
442.
▲
by
shawn_w
2y ago
You can embed BF directly in your perl code! https://metacpan.org/pod/Acme::Brainfuck There's an Ook! interpreter too but it's more limited. https://metacpan.org/pod/Language::Ook
443.
▲
by
shawn_w
2y ago
Monthly? It's been over a year since the last quicklisp library update... Quick is not the word for it any more.
444.
▲
by
shawn_w
2y ago
1.6? Wonder why they went with an outdated version.
445.
▲
by
shawn_w
2y ago
It's not based on the Transit. One of the submitted designs was, but it didn't win the contract bid. Edit: looks like it was an early prototype from Oshkosh with very little in common with the final product: https://www
446.
▲
by
shawn_w
2y ago
>It’s conceivable there are several same level civilizations in the galaxy that would compete with the Culture if they ever met. More than conceivable, we see them in some of the books.
447.
▲
by
shawn_w
2y ago
Actual Meta thread: https://meta.stackoverflow.com/questions/420337/what-is-the-...
448.
▲
by
shawn_w
2y ago
Windows has poll(), it's just called WSAPoll() and, like their select(), only works with sockets. https://learn.microsoft.com/en-us/windows/win32/api/winsock2...
449.
▲
by
shawn_w
2y ago
Mostly yes, and it doesn't help that the template heavy API makes it really hard to improve things internally without breaking the ABI. See https://stackoverflow.com/questions/70583395/why-is-stdregex...
450.
▲
by
shawn_w
2y ago
Maybe if all you want to do is unconditionally extract certain columns from your data. But even in that case cut doesn't let you use a regular expression as the field delimiter.
More ›