Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sreque
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
sreque
10y ago
"Whats the easiest way to get something out so that we can test and measure assumptions." I was focusing less in my comment on time-to-market and more on risk aversion to code ownership. But, to address your concern, doing things
182.
▲
by
sreque
10y ago
I've seen some senior engineers take this too far. It's as if they are burnt out from all the code they shipped into production that broke things. They tend to favor solving problems operationally rather than through correct code.
183.
▲
by
sreque
10y ago
The problem is the exact opposite. The question you should be asking, is: how can I use my go code in Rust/D/C++? The answer is, not very easy, given that go's runtime is largely incompatible with C. At least with C++, you ca
184.
▲
by
sreque
11y ago
The biggest issue I've seen with JDK upgrades is not the language changes but bytecode changes. Many tools and frameworks such as Guice, Spring, PowerMock, AspectJ, and code coverage tools all operate on byte code, not source code. The
185.
▲
by
sreque
11y ago
My belief is that the effort os a linear function of your code base size. This means the larger the code base, the more effort required to port. Also, porting is made more difficult by the fact that Python is a dynamic language, so a lot of
186.
▲
by
sreque
11y ago
How is it straightforward? I tried porting a very small codebase from python 2 to 3 and ran into a bunch of issues which required manual workarounds. If it were easy to port, most library owners would have done so already.
187.
▲
by
sreque
11y ago
There's a lot of backlash here against the author with comments like: "You used a sun.* package? You deserve to die in a fire as well!" These comments look like they are coming from people who have never used Unsafe. First, U
188.
▲
by
sreque
11y ago
I'm very disappointed with Oracle's decision to remove Unsafe. What are they trying to accomplish? They aren't serving anyone by removing it. Who benefits from its removal? What actual user of the JVM or customer of Oracle ha
189.
▲
by
sreque
11y ago
This doesn't seem true. See http://comments.gmane.org/gmane.comp.java.clojure.user/85930 "Binary compatibility across releases is not guaranteed, but it is something we strive to maintain if possible. "
190.
▲
by
sreque
11y ago
It feels rare to find someone who can be honest about the shortcomings of their day-job programming language. Kudos to you!
191.
▲
by
sreque
11y ago
I've used signalfd before and consider it an improvement over normal signal-handling. Signal coalescing happens regardless of signalfd. The only major thing you have to remember when using signalfd is to mask the signals you want to on
192.
▲
by
sreque
12y ago
Linux userland binary compatibility in general is surprisingly fragmented, thanks to the introduction of so symbol versions about a decade ago. http://harmful.cat-v.org/software/dynamic-linking/versioned-... http
193.
▲
by
sreque
12y ago
It is bad for performance that Java doesn't have structs, but, you can work around this somewhat using byte buffers: http://www.kdgregory.com/?page=java.byteBuffer
194.
▲
by
sreque
13y ago
You know what else gets tossed out of these debates by Apple patent defenders? The fact that Samsung is continuing to have success in invaliding the patents they are being sued for: http://appleinsider.com/articles/13&#
195.
▲
by
sreque
13y ago
There have been a number of not-quite-successful attempts in the past to compile Scala to Javascript. The latest and most promising seems to be https://github.com/lampepfl/scala-js
196.
▲
by
sreque
13y ago
I find your sentiment about ORM overhead spot on. I did a simple unscientific benchmark once that showed a 2x overhead using jdbc versus a native driver and a minimum 4x overhead using hibernate vs jdbc. That means that using hibernate prov
197.
▲
by
sreque
13y ago
This is true for Java and Clojure as well. In Clojure you have to choose between using java data structures verbatim or else converting them to clojure ones. See the scala docs for JavaConversions to see how to make scala collections look l
198.
▲
by
sreque
13y ago
"Until you get your head around the idea that you're describing "what" you're building rather than how to build it, you'll feel an impedance mismatch." Trust me, us maven haters understand declarative programming just fine. There is no impe
199.
▲
by
sreque
14y ago
Except, we don't need an elegant language (and Javascript is hardly elegant, by the way). We need a virtual machine, and that's essentially what Mozilla is trying to define as a DSL in Javascript with asm.js. Instead, why not create somethi
200.
▲
by
sreque
14y ago
"The Internet was done so well that most people think of it as a natural resource like the Pacific Ocean, rather than something that was man-made. When was the last time a technology with a scale like that was so error-free? The Web, in com
201.
▲
by
sreque
14y ago
Mercurial is definitely better.
202.
▲
by
sreque
14y ago
Your benchmarks are likely very biased. The vast majority of the work done by your bioinformatics programs should be done in C code, with thin wrappers so that the code can be accessed through Perl and Python. If anything, your benchmarks
203.
▲
by
sreque
14y ago
That is partially correct. Intellij doesn't use zinc, but it uses the same compilation system that is at the heart of zinc. From http://blog.jetbrains.com/scala/ , there is a section showing how their new system relates to zinc. It would h
204.
▲
by
sreque
14y ago
That is certainly false hyperbole. There a lot of very useful new features in 2.10, and many people are currently successfully developing in Scala, even with its relatively slow compilation speed. The Scala team knows compilation speed is i
205.
▲
by
sreque
14y ago
It's worse than that, unfortunately. Everything is implicitly convertible to a string, and every string is implicitly convertible to any other type. So, if you pass a dictionary into your function that expects a list, it will happily conver
206.
▲
by
sreque
14y ago
Well, you basically showed that you don't understand OOP. That may not be important to you, but the interviewer probably successfully found out what he was looking for. The most important aspect of OOP is message passing, and in Java, messa
207.
▲
by
sreque
14y ago
I like the idea of having a standard object system in the language, don't get me wrong. But having a standard object system and baking compositional inheritance as a core primitive of the language are two different things. The latter isn't
208.
▲
by
sreque
14y ago
I don't think it should be baked into the language. With a good macro or compiler plugin system, you can implement composition as a library. This is already the case for languages like Haskell, Racket, and Scala. The more general ideas that
209.
▲
by
sreque
14y ago
Keep in mind that the while loop is 3x faster because the loop itself is doing a trivial amount of work. As your loops get larger, call functions that do more work, or operate on objects instead of primitives, the overhead of using idiomati
210.
▲
by
sreque
14y ago
I don't understand or agree with your logic at all. Oracle shouldn't waste time on Java because it is already so far behind as to be hopeless? That notion seems silly at best, especially as 99% of code written on the JVM is still done in J
More ›