HNHacker News
TopNewBestAskShowJobs

account4mypc

53 karma · joined January 22, 2021

submissionscomments
account4mypc··on Why we need SIMD
AMX registers are 1024 *bytes*
account4mypc··on Why x86 doesnt need to die
usually the really fat instructions take over 1 cycle anyway, right? so the decoder should be able to keep up
account4mypc··on Ask HN: Should I try to manufacture toasters?
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.

account4mypc··on A Lufthansa A350's frustrating Oakland diversion
as an aside, i'd feel safer if more airlines had this policy
account4mypc··on On a great interview question
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.
account4mypc··on NYPD can use more than 15,000 cameras to track people using facial recognition
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.
account4mypc··on Britain to start approval process for Rolls-Royce mini nuclear reactor
what do you mean? i'm curious to learn more about this
account4mypc··on Please make a dumb car
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.
account4mypc··on U.S. FAA clears 45% of commercial plane fleet after 5G deployed
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.

account4mypc··on U.S. FAA clears 45% of commercial plane fleet after 5G deployed
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

account4mypc··on Germany calls nuclear power 'dangerous,' rejects EU plan
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!

account4mypc··on Germany calls nuclear power 'dangerous,' rejects EU plan
> 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?

account4mypc··on China to supercharge uranium race with 150 new nuclear reactors
i think people are more desperate for change (and imo, rightly so)
account4mypc··on C++ Coroutines Do Not Spark Joy
I agree, but I think in 5 years we will be using coroutines regularly. Just need to let the standard library catch up.
account4mypc··on Led by France, 10 EU countries call on Brussels to label nuclear energy as green
I think this is the right attitude. Even if you don't want to use nuclear power, it obviously warrants serious attention.
account4mypc··on What science can tell us about C and C++'s security (2020)
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)

account4mypc··on PG&E will bury 10k miles of power lines so they don't spark wildfires
Off topic, but how do underground power lines stay cool? I always thought long distance powerlines got really hot.
account4mypc··on Consumer Prices in U.S. Increase by Most Since 2009
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.
account4mypc··on Global rich must cut their carbon footprint 97% to stave off climate change
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)

account4mypc··on Nano 5.7
micro has two really nice features

- mouse select

- same keyboard shortcuts as vscode

other than that it's the same as nano

account4mypc··on How to become a more productive Software Engineer
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)

account4mypc··on Modern C++ Won't Save Us (2019)
well, the immediate problem is it's hard to rewrite the STL without resorting to ugly patches
account4mypc··on Modern C++ Won't Save Us (2019)
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.

account4mypc··on How many x86 instructions are there? (2016)
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
account4mypc··on Include-what-you-use: A tool to analyze includes in C and C++ source files
> 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*

account4mypc··on Why C++ Is Terrifying
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)

account4mypc··on All C++20 core language features with examples
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
account4mypc··on All C++20 core language features with examples
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.

account4mypc··on All C++20 core language features with examples
I actually think modules-ts is worse than include...
account4mypc··on Ask HN: Am I wasting my time working as a software engineer in Western Europe?
and in a big city, rent + food will cost way more

and if you have kids, you might need to pay for childcare and maybe even their education

Page 1 of 2Next →