Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
albinofrenchy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
albinofrenchy
10y ago
If you find this interesting, you might also like the embedded.fm podcast she was on: http://embedded.fm/episodes/141 .
92.
▲
by
albinofrenchy
10y ago
I disagree. Bitfields of somewhat unrelated fields is a sacrifice in clarity even if you understand bitfields perfectly well -- I'd argue anything requiring boilerplate sacrifices something in the way of being able to understand a code
93.
▲
by
albinofrenchy
10y ago
I'm finding it hard to believe that the bit field thing is ever really worth it. Even if you could collapse a dozen booleans into a single bit field, will this have a measurable impact? The other two optimizations I could see either ha
94.
▲
by
albinofrenchy
10y ago
I think the puzzle as phrased is slightly incomplete. The stranger must communicate something _new_ each day to make the induction work. For instance, if the number of blues is 25, and the (merciful) stranger says that the number of blues i
95.
▲
by
albinofrenchy
10y ago
My understanding is there is the statute and then there is the evaluating if a prosecution would be successful. From what I can tell, no one has been successfully charged for just gross negligence here. That being said I don't understa
96.
▲
by
albinofrenchy
10y ago
The point of a criminal trial isn't to convince anyone someone is innocent. Innocence is presumed. I'm pretty sure he did it. But the state has an obligation here to ensure a fair trial and that's what they are doing.
97.
▲
by
albinofrenchy
10y ago
Absolutely, but then what does it buy you over C/C++? It has a few 'nice to haves' over that, but in this domain those won't tend to be nice enough to motivate most people to bother setting up toolchains purposed for it.
98.
▲
by
albinofrenchy
10y ago
> Rust is not a GC'd language Right, I was referring to Go and Swift with the comment about GC. Since rust didn't have that problem, I mentioned why major adoption might not be forthcoming. I understand that you can statically
99.
▲
by
albinofrenchy
10y ago
GC languages are almost certainly not even in consideration for most embedded applications. There aren't good strategies for general garbage collection that don't insert random pauses for starters, and you also have a non-negligib
100.
▲
by
albinofrenchy
10y ago
Templates are mostly problems at compile time, but it's also possible to have subtle issues with complicated template specializations where it doesn't call the function you expect. So complicated usages are discouraged, BUT simple
101.
▲
by
albinofrenchy
10y ago
Green hills is an expensive nightmare. I occasionally have to use their stack, and their JTAG crashes multi with infuriating frequency. For a stack that is something like 20k, having to resort to serial line printf debugging is inexcusable.
102.
▲
by
albinofrenchy
10y ago
C++ is likely the best bet for this kind of thing. Or rather, a strict subset of C++. You want real time, you want a minimal OS and you probably want some of the nicer type capabilities over c.
103.
▲
by
albinofrenchy
10y ago
I somewhat doubt that model is valid for these issues. A large number of software issues relate to run time of a system. In particular, this one seems to be clock drift from other comments. That's more of a random walk; which crashes a
104.
▲
by
albinofrenchy
10y ago
As far as I know, even things like: uint16_t array[] = { 1, 2, 3, 4 }; cout << "Hello World " << 3[array] << endl; are valid and well defined. Part of what makes memory access validation such a pain in the ass
105.
▲
by
albinofrenchy
11y ago
So my understanding of the new generation is that it's essentially a giant chunk of continuous memory and as you create new objects, you are just adding to the end of it. For whatever reason a GC event happens, and now you can traverse
106.
▲
by
albinofrenchy
11y ago
Isn't that true only for objects in the 'new' pool? Or does it actually compact the old pool every gc?
107.
▲
by
albinofrenchy
11y ago
This really is an apples to oranges comparison. In C++, you have to know the difference between stack allocations and heap allocations. If you aren't dynamically allocating anything; malloc and free performance has no bearing. As far a
108.
▲
by
albinofrenchy
11y ago
I'd like to see that source too. On something this low level, running a JVM seems both useless and prohibitively expensive.
109.
▲
by
albinofrenchy
11y ago
> One of the most damaging things Clive Stafford Smith has done is to give public support for Moazzem Begg, who was almost certainly a high-ranking member of al Qaeda ( https://en.wikipedia.org/wiki/Moazzam_Begg ). (S
110.
▲
by
albinofrenchy
11y ago
So in talking in generalizations, it might not apply to you specifically. But broadly, over the industry, I think its slanted this way for the reason I described. Even here, you ask the candidate for their salary range, instead of just stat
111.
▲
by
albinofrenchy
11y ago
The reason is because the first person to say a number is at a slight disadvantage, and recruiters and managers don't want it to be them. It is true that making sure you are on the same page salary-wise is a good idea, but it doesn
112.
▲
by
albinofrenchy
11y ago
I get that, and I don't even think that that should be the reviewers job. But for CS in particular, I do wish more people published source code and build procedures. I think a central hub for public comments, with source, and available
113.
▲
by
albinofrenchy
11y ago
The most disillusioning thing for me as an undergrad was to try to replicate results from a paper on a relatively complicated problem, and not achieving anywhere near the papers level of results. I got access to the source code, and the sup
114.
▲
by
albinofrenchy
11y ago
Even after the 'delete everything' ten attempts? In any case, you can just reboot the phone, and if it does write the number of missed attempts to NAND, you were going to revert that anyway.
115.
▲
by
albinofrenchy
11y ago
Anyone else a little surprised that apples security feature here is so easy to sidestep? I'd have thought, in the least, that any such keys were stored in the main processor without external read/write capabilities.
116.
▲
by
albinofrenchy
11y ago
Isn't it just a 4 digit pin? Even if they input a pin per minute, that is slightly under a week, worst case scenario.
117.
▲
by
albinofrenchy
11y ago
Java isn't viable for anything that requires low latencies and predictable throughput. Really, no GC language is.
118.
▲
by
albinofrenchy
11y ago
I'd be more than annoyed if I saw someone name a function "xxInteger()" because it returns an integer. I don't actually think the first example was that bad, modulo some context. Sometimes even knowing the type for this
119.
▲
by
albinofrenchy
11y ago
Not all debug tools are single step debuggers. There are memory verifiers, formal proof techniques and self testing frameworks that Linux uses that are very, very useful
120.
▲
by
albinofrenchy
11y ago
Either way you are going to have to potentially download a lot of stuff; I'd rather not have that bloat integrated into the repo. Also consider if you come onto a project and they've upgraded a library version multiple times, when
More ›