HNHacker News
TopNewBestAskShowJobs

dosshell

1,310 karma · joined June 27, 2014

Sweden Eye tracking
submissionscomments
dosshell··on Whoisinspace.com/
Someone on HN that does not use ad block? This is still so confusing for me. Why not spend 40 seconds and never see any ads more?
dosshell··on Coin-sized device can hack a Boeing 737
It is not that simple, atleast in the automotive industry _today_. Atleast here in EU.

Every component is analyzed from a cyber security perspective. Many components needs tampering protection - while others need not. This includes replacing components with malicious ones.

It is not logical at all and a stupid regulation. But it is not as simple as you can do what you want if you have physical access.

dosshell··on Solid Queue 1.6.0 now supports fiber workers
Some context:

Fiber is a datastructure where the execution context is saved. Eg. registers (including instruction pointer) and stack etc. That is a fiber: data.

You normally use a threadpool, core pinned, to execute these fibers.

Since you jump in userspace, you more or less only have to pay for cache misses.

There are many upsides of designing a program using fibers. The major downside i see is that you can not blindly trust mutex and semaphores any longer - since the fiber can change execution thread while yielding/waiting for condition.

dosshell··on A migrant surge tests Spain's open policies
> It is also angering the rest of Europe

It is very important to note that you can not leave Ceuta without passport etc. It is not part of Schengen. This is a problem for Ceuta and Spain, and nothing more.

Think about that when you read what your politicians say about the incident. I have seen many lies and false statements the last few days.

The leaders should stand by Spain, not lie to their citizens about the situation to win votes.

dosshell··on Lessons from the Vasa Shipwreck
And Scott Myers talk:

"Why C++ Sails When the Vasa Sank"

https://m.youtube.com/watch?v=ltCgzYcpFUI

dosshell··on Lore – Open source version control system designed for scalability
Every place I worked at has a git introduction where all new employees learn about how git works internally. Takes 1h, and all junior devs stops memories random commands and actually start to understand. I highly recommend to you to poking around in the .git directory.

The git support for new employees drops basically to zero.

dosshell··on Ask HN: What Are You Working On?
What issue do you have specific with reviewing ai code?
dosshell··on ReactOS
Drivers exclusive for Windows.

You know your old Soundblaster AWE64 Gold, with all bundled programs [0]. Or that very special Analog Video grabber card you have.

Wine is user space. This is the full OS.

[0] Ok, that maybe works in linux, but you get your point.

dosshell··on Zed 1.0
i investigated this yesterday and there is one cmake extension. It gives basic support to cmake. Not as neat as vscode/jetbrains/qt/vs but it works. It is depends on CMakePresets.json and has no gui etc.
dosshell··on 90% of Claude-linked output going to GitHub repos w <2 stars
you would lose 80 repos from "10000 : 1847" also in that case.
dosshell··on Velxio, Arduino Emulator
what do you mean with "The browser-based IDE (editor ...)

You use Monaco Editor for that.

dosshell··on Velxio, Arduino Emulator
What parts have you exactly built?

All I see are dependencies that are glued together with claude.

Can you clearify exactly what you have developed?

dosshell··on We can’t send mail farther than 500 miles (2002)
This is a good read! and something i have in the back of my head when debugging spooky bugs.
dosshell··on How well do you know C++ auto type deduction?
If it captures variables, it is not possible to manually declare the type. You can however hide it in an std::function. But then you probably get some overhead and some heap allocations in real life.
dosshell··on How well do you know C++ auto type deduction?
You put the using as class member (private) or as local in the function.
dosshell··on Introduction to GrapheneOS
> I have to have TikTok for work

I'm sorry but what? Your job demands what apps you have installed on your PRIVATE phone!?

dosshell··on Zig breaking change – initial Writergate
>> because part of what’s holding Zig back from doing async right is limitations and flaws in LLVM

this was interesting! Do you have a link or something to be able to read about it?

dosshell··on Nobel Prize in Physics awarded to John Hopfield and Geoffrey Hinton [pdf]
Note that: There are no economic science Nobel prize.

