HNHacker News
TopNewBestAskShowJobs

desumeku

230 karma · joined July 2, 2024

submissionscomments
desumeku··on Be careful with Go struct embedding
Why would you ever do opts.URL instead of opts.FooService.URL or opts.BarService.URL? What does ambiguity and imprecision gain you here when you can just write out from which struct you want it from? I don't even know why opts.URL would compile, it's completely unstated that you're not grabbing it from opts but grabbing it from some other structure contained within opts. Shouldn't even compile IMO, but at least I found something I disagree with Go's designers on.
desumeku··on LLM Inevitabilism
>This increasingly likely future is made all the more infuriating by the annoyances of the current reality of AI. The fact that AI is so presently inescapable despite how many glaring security-affecting flaws it causes, how much it propagates slop in the information commons, and how effectively it emboldens a particularly irksome brand of overconfidence in the VC world is preemptive insult to injury in the lead up a reality where AI will nevertheless control everything.

So basically: "yes, I know AI is actually completely and totally useless and a net negative on the world just like you say it is, but I can imagine that things will suddenly turn into the sci-fi ultraverse for no reason so therefore you're wrong."

desumeku··on Bitcoin's Security Budget Issue: Problems, Solutions and Myths Debunked
This article has nothing to do with the inflationary or deflationary nature of the currency, this is a problem solely caused by the block size limit, which other cryptocurrencies are free from and don't worry about.
desumeku··on Compiler for the B Programming Language
It's not rust. It's crust. https://github.com/tsoding/crust

"The Rules of Crust

Every function is unsafe. No references, only pointers. No cargo, build with rustc directly. No std, but libc is allowed. Only Edition 2021. All user structs and enums #[derive(Clone, Copy)]. Everything is pub by default."

desumeku··on 4chan Sharty Hack And Janitor Email Leak
All content that violates the law of the United States is banned on 4chan. I don't know where you got that idea.
desumeku··on 4chan Sharty Hack And Janitor Email Leak
4chan culture itself is derived from polish, finnish and japanese imageboard culture and 4chan has always had a large international userbase.
desumeku··on 4chan Sharty Hack And Janitor Email Leak
4chan is more moderated than you'd imagine.
desumeku··on Bitcoin in the bush – the crypto mine in remote Zambia
You say potato, I say po-tat-o. You "market failure and waste", I say "taking advantage of local efficiencies and powering a global financial system". Did you miss the part where they share revenue with the energy company?

> The bitcoin mine now accounts for around 30% of the plant's revenue allowing them to keep the prices down for the local town.

desumeku··on Oxidizing Ubuntu: adopting Rust utilities by default
Rust is supposedly post-1.0 but it still doesn't have a standard that isn't just documenting the output of the compiler.
desumeku··on Oxidizing Ubuntu: adopting Rust utilities by default
Tone is important. You are insufferable. I am 21 years old and would also rather write C and hang around the "old conservatives" than be in a community of people who talk about others the way you do.
desumeku··on Oxidizing Ubuntu: adopting Rust utilities by default
Yes, and if BSD was what everyone used for servers instead of Linux, then there would be nothing stopping Oracle from selling you Oracle BSD for a nice subscription price. Of course, they and red hat are already doing this in their own way that gets around the GPL, but a more permissive license would just allow them to do it even more.
desumeku··on What makes code hard to read: Visual patterns of complexity (2023)
> Correctness and maintainability trumps performance

Great, please make all the software even slower than it already is. I am overjoyed to have to purchase several new laptops a decade because they become e-waste purely due to the degradation of software performance. It is beyond ridiculous that to FP programmers daring to mutate variables or fine-tune a for loop is an exceptional scenario that you don't do "unless you have to" and which requires "knowing what you're doing". Do you know what you're doing? How can you be a software engineer and think that for loops are too difficult of a construct, and that you need something higher-level and more abstract to feel safe? It's insane. Utterly insane. Perhaps even the root of all evil, Code Golf manifested as religion.

desumeku··on What makes code hard to read: Visual patterns of complexity (2023)
> The compiler can make it mutable for better performance

