Better HN
topnewbestaskshowjobs
Log inSign up

account4mypc

53 karma · joined Jan 22, 2021 (5y ago) · 38 submissions

Submissions

comment 1y ago · link · parent

AMX registers are 1024 *bytes*

comment 2y ago · link · parent

usually the really fat instructions take over 1 cycle anyway, right? so the decoder should be able to keep up

comment 2y ago · link · parent

my toaster is pretty crappy - i'd buy your toaster!

my list of complaints

- strong smell of chemicals when i first started using it - can be hard to remove things without burning myself e.g. english muffins - sometimes it burns things/sometimes it doesn't toast them enough. i have figured out which settings work for some common use cases, but it feels like a toaster should be able to figure it out w/out crazy complexity.

comment 2y ago · link · parent

as an aside, i'd feel safer if more airlines had this policy

comment 3y ago · link · parent

Even if this is true, it's kind of useless since you need some way to decide who to hire. Not saying i think OP has the best method.

comment 3y ago · link · parent

Anecdotally, NYC feels less safe than it has ever felt (in my 20+ yrs of being here). Most of the issues are not reportable crimes/would not be taken seriously by today's NYPD e.g. verbal harassment on the street, following, punching, etc. So while i'm sure i'm in the minority, i hope this leads to more policing.

comment 4y ago · link · parent

what do you mean? i'm curious to learn more about this

comment 4y ago · link · parent

my car from 2010 had a screen that felt really outdated. i removed it and installed a bluetooth system that just has an on/off/volume knob. this feels a lot more modern and has made night driving a lot easier on my eyes.

comment 4y ago · link · parent

i'm not an expert, but it seems like other countries use lower power levels compared to what the FAA wants to use. https://www.bbc.com/news/business-60042178

also, and this is just my opinion, but the absence of plane crashes does not mean it's safe! some faulty things exist for years before anything happens and/or the issue is noticed.

comment 4y ago · link · parent

Seems like:

- downside of delaying 5g is slightly longer download speeds (?)

- downside of interference is planes might crash (!)

why not just give the FAA all the time it wants

11.

Clashes over EU’s New “Green” Classifications for Nuclear Energy and Natural Gas(forbes.com ↗)

1 points · by account4mypc · 4y ago · discuss

comment 4y ago · link · parent

i think i agree with "You just cannot keep going on poisoning the world." in spirit.. but doesn't this mean germany should be fighting against new co2 emitting plants rather than making fewer alternatives (and relying on natural gas/imported energy at home?)

seems like a case where there are two evils and one is way lesser!

comment 4y ago · link · parent

> The German government said Monday that it considers nuclear energy dangerous and objects to European Union proposals that would let the technology remain part of the bloc's plans for a climate-friendly future.

Why does Germany care if there is an additional option for other countries?

comment 5y ago · link · parent

i think people are more desperate for change (and imo, rightly so)

comment 5y ago · link · parent

I agree, but I think in 5 years we will be using coroutines regularly. Just need to let the standard library catch up.

comment 5y ago · link · parent

I think this is the right attitude. Even if you don't want to use nuclear power, it obviously warrants serious attention.

comment 5y ago · link · parent

I wonder if there is another way to partially explain these results:

- many (most?) programmers were taught C/C++ for several decades

- some programmers taught themselves rust because they were driven and interested

- these rust programmers are probably better programmers on average

- they wrote (or would write) better code that is somewhat elegant. and they have the advantage of starting with code that has had its memory bugs fixed over the last few decades

So I wonder if you had taught the masses rust starting in the 1980s... would the masses have found other way to write buggy/crappy code?

(I realize this could sound a bit condescending; fwif I did not teach myself rust so i'm not counting myself in the 'better' group)

comment 5y ago · link · parent

Off topic, but how do underground power lines stay cool? I always thought long distance powerlines got really hot.

comment 5y ago · link · parent

maybe a coincidence, but it seems like there's a correlation between cpi and carbon emissions. energy and transportation seem to be the most affected.

comment 5y ago · link · parent

carbon tax could be by state and only be calculated based on utilities. This would incentivize voters to favor carbon neutral/negative infrastructure.

(i agree penalizing individuals for not choosing expensive cars/stuff seems cruel)

comment 5y ago · link · parent

micro has two really nice features

- mouse select

- same keyboard shortcuts as vscode

other than that it's the same as nano

comment 5y ago · link · parent

cool article but

> I've stopped writing unit tests

i think this is generally bad and might only be more productive for uncommon workflows (if at all)

comment 5y ago · link · parent

well, the immediate problem is it's hard to rewrite the STL without resorting to ugly patches

comment 5y ago · link · parent

boost::optional was designed to mimic pointers. Before boost::optional, some programmers would return a T* as a caveman's optional<T>. Boost wanted to preserve the syntax of *, ->, and operator bool. Dereferencing a null ptr is UB, so operator* for optional was the same.

I agree it would be nice if you could get an assert in operator*. But you can already fire up a debugger or sanitize build and get a nice error message anyway, so it's nbd.

comment 5y ago · link · parent

i think if you were writing such a program, this article would show that using such a number is a much more complicated idea than it sounds

comment 5y ago · link · parent

> with 128 threads, modules become slower only when the DAG depth is higher than 29

yeah, but the same graph never shows modules being faster... it only ever shows them being the same or slower. If I'm going to put in all that work, the result should be *faster*

comment 5y ago · link · parent

I don't think this is true except maybe on ancient architectures. function ptrs are usually just addresses (64 bits on most modern computers). virtual member function ptrs can have an extra bit of info to resolve the this ptr at runtime.

so usually (but not always), sizeof(int ptr) == sizeof(func ptr)

comment 5y ago · link · parent

i tried to evaluate whether they would help build times at all. this is the only reason i want them. based on some research, they don't if you have parallel builds (since a module must be built before its users/not in parallel). so i think this lessened excitement from users/compiler devs/build tool makers. and it was enough to convince me to just buy more cores to parallelize builds more rather than put in work for half baked modules

comment 5y ago · link · parent

I don't think it's really as bad as this...

> Waiting for Cross-Platform standardized SIMD vector datatypes

We sort of have this? compiler loop vectorization is, effectively, this. Granted it's not standardized.

> nonstandard extensions ... to run computations in parallel on many cores

std::thread?

> Debugging cross-platform code using couts, cerrs and printfs

True, but i think this is not the language's fault. C/C++ debugging tools are great (the best?).

Debugging any sort of meta-programming is a mess; would definitely agree w/ that. hopefully concepts will help.

> Forced to use boost for even quite elementary operations on std::strings.

This one i agree with.

comment 5y ago · link · parent

I actually think modules-ts is worse than include...
12