Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
clarry
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
181.
▲
by
clarry
7y ago
Intolerable is too situation specific. Integer overflows that yield "weird values" in one place can easily lead to disasterous bugs in another place. So the safest thing in general would be to abort on integer overflow. But I&#x
182.
▲
by
clarry
7y ago
In theory? No reason. In practice it's a special case of a more widely applicable optimization where you actually do want to remove redundant checks. So someone has to go out of their way to figure out a rule that makes the compiler
183.
▲
by
clarry
7y ago
> With that in mind, isn't it the user's job to know the size of the buffers he's using? Yes. The user knows the size of his buffer, and then passes that knowledge on to the string constructing functions so that they do n
184.
▲
by
clarry
7y ago
Huh? I just want performant code. That's why I write C, and that's why I use an optimizing compiler, and that's why I ask my compiler to optimize. I also want to write code that is reasonably generic. Thus, it will have ch
185.
▲
by
clarry
7y ago
I want my compiler to remove redundant checks (without any noise), and that is why I pass it an optimization flag. If you don't want such optimizations, then maybe you should not ask the compiler to make them.
186.
▲
by
clarry
7y ago
Is there a vim-style cscope interface for emacs? I hate that xcscope brings up its own persistent buffers (replacing other buffers that I had deliberately placed on the screen). Vim, conveniently, just pops up the cscope interface when I
187.
▲
by
clarry
7y ago
> Why not mandate a warning every time the compiler detects and makes use of UB? It would solve SO many issues. Because that's hardly ever what happens, except when it actually does, and compilers do an increasingly good job of issu
188.
▲
by
clarry
7y ago
Why can't I have flexible array members in union? Consider this: struct foo { enum { t_char, t_int, t_ptr, /* .. */ } type; int count; union { char c[]; int i[];
189.
▲
by
clarry
7y ago
1. Are there any plans for standardizing empty initializer lists? struct foo { int a; void *p; }; struct foo f = {0}; // legal C, f->p initialized like a static variable struct foo f = {}; // not legal
190.
▲
by
clarry
7y ago
Open up WG14 mailing list for non-members? It's hard to appreciate what's going on at WG14 (or take part) when you can see the results only from afar, with none of the surrounding discussion. I recently read Jens Gustedt's bl
191.
▲
by
clarry
7y ago
> Is there a better system? I don't believe that just looking at resumes and past experience selects for 1+2+3 nearly as well. A take-home test would cover 1+2+3 without 4. With the caveat that 3 becomes a test about written commun
192.
▲
by
clarry
7y ago
I think I found a nice example: https://youtu.be/v7Mt0GYHU9A?t=1237
193.
▲
by
clarry
7y ago
> You can find a lot of talks on the normal video-sharing sites from people like Aaron Hsu and Roger Hui demonstrating this. If you have a good one in mind, please do recommend! Last night I watched this: https://www.youtube.c
194.
▲
by
clarry
7y ago
I tried to look for a way to delete my account yesterday but I did not find such a thing :<
195.
▲
by
clarry
7y ago
Speaking of Haskell and laziness.. I found myself wondering last night, what was the issue with laziness again? I think it was that it's making it difficult to parallelize things. Why would that be? Is it just an implementation arte
196.
▲
by
clarry
7y ago
Same goes for their attitude towards programming languages. How dare you propose a language that I can't read without studying / become productive with in a weekend. How dare you propose using characters that can't be writt
197.
▲
by
clarry
7y ago
> First time I’ve read that providing clean water on demand to everyone at a sufficient pressure is “minimal effort”. Let's look at it from this perspective: what percentage of your country's workforce is actively involved in p
198.
▲
by
clarry
7y ago
Did you interview the author? I'd like to read that.
199.
▲
by
clarry
7y ago
It seems to be deliberately undocumented. This might help a bit: https://code.kx.com/q/basics/exposed-infrastructure/ http://kparc.com/k.txt (Look up Q docs for monadic K operators by their e
200.
▲
by
clarry
7y ago
Latex style is way too verbose, I would not want to type like that. And I think the input method should be a problem for your editor/OS to handle, not the language. In any case, symbols were abandoned back in the day when everyone was
201.
▲
by
clarry
7y ago
I think the idea is that you learn it, and then you reap the benefits. Not much different from e.g. maths. You could figure out how to rotate a point about the origin with some haphazard application of multiplication, addition, sine, and
202.
▲
by
clarry
7y ago
Not much at all. It's a completely apples to oranges comparison, with the rust version having some error handling, support for longer identifiers, tests, relatively idiomatic style with line breaks and indentation where you expect it,
203.
▲
by
clarry
7y ago
> The larger K/q programs get, the more they tend to look like "normal" code, but you still see a lot of these clever one liners hidden away in there. Yep, that's what I suspected. TorQ confirms it.. giving everythin
204.
▲
by
clarry
7y ago
It'd be interesting to know how large the largest K programs actually are. And maybe see some code too. I suspect the things that work ok in a <50 line application start to work less well when you're approaching 500 lines.
205.
▲
by
clarry
7y ago
I think I'd like this even if I were married, as long as the trial period isn't too long and interview experience indicates that I should have a good chance of landing the job. Contrast with the alternative: I'm a senior, con
206.
▲
by
clarry
7y ago
Yeah? Being managed poorly doesn't mean they don't have the resources to do it differently. It just means they're not willing to expend those resources. My point is, if we look at the other end of the spectrum, we have smal
207.
▲
by
clarry
7y ago
> A recruiter I talked to a few years ago said she thinks its crazy we don't use an agency model for programmers like actors do. The idea there is that good programmers pay a small percentage of their salary to a manager, who's
208.
▲
by
clarry
7y ago
> Read, think, understand, modify, write code, communicate it to your team. Thats the work and thats the bar. So do your students do this? Why not?
209.
▲
by
clarry
7y ago
> The sad truth is that most devs fresh out of collage or a bootcamp aren't valuable enough to be worth hiring at large tech companies like Google. .. which is really unfortunate, because those big companies are the ones that have t
210.
▲
by
clarry
7y ago
> CS whiteboarding makes sense when tech stack isn't going to be constant and the tasks you might be doing requires more than making calls to backend from MVC. I'm not inclined to agree. If I look at my job, well, it's ra
More ›