Well, we already know that no pure FP language can match the performance of a dirty normal imperative language, except for Common Lisp (which I am happy to hear an explanation for how it manages to be much faster than the rest, maybe it's due to the for loops?). And another comment here already mentioned how those "significantly slower" scripting languages have a healthy dose of FP constructs -- which are normally considered anti-patterns, for good reason. The only language that competes in speed in Rust, which just so happens to let you have fast FP abstractions so long as you manually manage every piece of memory and its lifetime, constantly negotiating with the compiler in the process, thereby giving up any of the convenience benefits you actually get from FP.

desumeku··on A 10x Faster TypeScript
The language server, maybe?
desumeku··on A 10x Faster TypeScript
"Go is not meant to innovate programming theory. It’s meant to innovate programming practice.”
desumeku··on What makes code hard to read: Visual patterns of complexity (2023)
> it could build up a set internally, it could use a hashmap, or any one of a million other approaches. It can even probe the size of the array to pick the performance-optimal approach. I don't have to care.

Well, this is probably why functional programming doesn't see a lot of real use in production environments. Usually, you actually do have to care. Talk about noticing a performance regression because I was simply appending to an array. You have no idea what performance regressions are happening in ANY line of FP code, and on top of that, most FP languages are dead-set on "immutability" which simply means creating copies of objects wherever you possibly can... (instead of thinking about when it makes sense and how to be performant about it)

desumeku··on What makes code hard to read: Visual patterns of complexity (2023)
Everything you said is true for both of our programs, the only difference is whether or not it's hidden behind function calls you can't see and don't have access to.

You don't really think that functional languages aren't appending things, using temp vars, and using conditional logic behind the scenes, do you? What do you think ".filter(node => !node.isHidden)" does? It's nothing but a for loop and a conditional by another name and wrapped in an awkward, unwieldy package.

>which introduces a performance regression from having to periodically grow the array

This is simply ridiculous, do you just believe that the magic of Lisp/FP allows it to pluck the target variables out of the sky in perfectly-sized packages with zero allocation or overhead?

desumeku··on What makes code hard to read: Visual patterns of complexity (2023)

  o_node := graph.GetNodeByName(name)
  var ret []string
  for _, node := range o_node.connectedNodes() {
    if !node.isHidden {
      ret = append(ret, node.name)
    }
  }
  return ret
desumeku··on Goravel: A Go framework inspired by Laravel
"A little copying is better than a little dependency."
desumeku··on Goravel: A Go framework inspired by Laravel
> I want a similar thing to ActiveRecord

First of all, you shouldn't be using Go, because it's not the language where you do those kinds of things.

desumeku··on Goravel: A Go framework inspired by Laravel
It does not take more than 10 lines of code to launch a goroutine (or two, or more, due to how easy worker pools are in Go) that receives email requests and sends them in batches.
desumeku··on Goravel: A Go framework inspired by Laravel
>job queues

In Go, these are called "channels".

desumeku··on How Monero Fulfilled Satoshi's Promise
HN is all about privacy, security, never trusting Google ever ever, etc. until it comes to crypto, and then all of a sudden it's well only criminals would want that and don't you know they can probably trace you anyway etc.
desumeku··on How Monero Fulfilled Satoshi's Promise
If it's so easy, why don't they just enforce it? Go ahead and try and catch people when they make Monero transactions and arrest them, considering the entire protocol is designed to make that as hard as possible.
desumeku··on Who's Afraid of Peter Thiel? A New Biography Suggests We All Should Be (2021)
If you think democracy is threatened because someone pledges their public support for a specific party, then you don't actually believe in democracy.
desumeku··on The Strategic Crypto Swindle
If bitcoin becomes a world reserve currency like maxis think it will, then in a late-stage bitcoin scenario, the main chain would have such a high demand, and thus high enough fees, that it would serve more as a settlement layer where side-chains take up the majority of user activity, which collects enough in fees to push a transaction to the 'base' bitcoin chain, using the metadata to provide cryptographic proof of its activities (to avoid fraud), kind of like ETH l2's.
desumeku··on The Strategic Crypto Swindle
You should really read The Wealth of Nations before you talk about currencies needing "backed" or "intrinsic" value. It's not in the definition of money at all.
desumeku··on The Strategic Crypto Swindle
The cryptocurrency space is going to be much more than a "casino" in the near future. You can already buy tokenized stocks and treasury bills if you're not a resident of the USA. Trump said crypto capital, so expect at least that and a lot more. Why should stock market trading be limited to when the NYSE is open, anyway? Pay attention to what Eric Trump says about WLFI.
desumeku··on The Strategic Crypto Swindle
Only until the dollar hits 0 in comparison. Then, it doesn't matter what a bitcoin is "worth", since it's all arbitrary at that point and it can be used as a pure economic unit devoid of any other context.
desumeku··on The Demoralization is just Beginning
Which wars, specifically?
Page 1 of 6Next →