Only one similar named price in the name and memory of Alfred Nobel, which some how, is allowed to be part of the Nobel prize celebration.

I guess my opinion is in minority, but i don't like that another prize hijacks the Nobel prize.

dosshell··on The Performance Impact of C++'s `final` Keyword
I tried to reproduce it on Ivybridge (Windows VS20122) and failed (mulss and muldd) [0]. single and double precision takes the same time. I also found a behavior where the first batch of iterations takes more time regardless of precision. It is possible that this tricked me last time.

[0] https://gist.github.com/dosshell/495680f0f768ae84a106eb054f2...

Sorry for the confusion and spreading false information.

dosshell··on The Performance Impact of C++'s `final` Keyword
I agree with you. It should take the same time when thinking more about it. I remember learning this in ~2016 and I did performance test on Skylake which confirmed (Windows VS2015). I think I remember that i only tested with addsd/addss. Definitely not x87. But as always, if the result can not be reproduced... I stand corrected until then.
dosshell··on The Performance Impact of C++'s `final` Keyword
Yes, as I wrote, it is only true for one float value.

SIMD/MIMD will benefit of working on smaller width. This is not only true because they do more work per clock but because memory is slow. Super slow compared to the cpu. Optimization is alot about cache misses optimization.

(But remember that the cache line is 64 bytes, so reading a single value smaller than that will take the same time. So it does not matter in theory when comparing one f32 against one f64)

dosshell··on The Performance Impact of C++'s `final` Keyword
> I can get away with a smaller sized float

When talking about not assuming optimizations...

32bit float is slower than 64bit float on reasonable modern x86-64.

The reason is that 32bit float is emulated by using 64bit.

Of course if you have several floats you need to optimize against cache.

dosshell··on Hidden dependencies in Linux binaries
First IANACC (I'm not a compiler programmer), but this is my understanding:

What do you mean by interface?

A dynamic library is handled very different from a static one. A dynamic library is loaded into the process virtual memory address space. There will be a tree trace there of loaded libraries. (I would guess this program walks this tree. But there may be better ways i do not know of that this program utilize)

In the world of gnu/linux a static library is more or less a collection of object files. The linker, to my best knowledge, will not treat the content of the static libraries different than from your own code. LTO can take place. In the final elf the static library will be indistinguishable from your own code.

My experience of the symbole table in elf files is limited and I do not know if they could help to unwrap static library dependencies. (A debug symbol table would of course help).

dosshell··on Hidden dependencies in Linux binaries
This is very interesting! Are there any movements to move towards this?

Wouldn't it open up for a new attack vector where process could read each other data?

dosshell··on Hidden dependencies in Linux binaries
I agree with you, hidden is worse.

But we do know what it can not static link to, any GPL library, which many indirect dependencies are.

dosshell··on Ask HN: Most efficient way to fine-tune an LLM in 2024?
I know this is maybe not the answer you want, but if you are just interested in getting the job done there exist companies that are experts on this, for example:

https://fortune.com/2024/03/11/adaptive-startup-funding-falc...

dosshell··on Rogue editors started a competing Wikipedia that's only about roads
One problem I encounter with math wiki is that I almost need to know what it is before reading to understand the wiki page.

I think wikibooks is a good initiativ to solve this, and could be powerful when combined with a normal wiki.

dosshell··on Show HN: Find the spot – Can you find the spot in 5 turns or less?
I think you have typo in your url.
dosshell··on I am the cheapest bastard in indie games (2019)
I'm not be able to tell pixellabs ai art apart from professional painted art.

Of course the best result is when the tool is combined with a good artist.

I'm 100% sure the price for game art will drop significantly, if it already hasn't.

dosshell··on The Case for Rust in the base system
> it reasons about object lifetimes statically.

How does that differ from RAII?

I think i misunderstand you or lack knowledge, because this sounds exactly like RAII.

I know that rust has major compile time checks, but saying that the difference is that it reason about life time as difference to c++ is misleading. I think the major point of c++ compared to c is that c++ "reason about object lifetime statically" with deconstructors and RAII. And saying that rust do this and implying c++ don't is misleading.

Page 1 of 6Next →