Better HN
topnewbestaskshowjobs
Log inSign up

renox

1,062 karma · joined Dec 20, 2013 (12y ago) · 1,225 submissions

Submissions

comment 2w ago · link · parent

Yes and no: while it's very impresive, I wonder if the Chinese didn't invent a better system: https://www.youtube.com/watch?v=Zt1V9UWhuKk

comment 2w ago · link · parent

Which contradicts the claim 'safer than Rust' given that in Rust it either panic or wrap.

comment 2w ago · link · parent

Were? I haven't seen any serious move towards SeL4 and userspace written in a memory safe language..

The only serious move is kernels adoption of Rust, but for example in Linux this is restricted to 'non core' components.

And while Rust is obviously safer than C, it isn't really 'security focused' for example it still have supply chain attacks, which would be 'impossible' if it used capabilities..

comment 2w ago · link · parent

> CISC instructions take up less space than the equivalent RISC instructions

In theory CISC instructions take less space than the equivalent RISC instructions, but x86 has lots of legacy features which makes it far less efficient than a CISC could be.

comment 2w ago · link · parent

I hate Oscar Niemeyer (most of people from le Havre despise its "vulcano" especially when you compare it with the nice theater which was there before the war) but sometimes it's not his fault: in Paris they used a design made for Brazil in a university: so it always very cold and drafty, but that's on purpose but it's just not adaptated for Paris's climate (except when there is a heatwave of course).

comment 1mo ago · link · parent

Nobody forces you to use unchecked build! And some people want maximum performances, I've read that bound checking can hurt SIMDification..

comment 1mo ago · link · parent

Or that reasonable people may disagree on when to make signed/unsigned overflow undefined: Zig didn't only make it an UB on unchecked build they also trigger an "abort on overflow" in checked build.

comment 1mo ago · link · parent

Zig disagree with you: they even made unsigned OV undefined (in unchecked mode)

comment 1mo ago · link · parent

> The same goes for its "Code Density" argument: nope, code density is very important.

Sure, but ARM's thumb has shown that you can get a RISC which has the same code density as current CISCs.

Of course, it's because current CISCs are bad due to backward compatibility but..

comment 1mo ago · link · parent

> Unfortunately that's somewhat expected - regardless of implementation

Yes, that's expected and no not "regardless of implementation": the GC implementation CAN be improved.

See this discussion on reddit: https://old.reddit.com/r/programming/comments/1wf2fei/40ms_g...

Copy/pasted here: >>

I remember a research paper about swap and GC, where the GC cooperated with the OS to avoid this kind of issue. AFAIK it went nowhere, too bad.

[–]andreiross[S] 15 points il y a 21 jours

Are you talking about this one? https://cse.buffalo.edu/\~mhertz/bc-pldi-2005.pdf. If so, yes. Too bad. I don't know the repercusions this paper had in the past, though, in the sense of pros and cons of the bookmark collector. Don't know if anyone tried to actually implement it or design it at some point.

[–]renozyx 9 points il y a 21 jours

Yes, congratulations for finding it. And I don't know either,. Except that they did implement it on Linux (of course) https://plasma.cs.umass.edu/emery/cooperative-memory-managem...

<<

comment 1mo ago · link · parent

It isn't a toy for sure, but I doubt that it has good scalability stories when using SMP.. I'd love to be wrong given that even phones are multicores, so feel free to correct me.

comment 1mo ago · link · parent

'data oriented' doesn't mean 'just use SoA' it means use data structures which correspond to your data access pattern. Which is quite difficult to know in complex applications and which can change..

comment 2mo ago · link · parent

> hands are wrung that communication will become rife with error and misunderstanding because unlike the telegraph, the newfangled telephone leaves no written record!

Well let's not forget that early phone communication quality was ahem not-very-good, so of course errors were an issue.

comment 2mo ago · link · parent

> If you have a read-only variable and exclusive access to it, then you can rely on immutability as well.

The problem is the "exclusive access to it", most language aren't Rust.. Some Ada-implementation has the problem ( https://news.ycombinator.com/item?id=43001394 )

comment 2mo ago · link · parent

Why do you say this? The post is quite clear that marking the memory region as NX fix the issue caused by speculative execution.

