Better HN
topnewbestaskshowjobs
Log inSign up

sapiogram

922 karma · joined Aug 18, 2014 (12y ago) · 345 submissions

Submissions

comment 1y ago · link · parent

It's probably from the Lex Friendman podcast he did. And to be fair, he didn't say "it doesn't matter", he said "it's not that important".

comment 1y ago · link · parent

There's a reason everyone writes their GUI apps in Electron nowadays. Browser have spent 30 years figuring out fast rendering, it's hard to beat that, even with native code.

comment 1y ago · link · parent

Their font rendering looks awful on non-high dpi displays, and the devs don't seem to care at all. https://github.com/zed-industries/zed/issues/7992

comment 1y ago · link · parent

> Giving us $50 trains to Tromsø instead of $500 planes.

It's only $50 if the government pays for the rest of the ticket. $50 per passenger won't even cover track maintenance. Source: My ass, but I still think I'm right.

comment 1y ago · link · parent

Making drivers miserable is part of the intention, they want people to drive less because it's annoying as hell for everyone else.

comment 1y ago · link · parent

In Norway, C# seems to have surpassed Java in the finance sector several years ago. C# is also much bigger than Java in game development.

comment 1y ago · link · parent

Because people think Golang is immune to bugs that it's not immune from.

comment 1y ago · link · parent

> The violation occurs if the program keeps running after having violated a memory safety property. If the program terminates, then it can still be memory safe in the definition.

I don't know what you're trying to say here. C would also be memory-safe if the program just simply stopped after violating memory safety, but it doesn't necessarily do that, so it's not memory safe. And neither is Go.

comment 1y ago · link · parent

"Memory safety" has a specific, binary definition.

comment 1y ago · link · parent

"Crashing" is a very positive spin. "The heap getting the corrupted until it was killed by the operating system" is another interpretation.

comment 1y ago · link · parent

> I feel like x86 itself is kinda legacy tech.

The impact of ISA is overrated, it's much more important that the ISA continues to grow and adapt as CPUs get larger.

comment 1y ago · link · parent

> For the few that can, it's going to cost >$50,000 just to refill the liquid helium

In this case, they were going to have to do that anyway. Might as well shut it down right away.

comment 1y ago · link · parent

Copy is already banned for any type that directly or indirectly contains a non-Copy type, and Vec contains a `*const T`, which is not Copy.

comment 1y ago · link · parent

This is why I've completely stopped using the term, literally everyone I talk to seems to have a different understanding. It no longer serves any purpose for communication.

comment 1y ago · link · parent

> Afaik it's the only way to early-abort an operation since Goroutines operate in a cooperative, not preemptive, paradigm.

I'm not sure what you mean here. Preemptive/coorporative terminology refers to interrupting (not aborting) a CPU-bound task, in which case goroutines are fully preemptive on most platforms since Go 1.14, check the release notes for more info. However, this has nothing to do with context.

If you're referring to early-aborting IO operations, then yes, that's what context is for. However, this doesn't really have anything to do with goroutines, you could do the same if the runtime was built on OS threads.

comment 1y ago · link · parent

Very cool benchmark, thanks!

comment 1y ago · link · parent

Yeah, not the entire northern sky at least. It's located only 30 degrees south though, so its coverage will be pretty damn good.

comment 1y ago · link · parent

ELT will not discover many new objects, it's built to do deeper followup observations of known targets. On the other hand, Vera Rubin was designed to be a survey telescope, repeatedly imaging the entire night sky to discover new objects. It will not do targeted observations, or at least very few.

comment 1y ago · link · parent

That's a reasonable assumption, but given Sedna's unusual orbit, its origin could also be quite different from Pluto's.

comment 1y ago · link · parent

> Modern GPUs have a rated lifespan in the 3-7 year range, depending on usage.

That statement absolutely needs a source. Is "usage" 100% load 24/7? What is the failure rate after 7 years? Are the failures unrepairable, i.e. not just a broken fan?

comment 1y ago · link · parent

It's probably something in the rendering pipeline. What operating system?

comment 1y ago · link · parent

It's so incredibly frustrating. Text rendering is the primary feature of a code editor, but no one on the Zed team seems to use a non-retina screen.

Github issue for context: https://github.com/zed-industries/zed/issues/7992

comment 1y ago · link · parent

Are you using dark mode? To me, text looks absolutely awful in light mode, but okay in dark mode. Still noticeably worse than any other editors, though.

comment 1y ago · link · parent

AAA games are not even close to being write-able by one person, what are you talking about. You couldn't even write AAA games from 20 years ago.

comment 1y ago · link · parent

Some options:

- Make sure no one mutates the slice ever, making it safe to read

- Guarding the slice behind a mutex, requiring anyone who reads or writes it to lock the mutex first

- Using some kind of thread-safe slice implementation

comment 1y ago · link · parent

> You must clone the slice on both write and read, right?

I haven't looked at the code, but that doesn't make sense to me. If you can't read the slice safely, you also can't clone it safely.

comment 1y ago · link · parent

They do, there's a concurrent hashmap in the standard library. It doesn't get posted here or on Reddit, though.

comment 1y ago · link · parent

Thank you for debunking it so I didn't have to. I don't think I've ever seen someone post a low-level/concurrent data structure in Go that wasn't wildly unsound, so I assumed this was too.

comment 1y ago · link · parent

> (if I recall correctly JPEG as a format can encode an image with a higher fidelity than PNG, at least in some circumstances)~

PNG is a lossless format, so I don't think that's possible, unless there's some specific feature that is not available in PNG.

comment 1y ago · link · parent

Note that `go clean` doesn't actually clear dependencies, which are stored globally. It's possible that your initial compile also wasn't a true clean compile, because some modules were already cached globally.
12345
12