HNHacker News
TopNewBestAskShowJobs

rat

21 karma · joined July 3, 2011

submissionscomments
rat··on John Resig uses this
I bought a dellbuntu once there was a bug with the x driver so x didn't work.
rat··on Monroe or Einstein? Instant eyesight check.
With my glasses it looks like Einstein.
rat··on Poll: Android developers, what IDE do you use?
no option for vim?(as opposed to vi?)
rat··on Automatically fixing bugs in C programs with Genetic Algorithms
How readable/maintainable is the resulting code?
rat··on Infinite Mario in HTML5
I was just about to say that.
rat··on Which Fish: With fish stocks under pressure, which are okay to eat?
It depends probably but I'm sure some areas the name of different foods are imprecise. Does caviar mean all fish eggs? all black fish eggs? Beluga, Ossetra or Sevruga sturgeon eggs? What about True cod. ect.
rat··on Forgotten C: The comma operator
Have read_str return const char *

while (strlen(read_string(s)) > 5)

rat··on Unix V5, OpenBSD, Plan 9, FreeBSD, and GNU implementations of echo.c
"The GNU Hello program produces a familiar, friendly greeting. Yes, this is another implementation of the classic program that prints “Hello, world!” when you run it.

However, unlike the minimal version often seen, GNU Hello processes its argument list to modify its behavior, supports greetings in many languages, and so on. The primary purpose of GNU Hello is to demonstrate how to write other programs that do these things; it serves as a model for GNU coding standards and GNU maintainer practices."

rat··on The Singularity is Far: A Neuroscientist's View
I'm sure there are a number of bots that are able to fool people a lot of the time and many have been around for a long time, but that isn't what people think of when you say AI.
rat··on The Problem with the iPhone's Home Button
Why don't they just categorize apps like desktop linux on Catorise on the n900?
rat··on Matz (creator of Ruby) joins Heroku
Doh I forgot to mention puppet.
rat··on Matz (creator of Ruby) joins Heroku
only on the browser, although some people do use desktop gui library bindings to javascript.
rat··on Matz (creator of Ruby) joins Heroku
He probably has more influence on the language then the guys in charge of Rubinius and JRuby(across implementations).
rat··on Matz (creator of Ruby) joins Heroku
Based on anecdotal evidence it seems like python is generally much more popular then ruby, being frequently used for just about any general purpose programming (other then some speed sensitive and low level stuff) such as os scripting, application scripting, web programming, number crunching, desktop applications, ect.

While ruby(usually rails) is unfortunately only popular for web programming (probably because python is a very similar language that out-competes it, partially due to specialized libraries and more stable interfaces) where it seems to be more popular then python.

rat··on The most useful GCC options and extensions
How is that nice? And I can't find this quote in the article.
rat··on So you want to write a fast Python?
The good is the enemy of the better especially if you keep thinking its good enough.

As the Java folk found out more speed is an important goal that can mean the difference between having your language used in certain fields

and c extensions can have more then a few deficiencies compared to code designed in the same language (or compiling to the same bytecode). Does it work on both unix like and windows systems?,does it work with alternate implementations?, ect.?

rat··on So you want to write a fast Python?
or get into the debian repos.
rat··on Go for the JVM, written in Scala
I'm not sure I understand what does compiling a javam have to do with replacing a vm with a compiler? The jvm has really good garbage control and a good jit compiler. LLVM has some of the stuff needed for writing a jit compiler for a vm. I'm not sure whether a compiler for a garbage collected language will be faster then a jit compiler.
rat··on AMD's master plan to topple Intel - Back to the top on a radical GPU
otoh a lot of enterprise java code is probably tied to windows in some fashion. And linux runs best on x86.
rat··on Nobody Knows My Password; Not Even Me
Some password input box's on the n900 do not seem to like paste.
rat··on This is why memory fragmentation is bad
My guess is that it isn't just because of benchmarks running a gc takes time, running it all at once can be faster then running it multiple times. Getting the right balance can be hard.
rat··on TinyVM: A lightweight, fast virtual machine in < 500 lines of ANSI C
darn forgot to mention ctags. If you are up for it supposedly scope is better but I couldn't get it set up. I don't know of any vim plugin for eclipse like macro expansion but if you see hairy macros you can always do gcc -E |vim - (gcc -E does full includes so macro expansion + importing of all headers)and search for your code or jump to the bottom.
rat··on Learn C The Hard Way
at least if you stick to macros
rat··on Learn C The Hard Way
can you get around the second without typeof(a gnu extension)?
rat··on Learn C The Hard Way
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." --Brian Kernighan Not to mention people aren't as smart as you debugging/understanding it. Also that code relies on the order of operations which I wouldn't recommend outside of math because it can be confusing. And it doesn't check that s isn't null.

Java is considered verbose for a number of reasons. It has a number of variable modifiers, it uses long names(which are generally good but can be stupid, especially in some cases of identifying multiple abstraction levels), and because it lacks type inference for generics and collection literals. c frequently makes the opposite mistakes with tiny cryptic or non whole word names. C lacks generic programming, it does do a decent job with initializers but unfortunately those can only be used at initialization.

rat··on TinyVM: A lightweight, fast virtual machine in < 500 lines of ANSI C
Try opening it up in an editor/ide with ctrl+click to step into function or similar like gvim or eclipse(and hopefully a way to jump back. eclipse also has a nice expand macro feature which lets you look at macros fully expanded and at different expansion stages.
← PreviousPage 2 of 2