HNHacker News
TopNewBestAskShowJobs

kukkamario

196 karma · joined July 3, 2023

submissionscomments
kukkamario··on People with gas and propane stoves breathe more unhealthy nitrogen dioxide
Universities come up all sorts of results all the time. Media decides which are worth to make into news. I doubt this is first time that some university as come to this fairly obvious result, but now it is relevant so it becomes news.

But induction stoves are just better for most users, no need to thing any grand conspiracy why many would prefer that it became more popular. They are safer. They heat faster and are also react immediately to changing heat level like gas stoves.

Gas stoves do have some benefits compared to induction, but most only affect professionals. I'd guess at least 95% of people would prefer induction stoves, all costs being equal.

kukkamario··on Cognition Labs Seeks $2B Valuation
Well one is actual company and other is a money laundering scheme to funnel foreign money to potential future president...
kukkamario··on Tesla engineers don't have engineering degrees or even common sense apparently
Well heavy motors actually do stop easily, but issue is just that detecting when to stop becomes harder. It is something that can be solved by measuring more precisely or adding extra sensors, but somewhere costs were cut and some part of the stack wasn't implemented. Worst case it is hardware side and cannot be fixed by firmware update
kukkamario··on The Reasonable Effectiveness of Using Old Phones as Servers
And phone batteries turn quickly into spicy pillows if they are kept constantly attached to a charger.
kukkamario··on Debian on xz-utils: revert to version that does not contain changes by bad actor
There are million ways to hide exploits even in "safe" languages. If you have a bad actor that can spend couple years prepping how to hide an exploit, then it doesn't really matter which programming language is used.

Build system is complex because of legacy and need to support millions of different platforms and distros.

