HNHacker News
TopNewBestAskShowJobs

cyco130

622 karma · joined June 24, 2021

Developer, musician, and occasionally other things. Creator of Rakkas, Hattip, and vavite.
submissionscomments
cyco130··on 4B If Statements
But of course WebAssembly is the future. So we should reimplement it in WASM.
cyco130··on Interview about Austral, a systems programming language with linear types
Very informative, thank you.
cyco130··on Interview about Austral, a systems programming language with linear types
I thought the concept of "linear types" as defined here was simply another name for "uniqueness types"[1]. But the Wikipedia article claims there's a difference.

[1] https://en.wikipedia.org/wiki/Uniqueness_type

cyco130··on MiniLang: A type-safe C successor that compiles directly to x86_64 assembly
Rust is much more akin to C++ than C in terms of complexity. It's early but Zig[1] might fit the bill.

[1] https://ziglang.org/

cyco130··on USB-C Cures Mosquito Bites
I quit smoking six years ago but before that I used the lit cigarette tip trick for decades. It worked very well for me.
cyco130··on To revive Portland, officials seek to ban public drug use
I live in Lisbon and I don't see how "downtown Lisbon started to look pretty badly recently". Street drug users, seemingly mostly/wholly homeless, seem to be concentrated in an area I wouldn't call downtown. I don't really know what they do to keep it that way though. Also Porto seems to be an entirely different story from what I've seen there.

In any case, Portugal's strategy was supposed to be diverting funds from the narcotics police to rehabilitation efforts. But those funds have steadily eroded over the years with cost-cutting measures such as the merger of the autonomous drug agency into the main healthcare service. It's not too surprising if it is falling short of its initial success.

Another thing to consider is the inseparability of homelessness and drug abuse issues. It doesn't seem to be possible address one without the other, rising homelessness will inevitably bring more drug abuse. (Still I see fewer homeless people in downtown Lisbon than in Barcelona that won't even let you have a beer in the park).

cyco130··on When would you ever want bubblesort?
Before I knew anything about sorting algorithms, I invented my own algorithm to sort the high score list in my little BASIC game. It was very simple: Find the highest score, swap it to the top and continue, this time starting with the second item, until done. I imagine that if I ever find myself in need of writing a sorting algorithm from memory, I'll still go with this one.
cyco130··on The weirdest bug I've seen yet
I wouldn't want to disallow translation, but in this case it was unnecessary anyway.
cyco130··on The weirdest bug I've seen yet
From English to Turkish but Google won't just leave the parts that are already in Turkish alone and subtly reword them instead for some reason.
cyco130··on The weirdest bug I've seen yet
The weirdest one I saw was this: User claims that the wording of the info they enter into a certain form changes when they save. At first I suspected someone else editing the same form at the same time unbeknownst to each other but it wasn't the case according to the logs. And I saw the correct wording on my own computer.

Then I noticed in their screenshots that some of the menus had weird wording too. Turns out they had Chrome's "Translate this page" option on. Problem went away when we showed them how to properly switch languages in the app.

cyco130··on Hello, stranger – Talking to random people
> Even a short and simple conversation can make you feel good.

Well, for some, even a short and simple conversation can make them feel bad.

cyco130··on Requiem for a stringref
I think it's very different: "use strict" is strictly local (function or script scoped), "use utf-8" would require the entire JavaScript context to cooperate. It means you can't safely use a library that expects UTF-16 in an app with "use utf-8". E.g. you can't include Google Analytics in your "use utf-8" web page.
cyco130··on Hamas' social media following has skyrocketed
Hmm, I've read Mein Kampf but I'm not a nazi.
cyco130··on Emulating the 6502 CPU in C++ (2021) [video]
Mini Show HN: https://sfotty.cyco130.com/
cyco130··on tRPC – Build and consume typesafe APIs without schemas or code generation
On the next iteration, we're planning on providing a `createServerQuery` function which will _not_ capture the closure and return a function that can take an arbitrary number of arguments to be serialized. `createServerQuery` will have a required `validator` option that will also run on the server to validate those arguments.
cyco130··on tRPC – Build and consume typesafe APIs without schemas or code generation
If you wanna take the concept up a notch: https://rakkasjs.org/guide/use-server-side-query
cyco130··on libjpeg-turbo 3.0 has been released, and why there may never be a 3.1
> why don't you stop doing it?

