HNHacker News
TopNewBestAskShowJobs

rbonvall

941 karma · joined February 14, 2009

Roberto Bonvallet — http://mez.cl/a
submissionscomments
rbonvall··on Bun has an open PR adding shared-memory threads to JavaScriptCore
Yes, that's the smoking gun!
rbonvall··on Sixty percent of US consumers say 'AI' in brand messaging is a turnoff
Socks are not getting lost; they are getting compacted to keep the context window small.
rbonvall··on Sagrada Família Lego set
(It's Barcelona)
rbonvall··on I won a championship that doesn't exist
In the soccer world, there is the International Federation of Football History and Statistics (IFFHS), that decides several rankings and awards that are regularly cited in traditional media. For example, if a player from my not-quite-football-powerhouse country makes the "best 100 goalkeepers" list or whatever, it'll be on the news.

Turns out the IFFHS was just one guy in Germany during the 80s that leveraged his contacts in news agencies to establish his brand as a reputable source.

rbonvall··on GitHub's fake star economy
Note that it's not a European thing. It's how most football leagues around the world work.
rbonvall··on Wit, unker, Git: The lost medieval pronouns of English intimacy
Of course. It's distributed.
rbonvall··on Git commands I run before reading any code
Just like that place that's so crowded nobody goes there anymore.
rbonvall··on Privilege is bad grammar
That doesn't explain the "punctuating with multiple cryface emojis".
rbonvall··on The unreasonable effectiveness of the Fourier transform
Lies, Damned lies, and Unreasonable Effectiveness For Fun and Profit
rbonvall··on Awk Technical Notes (2023)
Example of replacing grep+cut with a single awk invokation:

    $ echo token:abc:def | grep -E ^token | cut -d: -f2
    abc
    
    $ echo token:abc:def | awk -F: '/^token/ { print $2 }'
    abc
Conditions don't have to be regular expressions. For example:

    $ echo $CSV
    foo:24
    bar:15
    baz:49
    
    $ echo $CSV | awk -F: '$2 > 20 { print $1 }'
    foo
    baz
rbonvall··on Scripts I wrote that I use all the time
I use dtrx, which also ensures that all files are extracted into a folder.
rbonvall··on Scripts I wrote that I use all the time
Python also pretty-prints out of the box:

    $ echo '{ "hello": "world" }' | python3 -m json.tool
    {
        "hello": "world"
    }
rbonvall··on Users only care about 20% of your application
> I have always wondered what would happen if someone had to invent spreadsheets from scratch, today.

This is exactly what Joel Spolsky did:

> What was I talking about? Oh yeah… most people just used Excel to make lists. Suddenly we understood why Lotus Improv, which was this fancy futuristic spreadsheet that was going to make Excel obsolete, had failed completely: because it was great at calculations, but terrible at creating tables, and everyone was using Excel for tables, not calculations.

... so he went on and created Trello.

https://www.joelonsoftware.com/2012/01/06/how-trello-is-diff...

rbonvall··on Rost – Rust Programming in German
Reminds me when Scala was translated to German some time ago, at about the same time of the year:

https://scala-lang.org/blog/2017/04/01/announcing-skala.html

rbonvall··on GIMP 3.0 is on the way
Since no other pedants have chimed in yet, I'm required to point out that 20 years is five olympiads, which is the timespan in between six Olympic games.
rbonvall··on Alonzo Church: Architect of computer intelligence
Just like Niklaus Wirth's quote about how people used to call him, or the joke about there being 10 kinds of people.

Those are the ones that make me wish people knew just enough Computer Science to get them :)

rbonvall··on Techniques I use to create a great user experience for shell scripts
In my opinion, shell scripting is the right tool when you need to do a lot of calling programs, piping, and redirecting. Such programs end up being cumbersome in "proper" languages.
rbonvall··on Why Haskell?
The most important benefit is not that you CAN unwrap a value, but rather that you CANNOT NOT do it.
rbonvall··on Why Haskell?
Sbt is too complex and powerful for its own good. I had a love-hate relationship with it, and now I try to avoid it if I can.

I like scala-cli a lot. It's very promising, but I think it's too new to be proclaimed best-in-class yet. Time will tell, and I'm rooting for it.

rbonvall··on Show HN: Defrag the Game
If I was you I wouldn't bother. The cool thing is not the game itself, it's the fact that we "old folks" just know what to do right away :) If you need to read instructions, probably you'll find the game dull anyway.
rbonvall··on How old is your globe? [pdf]
This document was made by a specific globe manufacturer, so it probably isn't meant to be used to date arbitrary globes, but only theirs.
rbonvall··on Aho – a Git implementation in Awk
Awk doesn't have a way to define function-local variables. All variables are global, except for function parameters.

This spacing convention is meant to clearly separate mandatory parameters and optional parameters that are sometimes only introduced to "declare" a local variable.

rbonvall··on Origins of J
Once I put the effort to understand code like this and it turned out it's straightforward once you learn the conventions:

https://news.ycombinator.com/item?id=19421524

rbonvall··on 37, the median value for the second prime factor of an integer
It's because the characters in the result can be one of 10 digits or one of 26 letters.
rbonvall··on On Keeping a Logbook (2010)
Commenting on the internet is note-taking for jerks.
rbonvall··on That's a Lot of YAML
I think that's precisely the problem with YAML. By being so unpredictable, it turns from "format I use without thinking much about" into "format that makes me spend a lot of time finding out what's wrong this time".

Maybe you and I haven't been bitten personally by YAML idiosincracies yet, but just learning about examples like the "Norway problem" and the "negative GPS coordinates bug"—and thinking how frustrating must have been to figure those out in the first place—makes me shudder.

rbonvall··on Mullvad on Tailscale: Privately browse the web
Side note: you can simplify the first line like this:

    DOMAINS=(login controlplane log derp{1..24}-all)
rbonvall··on Snake-fury – a challenge for Haskell beginners
People seem to do fine dealing with iterators—which are defined by their operations (hasNext, next) and are convenient because they have a dedicated syntax (foreach)—without the need for enlightenment from esoteric "iterator tutorials".

Monads are defined by their operations (flatMap/bind, unit) and have a dedicated syntax (do). I agree with you: just get used to flatmapping stuff and the concept will sink in.

rbonvall··on I didn't write any JavaScript, and other shortcuts
He doesn't. That's the point.
rbonvall··on What does it mean for a monad to be strong?
"Each cell is a monad" makes as much sense as "41 is a commutativity".
Page 1 of 11Next →