HNHacker News
TopNewBestAskShowJobs

runeks

6,620 karma · joined March 5, 2012

https://cryptomarketdepth.com/

Twitter: @runeksvendsen

GitHub: https://github.com/runeksvendsen

submissionscomments
runeks··on Nobody cares
Seems like the title of this post ought to be "nobody cares about the things I care about"
runeks··on 8 months of OCaml after 8 years of Haskell in production (2023)
Whenever you see something like

  apply foo bar (lol wat)
in Haskell, and it confuses you, simply mentally replace it with

  apply(foo, bar, lol(wat))
To translate into a more popular syntax (e.g. JavaScript).
runeks··on 8 months of OCaml after 8 years of Haskell in production (2023)
Agreed. The main draw of OCaml is that it isn't pure like Haskell. Haskell's purity is really what makes it weird (and great).
runeks··on 8 months of OCaml after 8 years of Haskell in production (2023)
Let's take that further: you wouldn't want to use your code above either, because it would be impossible to tell why the parser failed. Which is going to be really frustrating once it fails. And if it doesn't fail the first version is fine.
runeks··on 8 months of OCaml after 8 years of Haskell in production (2023)
> Maybe because I haven’t used languages like these in the past [...]

Yes, that definitely the case.

If you know what each function above does, including the function composition dot (.), then this is like reading English — assuming you know how to read English.

runeks··on Advent of Code 2024
This year I will run my AoC solutions on my toaster and write them in ALGOL 58 using only my feet.
runeks··on Advent of Code 2024
If LLMs are really as good at writing code as some people say, they should write a script that fetches each challenge, as soon as it's released, and feeds it to an LLM, to produce a solution. Then run this code and submit the answer it outputs.
runeks··on Gene behind orange fur in cats found at last
I didn't even know we were looking for that gene
runeks··on Kubernetes on Hetzner: cutting my infra bill by 75%
Isn't the point of ChatGPT to mimic sentences written by humans?
runeks··on Safe relational database queries using the Rust type system
Nit: a DB query can never be made type safe (avoiding runtime failure) because its correctness depends on the state of an external service, which may change at any point in time.
runeks··on Safe relational database queries using the Rust type system
> This is validated at compile time against a database, which is good, but of course there is no guarantee that the production database will have the same types. Easiest mistake to make is to design a query against your local Postgres v15 and hit a runtime error in production running Postgres v12, e.g. a function like gen_ramdom_uuid() doesn't exist. Another is to assume a migration in production was actually executed.

One could have the backend fetch DB schema/version info at startup, compare it to its own view of what the schema should look like, and fail if the two disagree. That way, a new deployment would fail before being activated, instead of being deployed successfully and queries failing down the line.

runeks··on Malware can turn off webcam LED and record video, demonstrated on ThinkPad X230
I wish laptop webcams were designed like this: when I want to turn off my webcam I slide, with my finger, a piece of plastic that physically covers the webcam. This simultaneously turns off the LED, which is always on unless the camera is covered by the plastic.

As an extra feature, firmware could hook up to the software that uses the webcam to send a "hang up" signal when I turn off the webcam. That way I don't have to find some button in whatever software the person I'm having a call with wants to use — I just "turn off" my webcam.

runeks··on DOJ will push Google to sell off Chrome
Also: Google Project Zero.

Doing Apple's work for free.

runeks··on DOJ will push Google to sell off Chrome
> I agree, this is a problem, but there should be a trivial solution: Users of the browser should pay a small amount of "money" for the product they use all day every day.

If getting people to pay for stuff they use were trivial then advertising wouldn't be as big as it is.

runeks··on $8k Suzuki from India received a 5-star crash test rating
> [...] its not complying with arbitrary eco-guidelines [...]

Anyone know what these are?

runeks··on How I ship projects at big tech companies
> I would question the ethics of engineers whom employ a strategy of preferring politics over delivering solutions.

This too harsh. There's nothing unethical about delivering what your manager tells you instead of what you believe the customers need. Going rogue — as opposed to doing what you're told — is not necessarily the ethical choice.

runeks··on Trump wins presidency for second time
Agreed. And preferably a fourth, fifth and sixth as well.
runeks··on Using an 8K TV as a Monitor
I tried this a couple of years ago and had to ditch the TV because of too much input lag.

You mention input lag only once where you say:

> Although this post is mostly focused on productivity, most if not all 8K TVs can be run in 4K at 120 Hz. Modern TVs have decent input lag in the ballpark of 10 ms and may support FreeSync.

Have you measure this, or where do you get this number from?

The TV I bought was also advertised as low-latency, but I found it too high in practice (when typing in code, or scrolling, and waiting for the screen to update).

runeks··on Everything I built with Claude Artifacts this week
> With a sufficiently advanced type system, you could lay out high level building blocks, such as function definitions, and let the LLM go wild, and then if things compile there's a high chance it's correct. Or maybe even a formal proof things are correct.

A formal proof is simply a type that allows only the correct implementation at the term level. And specifying this takes ages, as in hundreds of times longer than just writing it out. So you want to use an LLM to save this 1% of time after you've done all the hard work of specifying what the only correct implementation is?

runeks··on Adding row polymorphism to Damas-Hindley-Milner
Thank you, but I was looking for real world examples solved by row types as OP implied there were plenty of.
runeks··on Adding row polymorphism to Damas-Hindley-Milner
> Highly recommend people mess around with Purescript, you can feel how much pressure is relieved thanks to the row polymorphism tooling almost instantly.

> I think row polymorphism is a fairly straightforward thing compared to dependent types in general, but can let you crush a whole class of errors [...]

Would you care to provide a few examples? I don't have experience with row polymorphism so I'm genuinely curious.

runeks··on FTC announces "click-to-cancel" rule making it easier to cancel subscriptions
> We pay the price by having a weaker economy, they pay the price by having less dignity in their life, but there is eventually balance.

It doesn't need to be black or white.

A country can have decent consumer protections without e.g. a tax policy that is hostile to startups. But many EU countries are seemingly uninterested in the latter — presumably because there are no votes in it.

runeks··on Show HN: HTML for People
I disagree. People reading a book on how to write HTML already have an idea of what it is — why else would they read the book?

And, in any case, explaining what HTML stands for does not get anyone closer to understanding what it is.

I think it's a feature that this book doesn't throw technical jargon at the reader before they've even created anything useful yet.

runeks··on Meta Movie Gen
Which browser?
runeks··on I Am Tired of AI
> I watched everyone make the same arguments about the general Internet, and then the Web, then mobile, then Bitcoin.

You’re conveniently forgetting all the things that followed the same trajectory as LLMs and then died out.

runeks··on Why Haskell?
My advice: use Stack if you're new to Haskell, otherwise cabal. Stack has better UX but isn't as powerful as cabal.
runeks··on I'm tired of fixing customers' AI generated code
Creating a new endpoint that accepts data as sent by the AI-generated code is very different from accepting AI-generated errors for existing endpoints. You're talking about the latter.
runeks··on China's manufacturers are going broke
That chart says it all. From 10% of industrial companies making losses to 30% in less than 15 years.
runeks··on China's manufacturers are going broke
https://archive.ph/cc01V
runeks··on Functional languages should be so much better at mutation than they are
Go on...

EDIT: Found this: https://github.com/HigherOrderCO/HVM1/blob/master/guide/HOW....

← PreviousPage 5 of 34Next →