Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lubutu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
lubutu
14y ago
glibc is not the only libc in existence. It is reasonable to ask that applications support systems other than those developed by GNU.
92.
▲
by
lubutu
14y ago
"cwd[] should be MAXPATHLEN bytes long" This is actually a common mistake — PATH_MAX and the like are not guaranteed to be defined. In fact, in POSIX it is literally impossible to ever know whether your buffer is long enough. Your best bet
93.
▲
by
lubutu
14y ago
This post literally makes no sense. I skipped the beginning diatribe, but the bullet points as to why functional programming is an "abomination" are completely false. FP is not bound to threaded concurrency; map-reduce is even named after t
94.
▲
by
lubutu
14y ago
I'm sorry, did you read mine? "If you want to handle NUL, simply use length-annotated slices instead of C-style NUL-terminated strings." Seriously though, using 0xFF as a UTF-8 string terminator would be a terrible mistake.
95.
▲
by
lubutu
14y ago
No. NUL is backwards-compatible with ASCII, and is used everywhere. Choosing some arbitrary invalid UTF-8 byte for use as a terminator would be a terrible decision. If you want to handle NUL, simply use length-annotated slices instead of C-
96.
▲
by
lubutu
14y ago
This is a great resource; it was extremely useful when I was writing a UTF-8 library myself. I found the UTF-8 stress test file is particularly useful to run tests against: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
97.
▲
by
lubutu
14y ago
The problem is that such a language may have a mathematical basis but that alone wouldn't be able to convey anything besides mathematics. It can demonstrate intelligence, as used in Carl Sagan's novel Contact by broadcasting a sequence of
98.
▲
by
lubutu
14y ago
I'm pretty certain that's not what the parent was implying.
99.
▲
by
lubutu
14y ago
This reminds me of Patrick McKenzie's article "Falsehoods Programmers Believe About Names". http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-b...
100.
▲
by
lubutu
14y ago
As much as I agree with the rest of the article, I have no idea what is meant by this "implementation leakage". Relative and absolute paths are a part of the fundamental Unix interface.
101.
▲
by
lubutu
14y ago
One problem here is that because of the complexity required to make a modern garbage collector manage memory effectively, when the GC fails to do its job properly it is far more complicated to fix ('optimise') than in a language with explic
102.
▲
by
lubutu
14y ago
This is one of the examples I use to explain why higher-level functional languages can be more drastically optimised than lower-level imperative languages. These fusions are also sometimes called hylomorphisms.
103.
▲
by
lubutu
15y ago
Wow, this is the first I've heard of this, thanks! I take it from that blog post they don't have equivalents to the commands [XYGV!] I talked about, in e? Still, awesome stuff.
104.
▲
On Structural Regexes – the theory behind multi-editing
(lubutu.com)
30 points
by
lubutu
15y ago
|
2 comments
105.
▲
On Profiling, And Google’s Big Double-Cross
(wired.com)
3 points
by
lubutu
15y ago
|
1 comments
106.
▲
by
lubutu
15y ago
But only that of certain social circles. For example, it fails miserably (imho) as a "hacker's language". I suspect the social and technical aspects of a language are inextricably linked.
107.
▲
by
lubutu
15y ago
This is the one reason I stick with Firefox. In Chrome if you search for the name of a YouTube video, with a string you know was in the title of the page, you're very unlikely to get that page as a result. If you're lucky you'll get another
108.
▲
by
lubutu
15y ago
You may as well just open up notepad and type "Hello, world!", and leave it at that. HTML is not a programming language; if you want to program on the Web you do have to jump into JavaScript.
109.
▲
by
lubutu
15y ago
Something I would love to have is a debugger for an interpreted language which visualises the program's state as a graph, say, and you can wind time forward and back. Then, as you make changes to the code the visualisation updates according
110.
▲
by
lubutu
15y ago
It's "Xv6", not "X6v", btw. It's a kind of portmanteau of x86 and V6. Edit: (For context, the submission title was originally "X6v".)
111.
▲
by
lubutu
15y ago
I've just done some testing, and my sudo (1.7.4p6) does honour NOPASSWD in /etc/sudoers, when I sudo -su to any user. Are you sure your configuration is correct?
112.
▲
by
lubutu
15y ago
That's possible using sudo -su user (which looks similar, but doesn't hand over to su).
113.
▲
by
lubutu
15y ago
Whether sudo sets $HOME depends on your /etc/sudoers configuration. Alternatively, sudo -Hs .
114.
▲
by
lubutu
15y ago
su is unnecessary; sudo -s is equivalent to sudo su , but allows the admin to restrict who may sudo to whom, for which programs, and so on.
115.
▲
by
lubutu
15y ago
Well, duck typing can still be statically checked, so I'd argue that dynamic typing is more misguided. That said, I do agree that duck typing is fundamentally flawed. I think swans actually don't quack, they honk , but so does a car. Here
116.
▲
by
lubutu
15y ago
I'm sure Dustin Curtis's 'members' entry used to read "Dustin Curtis, Superhero" rather than "Villain". Why the change?
117.
▲
by
lubutu
15y ago
The programming languages that would make me the most sad/angry/annoyed I don't use , so it's difficult to make a choice. I suppose I'll have to go with Javascript because it's the de facto 'Web language' which people use to force me to ev
118.
▲
by
lubutu
15y ago
What it is to be 'a lambda' isn't particularly well-defined. If we define it to mean an anonymous closure then Java certainly has them — so long as its free variables are final (it closes over references ). On the other hand, if we defin
119.
▲
by
lubutu
15y ago
Yes it does. As you drag it back from the edge it returns to its 'desired size' (the user's last explicit resize).
120.
▲
by
lubutu
15y ago
The Haiku window manager does exactly this, but it also resizes the viewport such that the scrollbars are always visible. I've always thought it would be a great feature in other stacking window managers.
More ›