Better HN
topnewbestaskshowjobs
Log inSign up

desumeku

230 karma · joined Jul 2, 2024 (2y ago) · 185 submissions

Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

>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."

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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."

comment 1y ago · link · parent

All content that violates the law of the United States is banned on 4chan. I don't know where you got that idea.

comment 1y ago · link · parent

4chan culture itself is derived from polish, finnish and japanese imageboard culture and 4chan has always had a large international userbase.

comment 1y ago · link · parent

4chan is more moderated than you'd imagine.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Rust is supposedly post-1.0 but it still doesn't have a standard that isn't just documenting the output of the compiler.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

> 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.

comment 1y ago · link · parent

> 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.

comment 1y ago · link · parent

The language server, maybe?

comment 1y ago · link · parent

"Go is not meant to innovate programming theory. It’s meant to innovate programming practice.”

comment 1y ago · link · parent

> 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)

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

  o_node := graph.GetNodeByName(name)
  var ret []string
  for _, node := range o_node.connectedNodes() {
    if !node.isHidden {
      ret = append(ret, node.name)
    }
  }
  return ret

comment 1y ago · link · parent

"A little copying is better than a little dependency."

comment 1y ago · link · parent

> 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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

>job queues

In Go, these are called "channels".

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

If you think democracy is threatened because someone pledges their public support for a specific party, then you don't actually believe in democracy.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.
1234567