Better HN
topnewbestaskshowjobs
Log inSign up

dosshell

1,310 karma · joined Jun 27, 2014 (12y ago) · 249 submissions

Sweden Eye tracking
Submissions

comment 3d ago · link · parent

I like arena allocators, but some how i fel like reference counting would have been a better match for C# philosophy, like swift.

comment 3d ago · link · parent

Linux and BSD ?

comment 4d ago · link · parent

> One cannot build security on the foundations of inherently insecure technologies.

Of course you can?

Maybe I am missin your point, but that is fundamental basic that you put the encryption and decryption in the ends, and you can transfer over any inherently insecure technologies.

But you need the ends to be secure of course.

comment 2mo ago · link · parent

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?

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

> 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.

comment 4mo ago · link · parent

And Scott Myers talk:

"Why C++ Sails When the Vasa Sank"

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

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

What issue do you have specific with reviewing ai code?

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

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.

comment 8mo ago · link · parent

you would lose 80 repos from "10000 : 1847" also in that case.

comment 8mo ago · link · parent

what do you mean with "The browser-based IDE (editor ...)

You use Monaco Editor for that.

comment 8mo ago · link · parent

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?

comment 9mo ago · link · parent

This is a good read! and something i have in the back of my head when debugging spooky bugs.

comment 11mo ago · link · parent

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.

comment 11mo ago · link · parent

You put the using as class member (private) or as local in the function.

comment 1y ago · link · parent

> I have to have TikTok for work

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

comment 1y ago · link · parent

>> 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?

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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)

comment 2y ago · link · parent

> 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.

comment 2y ago · link · parent

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).

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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.

12345
9