Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pskocik
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
pskocik
9y ago
The cop's behavior was inexcusable. Even if he had those orders, he could have informed her and arrest her calmly without unecessarily escalating the situation. The loss of temper is a clear sign of him being unfit for duty.
2.
▲
by
pskocik
9y ago
I'm also using (for now) something based on these time checks (also pure posix + local, but local is extremely portable (tests well on 7 shells), though mine's a little more involved (automatic build job timing, controlled concur
3.
▲
by
pskocik
9y ago
I once benchmarked reads with `mmap` vs `read` ( http://stackoverflow.com/a/39196499/1084774 ) . mmap starts winning big time once the file is >= 16KiB. Copying should have similar performance characteristics.
4.
▲
by
pskocik
10y ago
I'm for a complete and total shutdown of all Americans entering the European Union until we figure out what the hell is going on over there.
5.
▲
by
pskocik
10y ago
I haven't seen it in practice, but OOM is conceivably recoverable in certain cases (e.g., exponential vector growth with large capacities fails on a 32 bit system, but switching to linear growth as a recovery strategy succeeds in alloc
6.
▲
by
pskocik
10y ago
It's a common (gcc/clang/tcc) compiler extension (chapter 6.1 of the gcc manual) that allows you to use parentheses around a compound statement to turn the compound statement into an expression whose value is the last stateme
7.
▲
by
pskocik
10y ago
True. However, I think in the case of the dynamic array, this effect is minor. The macros are small, and most of the time, they end up wrapped in a function anyway. But, admittedly,it doesn't scale well to very big generics, which shou
8.
▲
by
pskocik
10y ago
Expression macros `({, })` aren't standard either. But I sort of go with, if all gcc/clang/tinycc support it and it's a highly useful feature, then it's part of C as far as I'm concerned. It would certainly be
9.
▲
by
pskocik
10y ago
__typeof_ is a compile-time feature. It's like C++'s decltype. (You can make C++'s auto out of it too.) There's is a potential for code size increases with this approach, that's true. But the potential also exists w
10.
▲
by
pskocik
10y ago
I like my C alternative better. I pass growth factors/increments as parameters to the vector macros so that I can affect how it grows on capacity exhaustion during each call and I have macros for creating and closing uninitialized gaps
11.
▲
by
pskocik
10y ago
In my codebase, I use expression macros (with a little bit of __typeof__-based type checks) to do it fully generically. Much of what you think you need C++ for can be done almost just as succinctly on top of plain C (I'm talking automa
12.
▲
by
pskocik
10y ago
A very smart programmer who's made a large contribution to society decides not to have kids while people of which neither can be said breed like rabbits. Looks like we'll be watering crops with Brawndo pretty soon.
13.
▲
by
pskocik
10y ago
So true. A page long rant is much more reasonable than the ten-or-so keystrokes that would paste the ULONLONGs in there.
14.
▲
by
pskocik
10y ago
Czech (his passport) changes endings all over the place. It's how our grammar works. Nouns and adjectives have different endings depending on their contextual gender associations. Czech last names are either adjectives (rarer), in whic
15.
▲
by
pskocik
10y ago
Smuggling tip: On a Slavic passport, if your last name ends in ova, it says you're female.
16.
▲
by
pskocik
10y ago
I appreciate your appreciating my jibe. Good luck with your suite and sorry for the little bit of negativity. Command line apps are my favorite type of apps.
17.
▲
by
pskocik
10y ago
I'm quite unfond of this command suite pattern that seems to be popular in cli apps lately. It's a very git thing to do. Why not just mac-whatever1 mac-whatever2? It has less coupling, basic autocompletion out of the box, and gene
18.
▲
by
pskocik
10y ago
Technology may well bring about a collapse of democracy as we know it. No longer are the mediocre and the below mediocre insulated from actual decision making for reasons of impracticability. In this day and age, letting everyone vote o any
19.
▲
by
pskocik
10y ago
I don't understand why someone thought it was a good idea to require that POSIX stdio should lock the thread. It slows down stdio several times compared to the nonlocking version, and it completely goes against "don't pay for
20.
▲
by
pskocik
10y ago
Nothing against gotos, but the cringe from that implementation was way too strong. Why does this even get any attention at all?
21.
▲
by
pskocik
10y ago
I believe that's what the patch number does in semver (M.m.p). For a constant M.m, you want maximum(p) as there's potentially something wrong with any p that's less than maximum(p). Monotonic versioning seems to want to move
22.
▲
by
pskocik
11y ago
Wouldn't you classify golang authors as old-time system developers?
23.
▲
by
pskocik
11y ago
You don't need to be clever to represent data as bit arrays. All you need is to have some CS basics and not be completely brain-dead.
24.
▲
by
pskocik
11y ago
Now repeat for C++.
25.
▲
by
pskocik
11y ago
I bet Lispers would beg to differ. :D Nested function do one thing on a chunk of data, then another, then another. *nix pipelines apply all the filters at once and control the scheduling and lifetime of the filters. Those are quite differen
26.
▲
by
pskocik
11y ago
What's so painful about just doing `exclaim(capitalize(doubleSay("hello")));`? Why introduce needless syntactic sugar that'll only confuse people about how UNIX pipes work?
27.
▲
by
pskocik
11y ago
"Hi, I'm from the same country as the guy - Czech Republic." So am I. Nobody cares.
28.
▲
by
pskocik
11y ago
I actually kind of like this design.
29.
▲
by
pskocik
11y ago
If you bother to compose half a page on a software problem, might as well provide a solution, no? runCb(){ cb; echo -e '\n\nGo on? (y/n)'; read -sn 1 ans; if [ "$ans" = y ]; then eval "`cb`"; else true
30.
▲
by
pskocik
11y ago
If every "I'm gay" status registers, they're probably getting a lot of false positives. :D
More ›