comment 2mo ago · link · parent

> the OS _writes_ unused memory pages to the swap file

The OS write unused memory pages to the swap file by default. But the 'constant memory' design is usually done with locking in memory both the executable and memory pages (also pinning the process to CPUs, using realtime priorities etc).

comment 2mo ago · link · parent

Read about the AF447 Rio-Paris crash. Input stick averaging?? That's a huge design mistake which contributed to the crash and AFAIK is still here..

comment 2mo ago · link · parent

You're phrasing this as if using an IDE was always an advantage, but unfortunately this isn't always the case:

-IDEs are more resources hungry, I remember when trying to use CLion on a big C++ codebase, until increasing the garbage collector maximum heap size all I had was a blank screen, after it was just unusably slow...

-even when IDE work, LSP for C++ codebase aren't very good, for example the caller hierarchy is usually very incomplete..

-I remember having been asked quite a few times, about "how do I use the IDE's integrated debugger to debug a target which was available only through ssh and then you had to telnet from one board to another?" My answer? Use gdb.

That said, I use VSCode now because its multiple tab handling is very nice, but I use it mostly as a glorified text editor (not by choice but because C++ is really IDE's unfriendly).

comment 3mo ago · link · parent

> It's a difficult coordination problem.

Well, it depends on the language: language which "capabilities" (both for the source code and for the building* ) could in theory really reduce a lot of the burden to identify supply chain attacks.

*: some research language have/had capabilities which would make supply chain attack "obvious" but for build systems I don't know if this exist.

comment 3mo ago · link · parent

One thing I noticed with your clever encoding is that you can avoid some nops: instead of having 2 15 bits instructions followed by two nops, you could have two 30 bits instructions, saving maybe a little decoding energy.

Also the 60bit format will really help for loading immediates..

That said I wonder why normal ISA do not contain a 'Load Immediate on Next PC'? And if you want to allow parallel decoding the first byte of the immediate would be a 'special noop' and the first immediate byte would be inside the Load Immediate Next PC instruction instead.

comment 3mo ago · link · parent

So a VLIW, interesting but usually compressed instructions are at most two-registers..

comment 3mo ago · link · parent

If the language is Java which puts the GC in nearly everything you're f..., other languages have GCs and nonGC'd data so you go to the wonderfull world of manually managed objects with its use-after-free..

comment 3mo ago · link · parent

> Do you really think current LLMs can implement a large application in C as securely as they can in e.g. Go?

That's not my experience: I've seen an LLM generate a C++ use-after-free (1.5 month ago).

comment 3mo ago · link · parent

Congratulations your language is trying to solve an hard problem.

But .. your language mostly hide when you're doing an 'inside' function call or an 'external' function call. I'm not sure I like this; 1) the latency of both operation is very different so you want to minimise the number of 'external' function calls 2) what happens in case of 'timeout' for external function calls? I didn't see it in the doc, did I miss it?

comment 3mo ago · link · parent

> The car industry is constantly innovating trying to prevent accidents and make them less damaging to occupants

And at the same time, they make bigger and bigger cars which make more serious accidents for pedestrian, young children, etc.

comment 3mo ago · link · parent

This part is very bad, 99% of the time if you overflow a 64 bit variable it is because you did the wrong computation, not because you need BigInts..

comment 4mo ago · link · parent

Not the only one though: I remember what happened when we 'invaded' Lybia: not one criticism in the French news anywhere, total censorship, even though our media had widely and correctly criticised the US for the Irak war..

So I think the best thing is to get news from everywhere Russia, China, the US, Europe, but that's a lot of work..

comment 4mo ago · link · parent

> In France, there has been some ban on advertising alcohol, cigarettes.

So technically, it's possible but of course politician's corruption is a big issue..

comment 4mo ago · link · parent

> And, on the other end, C's warts, footguns and ancient quirks also matter less if you have an LLM plow through it.

'plow through it's?? An LLM can definitedly fall into these traps!

Happened to me a few months ago, I couldn't believe that an LLM would generate a use-after-free in not-so-complex code but it did.. Newer LLM seems better now but buyer beware!

comment 4mo ago · link · parent

> Human beings are rational animals as such

Really? Explain the success of advertising, superstitions (including religion) then.

12345
41