kukkamario··on Fast Virtual Functions: Hacking the VTable for Fun and Profit
Perspective really changes when simple integer addition can take more time than allocation in a compiled language.
kukkamario··on Hackers found a way to open any of 3M hotel keycard locks
Eh... Haven't seen anyone using 3kk to abbreviate 3M. 3M is common and B for billion. Those are also used in many games to shorten currencies.
kukkamario··on Don't pass structs bigger than 16 bytes on AMD64
But it often isn't in the stack. This is a vector type so it is often modified and used as part of math operations. Each vector field is probably in some register because it was used to calculate something and then has to be stored back to stack to get valid data for the reference.
kukkamario··on Don't pass structs bigger than 16 bytes on AMD64
No. Actually that is the whole problem here. That is pretty much exactly what the compiler does thanks to ABI. ABI says that the value must be passed by pointer so it has to store it somewhere to get the pointer, which is exactly the same that would happen if we made that explicit by using const-ref. By changing to use separate arguments for the struct values, arguments can be passed in registers instead.
kukkamario··on Don't pass structs bigger than 16 bytes on AMD64
In AMD64 ABI, anything larger (that doesn't fit in register) will be returned by basically output pointer argument. Caller reserves space for the return value and gives pointer to the function which then fills it with the return value. Both sides are easy to optimize and no unnecessary copies are made. Function can directly construct return value to the given address and caller can directly give a pointer to a variable if function return value is used to initialise variable.
kukkamario··on Linux hits nearly 4% desktop user share on Statcounter
Isn't SteamDeck's OS based on Arch? So that probably is large factor.
kukkamario··on How many CPU cores can you use in parallel?
Based on the graph the fast function runtime is really short. You might be just seeing effects of efficiency vs performance cores. Lower thread count makes most of the stuff run on performance cores and task end times align more nicely. With larger number of threads tasks running on performance cores complete first and you are left waiting for efficiency tasks running on efficiency cores to complete, or context switches have to be done and tasks are moved between cores which causes overhead.

You could try what happens if you have 10 times more images when running fast function.

Also you have just 8 physical performance cores and 4 physical efficiency cores. Performance cores have hyper threading so they act as 2 logical cores but that doesn't mean that they can actually execute 2 threads at maximum performance. If processing tasks use the same parts of the processor core, then processor cannot run both threads at the same time and IPC will suffer. Slow task maybe uses more varied parts of the core which allows better IPC with hyper threading. So that also may reduce optimal thread count.

kukkamario··on Tesla shares 48V architecture with other automakers
The power loss by the resistance scales in the square of the current and linearly to the resistance. So doubling voltage reduces resistance power loss to one quarter so you could lower wire size and increase its resistance to double and still resistance power loss would be halved
kukkamario··on Setenv Is Not Thread Safe and C Doesn't Want to Fix It
That isn't enough. You'd need to wrap getenv calls as well and that can't be done as there are hidden getenv calls in stdlib implementation. There isn't a trivial fix.
kukkamario··on Alan Wake 2 is an unexpected visual marvel even on older GPUs
I think Mumble's popularity in EVE scene is due to its support for talking to multiple channels simultaneously and ability to do hierarchical voice channels. This is require for large scale battle coordination. Battle group commanders can talk to each other and then command their ships without risk that any "lower level" can talk on top of them and so on.
kukkamario··on New Digital ID System to Be Pushed on Austrians This December
Yes. This article doesn't provide any actual conserns.

Government needs good way to reliably identify its citizens if it wants to provide online services for them. It has to be strong identification anyway because most online services that government provides are sensitive.

Unless this is used for some more malicious purpose than login in to do taxes, I don't see any issue with this. They seem to be allowing it to be used by commercial entities, which might be more concerning, but not necessarily. Depends on what is shared and how authentication is handled. Many commercial entities anyway need your actual identity (like banks) it is much better that instead every single company collecting all information they only need basic information and can use the government service to handle identity verification.

kukkamario··on Large Language Models for Compiler Optimization
They are not using LLM to directly produce the result code, but as tool that lists which optimisations should be done and in which order, which is fairly complex problem to solve. But if optimisation passes are implemented correctly (which is anyway required for a functioning optimising compiler), it cannot produce incorrect code, maybe only suboptimal compared to default heuristics used.
kukkamario··on Changing the Rules of Rust
Large part of why standard was changed so that GCC's copy-on-write strings became non-standard compliant was because CoW made std::string_view and such extremely hazardous. CoW has its benefits but also huge downsides, and small-string optimisation makes lot more sense with the C++11 move semantics.
kukkamario··on New world record with an electric racing car: From 0 to 100 in 0.956 seconds
I'm guessing weight is more important than aerodynamics if target is 0-100km/h.
kukkamario··on Texas paid Bitcoin miner more than $31M to cut energy usage
I think it actually makes much more sense to overproduce energy with renewables and then just use extra for something. Crypto is a bit stupid use case, hydrogen production or something actually useful would be better. Negative prices reduce investments to renewable energy production.
kukkamario··on Fomos: Experimental OS, built with Rust
Well there is also that small issue that implementing security for this design is pretty much impossible without destroying performance and end result is quite standard operating system.

Polling style scheduling will just be so slow if calling each executable always involves context switch. And then cooperative scheduling isn't really possible if some process doesn't play nice.

kukkamario··on Fomos: Experimental OS, built with Rust
What would be gained by making more different formats? Also #!/bin stuff is executable in sense and the most files in Windows that have default application set.

Dirt simple model works until it doesn't. Without address space separation there is no safety between executables and cooperative scheduling is the same. Running faulty binary or simply bit flip in ram can crash the whole system instead of just that process.

kukkamario··on Why does the USA use 110V and UK use 230-240V? (2014)
Currently probably biggest advantage is electric car charging. It is easy and cheap to add high power fast charger when there is already 3 phases available.

400V between phases so 230V per phase. Safety is provided by making plugs not expose contacts while half plugged. US plugs are really unsafe compared to plugs used in most of the Europe.

kukkamario··on Why does the USA use 110V and UK use 230-240V? (2014)
400V three phase is wired to all houses at least here in Finland. All 3 phases are wired to the electric box and then that splits phases to normal sockets and for lighting etc. Ovens use three phases and detached houses usually have separate 3-phase plugs outside for running eg. heavy construction tools, like cement mixer and such. Oh right and sauna stove also needs all 3 phases obviously.

Even apartments have that full 3-phases, but just for plugging in the oven and the sauna stove.

kukkamario··on LTS == 15 Years Not 5
Linux kernel API itself isn't really enough to do eg. any UI software, because things like creating windows or showing notifications, are not part of it directly. You need additional software on top of that for those features.

Win32 API is much larger than Linux kernel API and is stable so there is quite large chance that a couple decades old software still works without recompiling or updating libraries. It has its issues with many parts of it being completely horrifying to use, but the stability is something that Microsoft has done well.

kukkamario··on What's up, Python? The GIL removed, a new compiler, optparse deprecated
Well Python doesn't really do proper multi-threading currently thanks to GIL blocking any additional execution threads. So removing it would enable making Python code that is actually multi-threaded without resorting to extra processes and their overhead.

So if you are writing small single process Python script then removing GIL shouldn't really change much. If you are doing some heavier computing or eg. running server back-end, then there are significant performance gains available with this change.

kukkamario··on Packing a string of digits into an integer quickly
The bitmasks in the code are adjusted so that it works with that specific pattern of numbers to other letters. Masks only pick bits from digits when the are in those specific positions.

So this solution only works when the digit character places are fixed and known.

It would be possible to generate mask based on the first nibbles so that it would ignore non-digits. Maybe even with some fairly optimized vector instructions. Not sure would it be faster than some naive solution.

← PreviousPage 2 of 2