HNHacker News
TopNewBestAskShowJobs

runeks

6,620 karma · joined March 5, 2012

https://cryptomarketdepth.com/

Twitter: @runeksvendsen

GitHub: https://github.com/runeksvendsen

submissionscomments
runeks··on Proof-of-Work Defense for Onion Services
Burning funds, instead of transferring them, would solve two of your three issues.

Obtaining the funds creates extra friction, yes, but it’s possible the benefit outweighs the cost — e.g. because an attacker can no longer utilize the idle CPUs of botnet devices.

Ultimately, any form of anti-DoS protection also punishes legitimate users. The question is (1) how much it punishes attackers relative to this, and (2) whether this punishment for legitimate users deters them, too.

runeks··on Leaving Haskell behind
If you think it's fine that you can log from all functions in other languages, then what's the problem with adding that constraint to all your Haskell functions to allow this?
runeks··on Leaving Haskell behind
That's because most languages allow arbitrary IO in all functions. You can achieve this in Haskell too if you want, by just using IO as your monad everywhere.

But most people don't do that because then it becomes really hard to reason about your code, so spending the extra time propagating a MonadLog constraint up your stack is actually worth it.

runeks··on Leaving Haskell behind
Hard agree on Hoogle — it's amazingly useful.

But wrt. other tooling, I use haskell-language-server every day and it makes me so much more productive. Sure, it isn't perfect, but so much better than what we had just five years ago.

runeks··on Leaving Haskell behind
I'm not suggesting that my library should be able to transitively depend on multiple versions of base.

I'm suggesting that which version of base my library depends on should not be tied to what the GHC version (used to build my library) depends on — unless my library is using the GHC-specific stuff in base.

runeks··on Leaving Haskell behind
That GHC might reject an older version of base isn't a reason to switch for every GHC release, is it?

I mean, if it breaks then sure, require a newer base. But in my experience GHC (thankfully!) doesn't change the semantics of Haskell often enough to warrant a new version of base for every new GHC version.

runeks··on Code Llama, a state-of-the-art large language model for coding
Maybe delete this post then :-)

There's two copies of it on the front page.

Thank you for your effort!

runeks··on Leaving Haskell behind
> Deliberately aiming for something worse in hopes of public/industrial acceptance is not a good approach IMO.

It's not "worse", it's a tradeoff between backwards compatibility and fixups. Backwards compatibility is a really useful feature in and of itself, and the question is whether this outweighs the usefulness of all the tiny fixups. In my opinion it mostly does.

runeks··on Leaving Haskell behind
> The way that Haskell-the-language evolves — well, the way that GHC evolves, which is de facto Haskell since it's the only reasonable public implementation — is that it gradually moves to correct its past missteps and inconsistencies even in pretty fundamental parts of the language or standard libraries.

I would say that the biggest problem is that GHC is tied to a particular version of base (the standard library). So when changes are made to base, and a new version of GHC comes out that supports only this and not earlier versions, you're forced to change basically all of your dependencies, if you want to use this newer GHC version, as they all depend on base.

I still don't understand why this is necessary. Why must code compiled with GHC 9.6 use base version 4.18.0.0? Why should the binary that is GHC care about which version of the Data.List module the code that it compiles uses? I understand that all the GHC-specific stuff exposed by base is tied to a particular GHC version, but why all the rest?

There is, however, work in progress to split base into multiple packages to fix this (as I understand it): https://gitlab.haskell.org/ghc/ghc-wiki-mirror/-/blob/master...

runeks··on Leaving Haskell behind
> I miss early return dearly, and understand why it isn’t a thing (except if you have a MonadZero at hand) but I know it’s a syntactic transformation that won’t make it in.

Early return is mandatory for readability sometimes. I suggest using ExceptT for this: https://www.stackage.org/haddock/lts-21.8/mtl-2.2.2/Control-....

You don’t even have to expose ExceptT in your interface; you can just use it internally for early return and have your function return an Either.

runeks··on Dutch e-bike maker VanMoof goes bankrupt, leaving riders stranded
I found some details about their financials:

> They show VanMoof had three major creditors. Lenders led by American venture capitalist TriplePoint lent VanMoof 77.9 million euros. The bike company owed 50.6 million euros to suppliers and other business partners. And it also had 15.3 million euros in tax debts, including 12.1 million euros owed to the Dutch Tax Authority.

https://nltimes.nl/2023/08/23/vanmoof-debts-144-million-euro...

runeks··on I only lost 10 minutes of data, thanks to ZFS
Looks like it needs to speak to a daemon running on the storage server?

Would be cool if it could just use e.g. S3 for storage.

