Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
elcaro
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
elcaro
2mo ago
Similar article I read 10 years ago that covers some of the same ground, with some pretty SVG's as well. http://strangelyconsistent.org/blog/train-tracks
2.
▲
by
elcaro
4mo ago
% biff 2026 M05 28, Thu 17:27:46 Ahh, the month of M05
3.
▲
Spatial Programming [video]
(youtube.com)
5 points
by
elcaro
6mo ago
|
0 comments
4.
▲
by
elcaro
8mo ago
I also use this one everyday. I learned the quick one back in the day, but I value never ever having to stop and re-tie my laces.
5.
▲
by
elcaro
1y ago
Under the "Countries Visited" section it says "been lucky to run on all seven continents, including antarctica!", but it doesn't look like they've been to Australia.
6.
▲
by
elcaro
1y ago
Answering for myself, I started looking into APL, but at the time, learning the keymaps for the symbols seemed difficult, so I started learning array lang techniques with J, and ended up liking it. Some of the knowledge you acquire from one
7.
▲
by
elcaro
2y ago
I wa recently playing with this pattern in J, where it can be expressed like so ~:"1/~&.#:i.2^8 See it here: https://jsoftware.github.io/j-playground/bin/html2/#base64=b...
8.
▲
by
elcaro
2y ago
First thing I thought of https://www.youtube.com/watch?v=M4g4WBo-5fc
9.
▲
by
elcaro
2y ago
I was also a big fan of the Panorama feature that used to be built in. These days I'm using the Panorama Tab Groups [1] extension, which provide a practically identical experience the the old built in Panorama. [1] https://a
10.
▲
by
elcaro
3y ago
FWIW, I solved this in J as follows F =: >@{.@(\: #@>)@(#~ (2 >: +/@e.&'aeoiu')@>) which I think maybe composes a little better This doesn't include the splitting. I would imagine I would be feeding this
11.
▲
by
elcaro
3y ago
Another Unicode article that mentions Swift, but not Raku :( Raku's Str type has a `.chars` method that counts graphemes. It has a separate `.codes` method to count codepoints. It also can do O(1) string indexing at the grapheme level.
12.
▲
by
elcaro
3y ago
I went looking for a web browser!
13.
▲
by
elcaro
3y ago
> "Produce" is a term I've never seen used this way before, and I assume it is unique to Raku. More commonly referred to in the functional languages as a `scan`, but yes, it seems that `produce` might be unique to
14.
▲
by
elcaro
3y ago
I know cygx already replied, but to be clear, function signatures have been available in Perl since 2015. They were added (as experimental) in 5.20, and are now enabled by default with `use v5.36` or later. All new features must now go thro
15.
▲
by
elcaro
3y ago
This is exactly what Raku does. Neither strings nor arrays have a `.length` method because it's arbitrary. [0] > "\c[FACE PALM]".chars 1 [1] > "\c[FACE PALM]".codes 1 [2] > "\c[FA
16.
▲
by
elcaro
3y ago
> Personally I think this kind of computer-control is the perfect environment for teaching computing. Rather than writing apps or webapps, I feel like the idea of just writing code to do what you the user would do anyways, but bette
17.
▲
by
elcaro
4y ago
The closest thing these days is probably p5js (Processing in JS). function setup() { createCanvas(640, 480) } function draw() { background(0, 100, 200) strokeWeight(100) stroke(200, 200, 0) line(
18.
▲
by
elcaro
4y ago
I'll repeat the sentiment that "always" and "never" rules usually have their fair share of exception. And while I agree that [closed, open) intervals are often the best choice... sometimes what you want is [closed,
19.
▲
by
elcaro
4y ago
Discussion of the ligature issue (and a screenshot) in the Reddit post comments. https://old.reddit.com/r/programming/comments/z18gb6/comment...
20.
▲
by
elcaro
4y ago
One potential use case could be in creating bindings for other languages that do not have an expect like module. Since it reportedly has a "saner interface than libexpect", it might be less hassle creating FFI bindings to mini-exp
21.
▲
by
elcaro
5y ago
> right from the beginning, the say turns me off, computers do not speak This seems a bit of an odd argument. You've never heard the phrase "The sign says ...", or asked someone "What does the error message sa
22.
▲
by
elcaro
5y ago
> isn't it more like Python 3 Not in the slightest. Python 3 made breaking changes to the CPython code base (yes that's a simplification). There's enough backwards incompatibility to consider them different languages, but
23.
▲
by
elcaro
5y ago
The first operation where I split to lines, then join, then split again... was annoying me. So now I've got this say qx< cal -hy >.lines.skip.batch(9) .map({ |([Z] .join.comb(22).batch(3)) }) .map({ |(.[2] ~ .[0].trim
24.
▲
by
elcaro
5y ago
Just for fun, I tried it in Raku. say qx< cal -hy > # Command output as string .lines.skip.join("\n").split(/\n\n+/) # Skip year & split groups .map({ |([Z]
25.
▲
by
elcaro
5y ago
Raku also has a specific string type (Str) that is not just a bag of bytes. Strings are normalized (NFC) when they are created, and multi-codepoint graphemes are represented internally using synthetic codepoints (negative integers), but thi