Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sreque
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
361.
▲
by
sreque
17y ago
I don't know about Mozart, but everything I've read about OCaml suggests that the O in OCaml is second class. I've even heard it quoted that the creator of OCaml doesn't use any of the OO features in OCaml and that most people view them as
362.
▲
by
sreque
17y ago
" I'm a little disappointed that the article suggests that the IO monad makes Haskell impure. While it is certainly true that unsafePerformIO violates purity..." I think that above sentence could be translated to "I don't like that article
363.
▲
by
sreque
17y ago
I think you give Scala a disservice by saying there is no innovation in it. I have programmed in Perl, PHP, Python, Ruby, C/C++, Java, C#, and even a tiny bit of Scheme and Clojure, but Scala is the first language I have seen to so successf
364.
▲
by
sreque
17y ago
I guess I've been causing the death of kittens for a while then. I couldn't, however, deduce from your wikipedia link or from a quick google search what the correct way of adding floating point numbers should be, though. Even the MS compile
365.
▲
by
sreque
17y ago
In a perfect world, a compiler would optimize this code to be equivalent to summing in a simple loop, at least if series were a projection or had a non-strict map function. Whether scalac and the JVM can work together to do this right now o
366.
▲
by
sreque
17y ago
On my 1.4ghz core 2 duo laptop, which isn't a very powerful machine, the above scala code runs in about 1 second when compiled. If I let the code run once to to let the JIT warm up and only measure the execution of the main body, it runs in
367.
▲
by
sreque
17y ago
Ruby introduced me to the ideas of first class functions, closures, and higher order functions and the design patterns that can be easily implemented using them. These same patterns can be implemented in Java, albeit with a much more verbos
368.
▲
by
sreque
17y ago
Check out this page: http://buildr.apache.org/quick_start.html . I will paste the most relevant text below. "No knowledge of Ruby is assumed. Buildr is designed to be a very intuitive, very easy-to-use tool. You can create buildfiles which
369.
▲
by
sreque
17y ago
As I mentioned elsewhere in the thread, buildr manages dependencies just like maven, including the ability to download sources and javadocs, and also has an ant integration library that works really well. Finally, buildr supports generating
370.
▲
by
sreque
17y ago
buildr combines the advantages of maven with the advantages of being built on top of rake and scales to managing multiple projects. Groovy's Grails build system and Scala's sbt also both look good to me, although I have not yet taken the ti
371.
▲
by
sreque
17y ago
Vectors may be implemented very differently from mutable arrays, but it is my understanding that they allow for efficient appends and updates, not efficient prepends. I would still switch to using lists, if only because when doing performan
372.
▲
by
sreque
17y ago
He's using vectors with clojure and lists with lisp. Why? It looks like he's concatenating vectors, which is O(n), with clojure, but cons'ing lists, which is O(1), with lisp. As much as I like seeing clojure's performance get critiqued, thi
373.
▲
by
sreque
17y ago
See also buildr, which attempts to be a drop-in Maven replacement using a ruby DSL built on top of rake. http://buildr.apache.org/
374.
▲
by
sreque
17y ago
I thought most of us agreed by now that ref-counting is slower than GC? http://www.idiom.com/~zilla/Computer/javaCbenchmark.html cites a paper empirically showing just that. I quote: " In a well known paper [2] several widely used program
375.
▲
by
sreque
17y ago
Even in Kernel programming, exceptions are useful. If you read http://www.kernel.org/pub/linux/docs/lkml/#s15-5 , you'll see that goto's are used to reduce code duplication for error handling, which is essentially just a poor man's excepti
376.
▲
by
sreque
17y ago
Neither javascript or python or fast enough to matter. Look at the alioth tests ( http://shootout.alioth.debian.org/u32q/benchmark.php?test=al... ). V8 is still 25 times slower than C. Does it really matter if you're 25 times slower than C
377.
▲
by
sreque
17y ago
When you tried sandboxing python, did you look at http://wiki.python.org/moin/How%20can%20I%20run%20an%20untru... ? There's multiple sandboxing options listed there. Also, Python has SWIG, SIP, and Boost to help integrate native code. I ha
378.
▲
by
sreque
17y ago
I won't be switching to javascript from python anytime soon. Javascript took about half of the bad ideas from perl and mixed in a few bad ideas of its own into a not very good language. Invoking a method on a primitive string silently fail
379.
▲
by
sreque
17y ago
I'm using FF 3.5 on a Core 2 Duo laptop and running my mouse across the graph back and forth uses an entire core. Behold, the power of javascript!
380.
▲
by
sreque
17y ago
Sorry if I started sounding like I was making this a Java vs. Clojure approach. I wasn't. My original point is that there are no compelling reasons for me to use a language like Clojure over a language like Ruby. Clojure's biggest selling p
381.
▲
by
sreque
17y ago
This link is fairly illuminating of clojure's performance: http://gnuvince.wordpress.com/2009/05/11/clojure-performance... . A guy writes some Java code, writes some clojure code, and notices that the clojure code is ridiculously slower, a
382.
▲
by
sreque
17y ago
I haven't seen a compelling reason to switch to clojure either. Despite some people trying to argue to the contrary, fair benchmarks that I've seen put clojure on average at least 10 times slower than Java in CPU performance, and Java itsel
383.
▲
by
sreque
17y ago
The author didn't, as far as I understand, make the code reentrant. The code still operates on mutable state outside of the scope of the call such that two calls that pass in the same inputs may produce different results. The author simply
384.
▲
by
sreque
17y ago
Ruby 1.9 has real iterators now.
385.
▲
by
sreque
17y ago
It is fairly easy to avoid symbol soup in ruby. First, don't use global variables. I'm perfectly OK with global variables sticking out and looking ugly. Second, use the English module packaged with Ruby if you find yourself using Perl-like
386.
▲
by
sreque
17y ago
Although not free, I find the plugin at viplugin.com to integrate far better with Eclipse. Eclim to me feels like I'm running two separate applications, vim and eclipse, and they don't seem to play together very well. The implementation of
387.
▲
by
sreque
17y ago
I feel like people miss one of the main points of this FQA. The author repeatedly asserts that most people who think they need C++ do so because they think they need the performance it can offer. Most of these people, however, don't actuall
388.
▲
by
sreque
18y ago
What if you want to repeat a similar chunk of HTML in a loop? What if you want variables? Functions? <Insert general purpose programming language construct here>? The world has spent too much time trying to hammer programming langua