Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
renox
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
691.
▲
by
renox
7y ago
While I like its 'style', I'm not sure about the Perl5 implementation, is the speed 'good enough'?
692.
▲
by
renox
7y ago
Given that I read left to right usually, I think that this is a good change
693.
▲
by
renox
7y ago
I tried recently to optimise a loop looking for a value in a small array of short integers (8 elements), not so easy, there are so many choices: tight loop (a priori not an optimal choice but use only one instruction cache line), unrolled l
694.
▲
by
renox
7y ago
I don't know: if we really wanted to be 'strict' every integer operation should return a Maybe due to possible overflow, every IO operation also. That's a lot of possible error to handle! I don't like exception'
695.
▲
by
renox
7y ago
>What about Spectre? It is an hardware exploit, thus there is only so much one can don in software to prevent it. And there has been mitigations done in software in the Linux kernel (and the web browsers but that's userspace), so
696.
▲
by
renox
7y ago
While I don't disagree on your first two points, I disagree with you third: there's nothing complex about generational index.
697.
▲
by
renox
7y ago
seL4 isn't really written in C, AFAIK it's written in Haskell then translated in C. Because C is one of the few language to have a formally verified compiler CompCert. Now does seL4 support properly modern CPUs: multiple cores, wi
698.
▲
by
renox
7y ago
I don't know much about Rust (and nearly nothing about Pin) but if this was true, don't you think someone would already have written a library providing doubly linked list without using unsafe?
699.
▲
by
renox
7y ago
>Pilot wave theory isn't actually simpler because the pilot wave must travel throughout the entire universe instantaneously Given that quantum mechanic is non local (quantum teleportation), I don't think that this is the big is
700.
▲
by
renox
7y ago
Do you really need the answer? It starts with f..
701.
▲
by
renox
7y ago
I will have a look thanks. I think I'll implement it with two arrays one for keys one for values and a loop to find the key index, then return the corresponding value It may be better to fully unroll the loop, I'll have to benchma
702.
▲
by
renox
7y ago
Thanks but these structures are size optimised, I'm looking for CPU usage optimised structures.
703.
▲
by
renox
7y ago
Not so sure about IP used in this (or other) factory though..
704.
▲
by
renox
7y ago
In the similar topic, I'm trying to find maps optimised for a small maximum number of items (8 or 16) indexed by integers. Curiously I failed to find discussions about this topic.. But std::map seems very badly fit for this kind of map
705.
▲
by
renox
7y ago
Yes, been there done that, I was so relieved when I could stop using these f.. fountain pens. Really annoying to use as for lefties..
706.
▲
by
renox
7y ago
I already have to read source code by doing my team's reviews, and I don't enjoy it. Maybe it's because of the responsibility (why didn't you caught this bug in the review?), but it's really difficult.
707.
▲
by
renox
7y ago
Getting better performance than C without using a different algorithm? Weird.. My hunch: the C functions lack the restrict keywords so the compiler's optimiser cannot generates efficient code.
708.
▲
by
renox
7y ago
I don't know if 45° wings provide good lift or not, but what I know is that they would induce a lot of 'drag'. And that the goal is to maximize lift while minimising drag.. So it isn't that complicated why the wings are
709.
▲
by
renox
7y ago
Except that I didn't put all these "catch".. But you're right, that's what should be done (or at least, rethrowing the exception from the catch block).
710.
▲
by
renox
7y ago
> But C++ does not provide a stack trace Which makes exception in C++ a very, very bad idea! My reaction to 'the test fails because map::at threw an exception': stupid STL!! A core dump would be so much easier to analyze.. Gdb&
711.
▲
by
renox
7y ago
That's a reasonable default behaviour, can you change it though?
712.
▲
by
renox
7y ago
The list should probably be: Zig, Jai, Odin, Beef, V in the category 'C replacement'. Nim should be with D in the category 'C++ replacement with a GC by default'.
713.
▲
by
renox
7y ago
I view this as a good idea!
714.
▲
by
renox
7y ago
Being able to use a GC in some embedded cases (not too hard constraints on memory use or latency), doesn't mean that you're able to use GC in every embedded cases. I work on telecoms just above the FPGA/DSP even a 1ms pause w
715.
▲
by
renox
7y ago
And D has the DasBetterC mode, but I'm not sure that's good enough: when the language has a GC by default, all the libraries use it, the APIs relies on it.. What good is a language if you can't (easily) use its libraries?
716.
▲
by
renox
7y ago
You didn't but I remember a case where Linux's devs got bitten by gcc which did it..
717.
▲
by
renox
7y ago
> Can anyone give a specific example of code they've worked with that was "too clever"? -I remember being called to help rewrite a few lines of Perl (the other developer didn't manage to do it): it took me two or thre
718.
▲
by
renox
7y ago
Saying that the cost of a system call is X cycles is IMHO a bit "short", what's the effect on the various caches? TLB.. Plus nearly all system calls must validate the user inputs, so the minimum cost for a system cost is far
719.
▲
by
renox
7y ago
That's funny: the priming tests has apparently been quite criticised as shown in the reply, yet the speaker still use this example, has he been primed on priming? More likely once you remove the "priming" part, there isn'
720.
▲
by
renox
7y ago
I disagree: in #1 and #2, the mapping between the key and the function name are different, so there is a conflict.
More ›