Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wladimir
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
271.
▲
by
wladimir
15y ago
OOP works very well for UI code. I got introduced introduced to it in that way, back with Turbo Pascal. When you bought a compiler you got this wall-filling poster with the class hierarchy. Great fun. Nowadays, this is still reflected in to
272.
▲
by
wladimir
15y ago
It's scary to hear stories of religious-extremism from Iran, but it's even scarier to hear them from the US as they have immensely more power to impose their rule on others. I have no problem with religion, but please don't mix it with gove
273.
▲
by
wladimir
15y ago
Yes. You are right. In general, you have to be really careful when passing user-provided input to syscalls. Embedded nulls are only one of the many pitfalls there (another one from the top of my head is unicode handling). Especially if you'
274.
▲
by
wladimir
15y ago
IMO, zero-terminated strings are, and always have been, a bad idea. Discriminating against a certain character instead of just regarding it as opaque blob of data will bite you in unexpected ways, and strlen() taking O(N) is another drawbac
275.
▲
by
wladimir
15y ago
All of a sudden you don't need to build in Python support, or Ruby support or LISP support or whatever else you fancy into the browser. The browser no longer cares what you compiled the script from, it just gets the standard bytecode and e
276.
▲
by
wladimir
15y ago
That's a great list of features, and exactly the kind of intelligent tool that I'm looking for. Too bad it's horribly expensive :/
277.
▲
by
wladimir
15y ago
Interesting! I've seen DXR before but it used to be pretty limited, no advanced queries, and the project seemed to be dead. Nice to see there is at least work in that direction. Large projects such as Mozilla could especially benefit from i
278.
▲
by
wladimir
15y ago
I suggest taking a look clang/llvm. They have a friendly API for access to parse trees and intermediate metadata exactly for purposes like this. And it's open source too!
279.
▲
by
wladimir
15y ago
It's a hard problem indeed. Hopefully that will motivate some people :)
280.
▲
by
wladimir
15y ago
I wasn't trying to claim that "point and click" is superior. It was just my question whether such tools are available. I'm also more of a command line monkey, but it gets old at times to do the same thing I was doing 10 years ago over and o
281.
▲
by
wladimir
15y ago
It's 2012 and we're still navigating source code, which is effectively a nested graph structure, using grep and simple keyword queries. No (reverse) call trees, no high-level views, no help on how data propagates through the program. We cou
282.
▲
by
wladimir
15y ago
Though I'm not sure about the "lawless" part, I like that idea more. I've always found the blueseed idea backwards. Come on, live on a boat just to be able to work in some country? I wouldn't do that unless I had no other choice. And it's h
283.
▲
by
wladimir
15y ago
There's the "It's all text" Firefox extension which might help here. It can open your favorite text editor for text areas. This makes it easier to save a backup copy (I guess you could change it to do this automatically), no copy/paste need
284.
▲
by
wladimir
15y ago
It's a chicken-egg problem. The game will only stop once people stop playing it, but people won't stop playing it until the game stops. And you can be sure that companies once they have lots of patents will lobby mercilessly to keep the cur
285.
▲
by
wladimir
15y ago
To be precise, print is now a function instead of a statement. It has not been taken away. Just add parenthesis. The string formatting syntax did indeed change, but the new syntax is just as "quick" as the old one, just different (see http
286.
▲
by
wladimir
15y ago
Rabbit holes are only a problem if you desperately have to get something finished and get stuck doing other things that seem more interesting. Otherwise, you can learn interesting things that widen your world view. Or maybe even find someth
287.
▲
by
wladimir
15y ago
Isn't that mostly survival bias at work? No matter what the odds were, the winners write history. If we had died out in one of the steps along the way, we wouldn't be here writing about it. Once humanity spread around the world, the odds of
288.
▲
by
wladimir
15y ago
Yes, exactly. I think it's overall too easy to call someone else's use of spare time "trivial" because we don't understand why it could be useful for them, or to other people. We're all limited by our skills and interests. If only we could
289.
▲
by
wladimir
15y ago
By the way, the fun part is learning the technology. The hard part is working with people -- which is why it's about a million times more important. That's very interesting, and indeed seems to mark a certain personality type. Most people
290.
▲
by
wladimir
15y ago
Right, that's also possible, but I like the new key every boot as it gives forward security. Even if the key for the whole image is cracked (which is easier to bruteforce than a completely random key as it is usually human-memorizable), it
291.
▲
by
wladimir
15y ago
If you want to someone to do lint, why not just run lint and save on an expensive hire? Code reviews are there to find problems with the code that are not found by trivial static verifiers and/or IDEs. This requires a level of understanding
292.
▲
by
wladimir
15y ago
Encrypted /tmp and swap partitions (with random keys, generated at each bootup and stored only in memory) seems like a good precaution in any case.
293.
▲
by
wladimir
15y ago
This sounds like a serious issue if you're using programs such as apg to generate and print random passwords/passphrases to the terminal. Especially if you use them as encryption keys. The keys might well linger around in plaintext on your
294.
▲
by
wladimir
15y ago
The instruction size is the first thing that is apparent. By looking at the pattern you can distinguish between fixed-sized, or variable-sized instructions, telling a lot about the architecture. ARM either has 16 bit (thumb mode) or 32 bit
295.
▲
by
wladimir
15y ago
Yes, the propaganda angle is clear, and exactly what makes me doubt the story (especially as this is fox news we're talking about).
296.
▲
by
wladimir
15y ago
It's strange that it was revealed at all whether he works with the FBI. Is that normal? Why not keep it secret for somewhat longer to catch even more hackers? Exposing him as informant could also bring his life in danger. This makes me doub
297.
▲
by
wladimir
15y ago
Not all day, I have a standing desk for my desktop PC, and my laptop on a normal table, and tend to alternate between them regularly. I have no idea whether it is healthier but for me it beats sitting all day.
298.
▲
by
wladimir
15y ago
Does standing in front of a computer also count?
299.
▲
by
wladimir
15y ago
I don't really understand your negativity. I agree it's impossible to help everyone. But what could be the possible downside to trying? Why is idealism a dirty word these days? I mean it is the idealism that motivates him to do this in the
300.
▲
by
wladimir
15y ago
Though it looks like lawyers are the only ones profiting from it, also blame the sue-happy culture in the US, and the lawmakers for making that possible. And due to the chilling effects, only criminals and crazy people even dare to do anyth
More ›