runeks··on I only lost 10 minutes of data, thanks to ZFS
FWIW I’ve used Arq Backup[1] for several years now, and I’ve successfully restored at least twice after my MacBook died. It also encrypts the data before it leaves your computer, and supports tons of (cloud) storage solutions — I use Google Cloud Storagge and spend about a dollar per month on storage costs with hourly backups.

[1] https://www.arqbackup.com/

runeks··on GNU Parallel, where have you been all my life?
> A programming language needs to be installed first to be of any use.

I have that taken care of already

runeks··on Northvolt raises $1.2B convertible note from BlackRock
What's the advantage of selling a convertible note to an investor compared to just selling them equity directly?

Is the idea that if you're profitable before the note expires then you have the ability to buy the note back without losing equity?

runeks··on How do we pay for parking?
There should be a legal requirement on how difficult “paying” for something can be.

Installing an app, entering my name, address and email, and then manually typing in the numbers on my credit card should not be allowed to be called “paying”. That’s more like a members-only club that you must join before you can use their services.

runeks··on GNU Parallel, where have you been all my life?
If doing even simple things requires looking up documentation, why does it matter whether the shell script is long or short?

Spending extra time doing simple things — because you need to Google e.g. "how to pass multiple space-separated arguments from a string to a command" — is also a waste of time.

runeks··on Stablevideo: Text-driven consistency-aware diffusion video editing
> one (quite convincing) theory is that anything that can be achieved by a carbon-based neural network (eg. human brain) can also be achieved by a silicon-based neural network.

That the human brain is exactly equivalent in function to our current model of a neural network is a huge, unproven hypothesis.

runeks··on Stablevideo: Text-driven consistency-aware diffusion video editing
https://xkcd.com/605/
runeks··on Heat your house with a mechanical windmill (2019)
> Solar panels, at their best, can capture about 25% of the sun's energy as electricity. There exist heat pumps with a coefficient of performance (COP) such that the system as a whole captures more heat i.e. COP >4

Am I understanding it correct that the efficiency is, in this case (25%; COP >4), greater than 100%?

runeks··on Stablevideo: Text-driven consistency-aware diffusion video editing
That's what everyone seems to suppose. I don't see why it's warranted, though.
runeks··on Heat your house with a mechanical windmill (2019)
> Combine a solar panel or a wind turbine with a heat pump and despite generation losses it will outperform any thermal collectors - there's a reason these got virtually phased out!

Please expand on this. I have no idea how these two compare in efficiency (but apparently you do).

runeks··on Stablevideo: Text-driven consistency-aware diffusion video editing
It's fun to watch how it blends together videos, but none of the three example videos are actually of high enough quality to be useful.

1. The boat video transforms the coast into rolling waves and looks super weird

2. The swan/duck video looks better than the others, but the lighting is obviously wrong when looking closer. Looks like a cardboard cutout bird.

3. The car video looks like a video game from the 2000s, with low quality textures and wheels not turning.

Again, super interesting to see how it can come up with these "by itself", but utterly useless at the moment.

runeks··on Don’t build a general purpose API to power your own front end (2021)
I disagree. Trying to generalize a single implementation into an interface is always problematic. And that's exactly what inserting an API between the FE and BE is if your only UI is a web page.

If, later on, you want a mobile app, then an API can easily be deduced from your current, working UI, instead of trying to imagine what the UIs of your web FE and mobile app have in common.

runeks··on Don’t build a general purpose API to power your own front end (2021)
The is exactly what HTMX does and it works: allow returning a HTML response and statically annotating a part of the DOM to be replaced with that.

Granted, this requires JavaScript on the front end, but it's a framework that can be shared between different websites, so you're not writing any custom JavaScript for your site.

runeks··on Don’t build a general purpose API to power your own front end (2021)
There are clearly reasons for a backend to expose an API; no one is disputing that. The article simply points out that it should not be the default.
runeks··on Moonbit: Fast, compact and user friendly language for WebAssembly
That's the copyright, but what's the license?

Is "all rights reserved" a license (or an absence thereof)?

runeks··on How do we save water: Stop growing alfalfa in Imperial County
I think you are making a comparison to slavery, which is not relevant because no one is suggesting that it's okay to own another human being.
runeks··on StarLite 12.5-inch Linux tablet
According to this comparison the performance per watt is roughly the same for the CPU in this tablet (Intel N200) and the Apple M1: https://www.cpubenchmark.net/compare/5178vs4104/Intel-N200-v...
runeks··on The first messenger without user IDs
> So the identity here is the ridiculously long number formed from "Alice's public key for her receiving queue" combined with all that other stuff, isn't it? In other words, a user ID?

If Alice's public key is an ephemeral key used only for a single connection -- as with e.g. HTTPS -- then it can't meaningfully be called a "user ID". Then it really is just a random number negotiated as part of making the connection and thrown away when the connection is terminated.

← PreviousPage 10 of 34Next →