Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rpearl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
361.
▲
by
rpearl
15y ago
I was disappointed that zarklxyr.com was not a real link.
362.
▲
by
rpearl
15y ago
I wrote this for students in CMU's operating systems course, to try to give them a few more useful "C tricks" but I thought it might be interesting to others.
363.
▲
Cool C Tricks
(endofunctor.org)
24 points
by
rpearl
15y ago
|
3 comments
364.
▲
by
rpearl
15y ago
I thought something that was cooler (and less permanent) was the feelspace belt: it has a compass module and a bunch of of vibrating motors, so you can always 'feel' magnetic north http://feelspace.cogsci.uni-osnabrueck.de/
365.
▲
by
rpearl
15y ago
I don't understand. Why do you care what the version number is?
366.
▲
by
rpearl
15y ago
Chrome's memory usage is[1] (and always has been[2]) very high and has been steadily getting worse where Firefox has been getting better and better thanks to the memshrink project[3] [1] https://groups.google.com/a/googleproductforums.com/
367.
▲
by
rpearl
15y ago
vim -f +'syn on' +'run! syntax/2html.vim' +'wq' +'q' [file] produces file.html Or, use perl's Text::VimColor http://search.cpan.org/~rwstauner/Text-VimColor-0.14/lib/Tex...
368.
▲
by
rpearl
15y ago
Unfortunately, the author seems to have misconceptions about a variety of things. > projects with more than 10k LOC. Other comments have discussed this. Linux kernel: ~4million lines. Compilers, interpreters, and so on... all well above
369.
▲
by
rpearl
15y ago
vim: http://www.vim.org/scripts/script.php?script_id=40 emacs (linked in a different comment): http://www.cinsk.org/emacs/emacs-artist.html
370.
▲
by
rpearl
15y ago
CMU doesn't have any course explicitly on Haskell. There is a freshman course on functional programming, which is taught in Standard ML and therefore definitely has a focus on the advantages of an expressive type system.( http://www.cs.cmu.
371.
▲
by
rpearl
15y ago
err... what's the goal of the featured link, js.js? It's even worse--all of Spidermonkey compiled to llvm and then to javascript.
372.
▲
by
rpearl
15y ago
This appears to be the same goal as https://github.com/mozilla/narcissus/ but substantially less clever.
373.
▲
by
rpearl
15y ago
In my proposed way to bootstrap a compiler, you still write the compiler in the language you wish to compile. You also write an interpreter, rather than another compiler for the same source language, written in some other language for which
374.
▲
by
rpearl
15y ago
I'm always a bit hazy on why people bootstrap languages by writing compilers. I've always imagined it would be easier to write an AST-walking interpreter, write the compiler in the source language, and then interpret the compiler taking its
375.
▲
by
rpearl
15y ago
It's funny because I was going to bring up a complete counter point to one of the features of the article, in which TAs never read code, using CMU as the school. I'm a TA for our operating systems class ( http://www.cs.cmu.edu/~410/ ), and
376.
▲
by
rpearl
15y ago
101domain are complete scammers. A few friends of mine wanted to get a .so domain when they went to auction this past April. 101domain didn't even bother to go to auction... but did try to take their money.
377.
▲
by
rpearl
15y ago
Is Android going to be open source again? (Well, I say open source, but what I mean is--will the source code be available, as opposed to development being open. Google doesn't tend to take patches from outside contributors anyway...)
378.
▲
by
rpearl
15y ago
Chrome, or Chromium? One is open source, one really isn't. The set of things that Chrome does is certainly based on Chromium, but Google certainly has the freedom to add some very useful tracking behavior... if they want to. On one, we ha
379.
▲
by
rpearl
15y ago
The code would not be signed by Linus; you do not know his private key. If I as a developer then pull and verify signatures, I would note that commit was unsigned and expect the commit to be compromised.
380.
▲
by
rpearl
15y ago
...no, that's just not how it works.
381.
▲
by
rpearl
15y ago
Since this type inference is speculative and dynamic , if the speculative type optimizations fail you can fall back to less optimized code, or interpreted JS, that handles the badly-typed code. Nothing will break.
382.
▲
by
rpearl
15y ago
As I say, branching is not something that a "team" does. Branches in git are not something that are published, in nearly every case. Branches are not something like "the dev branch" and "the stable branch". If you are referring to that, i
383.
▲
by
rpearl
15y ago
Well, first, one of the points of branches is "don't break the build" since you always know that master is an appropriately tested version of the code. Branches give you feature isolation. Suppose that while developing a feature, you realiz
384.
▲
by
rpearl
15y ago
It's not really that unexpected, is it? Most good students get a ton of internship offers at these sorts of companies.
385.
▲
by
rpearl
15y ago
It is interesting that your compilers class targets the lambda calculus. While we have a thorough curriculum on functional programming at CMU (and for one class I did write several compilers which took more complex languages and translate
386.
▲
by
rpearl
15y ago
If you do the naive implementation: int temp = x; x = y; y = temp; Then a sufficiently smart compiler can decide to assign, say, %eax to x and %ebx to y, and then just rename its notion of registers, and after the swap just begi
387.
▲
by
rpearl
15y ago
Because the ability to code algorithms quickly is the same as the ability to break into systems.
388.
▲
by
rpearl
15y ago
That's just not the way a LOT of software works these days. For example, what version is facebook on? Do you know? Does it matter? What version is gmail on? Chrome users only know what version they're on if they go and look at "about" but f
389.
▲
by
rpearl
15y ago
I am aware of what "attack surface" means and stand by my claim that anonymous, having done nothing novel so far, will not find attacks against facebook.
390.
▲
by
rpearl
15y ago
they just haven't even done anything novel. Why should we expect them to now? Facebook is very unlikely to have the usual slough of easy sql injections. I am quite sure that someone good could find attacks against facebook. I am dubious t
More ›