Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sreque
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
331.
▲
by
sreque
17y ago
As the linked page states, this is the first distribution where the continuation plugin is part of the main release.
332.
▲
by
sreque
17y ago
I could be wrong, but it was my understanding that, on POSIX systems at least, the 1.8 MRI interpreter was smart enough to use non-blocking IO underneath the hood when performing IO calls and have a thread release its hold on the GIL when i
333.
▲
by
sreque
17y ago
If you've ever tried starting a debugger in a program that uses the Boost Lambda library you might disagree. My program was only a few hundred lines long, a toy, but I for the first time had to turn pagination on in gdb to view my program's
334.
▲
by
sreque
17y ago
Funnily enough, your code won't compile. The generic signature of your hash map is incompatible with the signature of your variable declaration. You'll instead get a verbose error message like the following: Test.java:6: incompatible types
335.
▲
by
sreque
17y ago
Ruby was the first language I learned closures in. While all scripting languages have them, Ruby's standard library uses them pervasively and standard ruby style encourages their use. It's a great procedural language to learn closures in.
336.
▲
by
sreque
17y ago
Green threads don't waste time on requests blocked on IO either. Both styles involve a software-level scheduler. The only difference between what most people call green threads and what most people call fibers is that one is preemptive and
337.
▲
by
sreque
17y ago
One of my professors is one of the maintainers of Scheme and one of the authors of DrScheme, and he's made us aware of their education efforts. One of the interesting things about those education efforts is that they compare the results of
338.
▲
by
sreque
17y ago
I tried learning Scheme, and it is like a foreign language. Everything is so different: the idiomatic style, constructs of choice, manner of solving problems. It's not just the parenthesis that throw me off. Plus, I don't like how the core
339.
▲
by
sreque
17y ago
You can do prototype-style inheritance in ruby, but no one does it. In fact, most new languages that come out express no interest in this style. It makes me wonder why the Javascript people are so convinced that why they have is that good.
340.
▲
by
sreque
17y ago
Do you have anything to back that up? An implementor of a PHP static compiler commented that the PHP runtime is horribly inefficient and is only able to appear fast in practice because the majority of the standard library is written in C. I
341.
▲
by
sreque
17y ago
I agree entirely about not needing threads in a scripting language like perl for CPU performance reasons, and being able to configure the threads to be scheduled automatically is a big win in my book. Thanks for letting me know about the li
342.
▲
by
sreque
17y ago
I'll admit to being a major Perl hater. However, this Coro library looks great! Perl threads are horrible pieces of trash, and the Coro library author not only admits this but does something about it by implementing threads the way nature i
343.
▲
by
sreque
17y ago
I'm starting to take this particular criticism as a major compliment to Scala. Scala makes it really easy to get stuff done and you're not forced to write functional solutions to imperative problems. Also, I learned more from functional pro
344.
▲
by
sreque
17y ago
I learned to program on vim originally, and I've also worked for over a year on a C team that used vim exclusively. I'd like to think that I know most of its important features, and I know what I'm giving up when I using an emulator. I've a
345.
▲
by
sreque
17y ago
I apologize if people thought I was hostile. I thought I was just making an argument by pointing out several examples of things text editors like Emacs don't normally do that IDE's do well. You've proven me wrong, at least for the case of C
346.
▲
by
sreque
17y ago
Can your emacs editor construct hyperlinked call graphs showing all callers and callees of a given function? Will this call graph generation remain up to date as I edit files? Can Emacs give me a hyper-linked list of all usages of a given s
347.
▲
by
sreque
17y ago
Isn't c++'s type system also turing complete via templates? http://stackoverflow.com/questions/189172/c-templates-turing...
348.
▲
by
sreque
17y ago
I like okular, the default KDE reader, a lot actually.
349.
▲
by
sreque
17y ago
http://whygitisbetterthanx.com/ doesn't represent mercurial 100 percent accurately. Cheap local branching: mercurial has had this since day one, and for a long time has had most of the capabilities mentioned in this section for a while. U
350.
▲
by
sreque
17y ago
I've used the Option class in Scala, which, if I understand correctly, is a direct translation of the Maybe monad, and honestly, I have an extremely difficult time trying to understand your post. I don't blame you, either. I've had a very h
351.
▲
by
sreque
17y ago
http://shootout.alioth.debian.org/u32/benchmark.php?test=all... . With the exception of one benchmark ruby's memory is about the same as perl's. As for speed usage, ruby is no more than twice as slow as perl for most benchmarks. It does po
352.
▲
by
sreque
17y ago
My criticism wasn't of your comment that Lift was a poor choice because it doesn't scale well. It was of your comments that the technology shouldn't be used because there aren't that many developers to hire that know/are willing to learn sc
353.
▲
by
sreque
17y ago
If you only pick tools that everyone else knows so your hiring pool is large, then new tools never stand a chance of being used. You would stagnate all progress in the industry! It's funny because when Paul Graham writes articles about how
354.
▲
by
sreque
17y ago
I have an example of a bug I found that looked like an optimization bug but was really a user bug. Someone had the bright idea of sprintf-ing to a string and using the string itself as one of the format arguments to the sprintf call. When c
355.
▲
by
sreque
17y ago
Lexical scoping has almost nothing to do with Perl's ability to close file handles as you describe. As others point out, it's RAII with reference-counted garbage collection. This feature is not-thread safe, which is one reason why perl thre
356.
▲
by
sreque
17y ago
After doing application-level programming in C for a while at a job, I learned to re-appreciate some of the abstractions that C++ gives you that you have to code by hand in C. Once you get used to the ridiculous compile errors and slow comp
357.
▲
by
sreque
17y ago
Do you really have to switch from one to another? I learned both languages, love them both, and use them both. There's too much hate in the world of programming languages.
358.
▲
by
sreque
17y ago
I suppose I can't prove to you that I know Perl very well any more than you can prove to me that you actually tried to port a library over to a language without even bothering to learn the language. The latter sounds kind of stupid to me.
359.
▲
by
sreque
17y ago
I've written a complex ruby library and then ported it to perl. Since both languages are basically the same in their capabilities the port was very straightforward. I know both languages fairly well, but if I go back to the ruby version I c
360.
▲
by
sreque
17y ago
I haven't been this excited about a new programming language version in a long time. It almost feels like a bigger deal than the change from Java 1.4 to 1.5!
More ›