Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shawn_w
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
391.
▲
by
shawn_w
2y ago
It's now been picked up by the local news stations. https://www.king5.com/article/tech/university-of-washington-...
392.
▲
by
shawn_w
2y ago
I remember a version of Doom where each mob represented a process; believe shooting them with different weapons sent different signals.
393.
▲
by
shawn_w
2y ago
It's the Intel intrinsic `_mm256_set1_epi32()` except with an amusing name. Got to give Rust the win here.
394.
▲
by
shawn_w
2y ago
I'm not up to that, but I have a working S-Tree builder and basic AVX2-using `lower-bound` for it (as described in the Algorithmica article linked to in the post) up and running in SBCL. Haven't played with any of the fancier opti
395.
▲
by
shawn_w
2y ago
Thanks
396.
▲
by
shawn_w
2y ago
Fluent in C and C++ among others, know nothing about Rust. It's mostly easy to follow, but I'm having trouble with notation like `&[u32]` and `&[u32; P]`. Arrays that hold unsigned 32 bit integers? But there's `Vec<
397.
▲
by
shawn_w
2y ago
All this nattering about rust and C++, and then there's me thinking about how to do it in Common Lisp, possibly keeping the simd bits.
398.
▲
by
shawn_w
2y ago
Are you Stephen Bourne?
399.
▲
by
shawn_w
2y ago
I hate auto complete. The last thing I need is a "helpful" popup of choices. It's distracting and ruins my focus on the code. I have etags for jumping to a definition on the rare times I need to do that.
400.
▲
by
shawn_w
2y ago
sub foo { if (whatever) { open my $fh, ...; return $fh; } else { return \*STDOUT; } } will do the job.
401.
▲
by
shawn_w
2y ago
I've had the complete opposite experience. If I need to do more with non-ascii text then treat it as an opaque blob, I still haven't found anything better or easier than perl to do it in.
402.
▲
by
shawn_w
2y ago
I think any language that has a flatmap type construct would also have filter functions that would be a lot clearer to read and write... (remove-if #'evenp '(1 2 3)) vs (mapcan (lambda (n) (if (evenp n) '
403.
▲
by
shawn_w
2y ago
Racket has Typed Racket, which while not Hindley-Miller can do some type inference. There's also the plait language which says its type system is similar to ML: https://docs.racket-lang.org/plait/index.html And Ha
404.
▲
by
shawn_w
2y ago
I would say more convenient than Scheme. I can't think of any Scheme implementations that come with as much stuff as a standard Racket installation (before adding in extra third party libraries). Gauche, maybe, or Guile. The biggest di
405.
▲
by
shawn_w
2y ago
PowerShell is definitely better for new projects, but there's lots of legacy batch files out there.
406.
▲
by
shawn_w
2y ago
perl is still the most practical way to mitigate shell script abominations like that. Though tcl's a good option too.
407.
▲
by
shawn_w
2y ago
Not all battles in Culture books are like that. Hydrogen Sonata has close range equiv-tech fights on a planetary surface, for example. Still AIs running the show while the (armored) human hopes they survive, of course.
408.
▲
by
shawn_w
2y ago
I've solved some days in past years with sqlite + enough awk to transform the input into something that can be imported into a table. It can be a fun challenge.
409.
▲
by
shawn_w
2y ago
POSIX `hsearch` is absolutely terrible and almost useless, but... it would get the job done for this problem.
410.
▲
by
shawn_w
2y ago
That's a great way to spend even more time on the porcelain throne.
411.
▲
by
shawn_w
2y ago
Not the first time a Wikipedia article has been wrong. That one seems to be talking about IP sockets and local ones at the same time instead of focusing on local ones. Could definitely stand to be rewritten.
412.
▲
by
shawn_w
2y ago
Unix domain stream sockets do not use tcp. Nor do unix datagram sockets use udp. They're much simpler.
413.
▲
by
shawn_w
2y ago
It allows the book to skip things like lexing and parsing and instead go straight to its main course: transforming, executing and compiling syntax trees.
414.
▲
by
shawn_w
2y ago
I'm pretty sure someone wrote a very basic, very literal scheme to JavaScript transpiler and just ran the book's code through it. The results look nothing like what any normal person would write.
415.
▲
by
shawn_w
2y ago
He then writes a C compiler in Lisp. Checkmate.
416.
▲
by
shawn_w
2y ago
He's known as the Mad Titan, not the Smart Titan.
417.
▲
by
shawn_w
2y ago
When did CNN get a paywall?
418.
▲
by
shawn_w
2y ago
If you're writing anything approaching decent perl that won't be accepted.
419.
▲
by
shawn_w
2y ago
Warning: exposure to /r/flashlight is known to drain your bank account and make the neighbors complain about it being too bright at night.
420.
▲
by
shawn_w
2y ago
Even Wingdings?
More ›