Err, this is him announcing that he's stopping doing it.

cyco130··on The dictatorship in Turkey is falling tomorrow
Kılıçdaroğlu is not a socialist by any stretch of imagination, let alone a hard-core one. He’s center-left at best. Besides, the coalition includes right wing conservatives, right wing nationalists, and liberals.
cyco130··on Stop whining about “The EU Cookie Policy” and improve your ways
Or RGPD as in "Règlement Général sur la Protection des Données" (French).
cyco130··on Contiki – OS for networked, memory-constrained systems
This is probably where I heard it (I was a member): https://cc65.github.io/mailarchive/2003-03/2815.html

So it was before the other ports and in all likelihood it was never an official record anyway.

cyco130··on Contiki – OS for networked, memory-constrained systems
At some point I heard Atari 800 (released in 1979) was the oldest machine ever to connect to the Internet, thanks to Contiki. But a quick google now suggests older DEC machines from mid 70s. Still impressive though.
cyco130··on The myth of the myth of the 10x programmer (2020)
I'm a 10x developer for a few weeks a year and a 0.1x developer for the rest. It averages out to about 2/3 of a developer which ends up being good enough for my job.
cyco130··on Welcoming 1927 to the Public Domain
Found a cure for cancer? Protected for 15 to 20 years. Wrote two lines of trivial lyrics to an 18th century children's song? Protected for life + 75 years.
cyco130··on Stone tablet shows Babylonians able to approximate √2 with 99.9999% accuracy
And the rules are:

- Use Latin for 1-10

- Use Latin 10n, 10n+1 and 10n+2

- Use Greek for the units + Latin for the tens for 10n+3..10n+9

The Greek-Latin mixup was probably caused by whoever invented the word hexadecimal (16). The older "sexadecimal" was maybe avoided due to the word "sex". "sedecimal" would be a bit more correct Latin but it doesn't seem to be attested.

cyco130··on Stone tablet shows Babylonians able to approximate √2 with 99.9999% accuracy
That's because base 12 (dozens) and base 60 (minutes) are commonly used across cultures. So is 20 (vigesimal).

Base 11 is called undecimal[1] and Wikipedia has a comprehensive list[2]. It doesn't list 59 but it would be enneaquinquagesimal if you follow the rules.

[1] https://en.wikipedia.org/wiki/Undecimal

[2] https://en.wikipedia.org/wiki/List_of_numeral_systems#Standa...

cyco130··on I'm done with Google
Haha, I meant "anti-piracy". Freudian slip.
cyco130··on I'm done with Google
I've known more than one music studio owner in the past who used a cracked Cubase despite owning a legal license because their anti-privacy dongles created lots of compatibility problems. The pirated copy simply worked better.
cyco130··on Ask HN: Is programming a “young person's game”?
I got lucky there. A friend and his friend had a small startup and they needed a Chrome extension which they didn't have the time to make. I offered my services and they liked the job I did and offered me a fulltime job. I refused initially because I was happy with my other job but I changed my mind a few months later.

The product (and the business) was successful and now we have dozens of employees.

cyco130··on Ask HN: Is programming a “young person's game”?
I'm 43 and I took my first fulltime gig 6 years ago. I was working in unrelated sectors before that. I've been wanting to relocate to another country lately and I managed to find a -better paying- job there too, and I signed the contract recently. It's my childhood hobby and I did do some open source or freelance work from time to time but never full time. I was a fine programmer at 16 but I'm a much better "engineer" now. Much better than 6 years ago too.

Yes, your chances of becoming a world-class developer (or athlete, or musician) are slim. But they were slim when you were 15 too. That's not the point. The world still needs heaps of above-average programmers, whatever the age.

Also, I'm in a rock band with some 65+ guys, playing anything from Beatles to AC/DC. They would have a good laugh if they heard your concerns :)

cyco130··on Moving from React to htmx
I love HTMX and similar technologies but I think GitHub is a particularly telling example of what can go wrong with these techs. The frontend is so full of consistency bugs that it's appalling: https://youtu.be/860d8usGC0o?t=693
← PreviousPage 4 of 5Next →