Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sreque
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
91.
▲
by
sreque
7y ago
The JVM is less dynamic in its ability to reload code, but the payoff is that java code can be 10-100x faster than smalltalk code. I personally think the performance gain is worth it. Hotspot has some limited support for hot code reloading,
92.
▲
by
sreque
7y ago
Go has a fast compiler but to my knowledge has zero support for incremental compilation. It has to recompile the entire project, transitively with all its dependencies, before you can run your code modification. I haven't code in go, b
93.
▲
by
sreque
7y ago
I disagree with this to some extent. Unit tests are a pretty good poor-mans REPL in languages that don't have REPLs. For instance, I've seen people write fake unit tests to do things like query a database for analysis purposes; it
94.
▲
by
sreque
7y ago
I've actually been thinking at work recently that our work is very much in line with making and testing hypothesis. When we add code or edit existing code, we hypothesize that the program behavior will change in specific ways, and then
95.
▲
by
sreque
7y ago
Compilers have been assuming single-threaded memory access by default since, forever? If you want your code to work with multiple threads, then you have to explicitly write code to do so. Otherwise, the compiler is liable to store things in
96.
▲
by
sreque
7y ago
I'm new to this area of work, but has anyone stepped back and thought: "this is not the right way to build eBPF programs"? Would it be better to create a new high-level language and toolset? All this voodoo hackery to try to
97.
▲
by
sreque
8y ago
GC is only part of the equation. I have always found this article informative: https://marc.info/?l=git&m=124111702609723&w=2 Performance for higher-level languages is usually great in-so-far as you're able to
98.
▲
by
sreque
8y ago
I didn't inherit them, but I've had to read through portions of the sqlite and Mercurial codebases and found both to be very well written. Good code can and does exist. It rarely exists in the private closed source sector, however
99.
▲
by
sreque
8y ago
generics in Haskell are done via type erasure, so they definitely do not perform nearly as well as c++ templates, especially for things like numerics. I don't know how rust implements parametric polymorphism to comment.
100.
▲
by
sreque
8y ago
Admittedly, I've only played Skyrim and a bit of ESO, but I've gotten the impression from Bethesda that their RPGs are always buggy, but, at least with Skryim, the game was so good I was more than willing to forgive them for it. S
101.
▲
by
sreque
8y ago
C#'s reified generics are actually a problem for other languages that want to run on the CLR, and in fact those languages generally have data structures with no reified generics (the data structures just store type Object and do perfor
102.
▲
by
sreque
8y ago
> I think sometimes people think node is ruby/python/php levels of performance. It isn't. Except, it is ruby/python/php slow: https://www.techempower.com/benchmarks/#section=data-r17&hw
103.
▲
by
sreque
8y ago
I don't know how anyone could reasonably conclude Apple's software is vastly superior. Apple has always been and continues to be a hardware-first company; their software always lags behind. In the past two days I've had to re
104.
▲
by
sreque
8y ago
I read it, thanks. That wasn't the point of the article at all. Also, Variable handles only represent a small part of what unsafe is used for.
105.
▲
by
sreque
8y ago
Oracle went the wrong direction with unsafe. Unsafe memory access is a feature of .NET and the CLR, not a hidden API where you get reprimanded by the community for using it. Not surprisingly, c# has succeeded where Java has failed in being
106.
▲
by
sreque
8y ago
In my experience, for most jvm apps non blocking io is a premature optimization that makes little performance difference. I once optimized an app, for instance, by switching to non blocking io, and was only able to go from 1000 rps percore
107.
▲
by
sreque
8y ago
Assuming the author's tests are single-thread, I'm pretty sure 1024 MB doesn't give you a full CPU core on Lambda. I could be wrong though; I haven't payed attention to Lambda in a long time. Last I remember it was 1.5 G
108.
▲
by
sreque
8y ago
My reaction to both the title is similar to that of other commentors: correctness should go first! However, the general idea appealed to me, so taking a step back, I tried to post-rationalize a similar thought to the author that I could rec
109.
▲
by
sreque
8y ago
Totally agreed that java fails hard for use cases involving small, lightweight binaries that are low memory and fast to start. This is an area where golang shines on the other. People are starting to experiment with AOT compilation via graa
110.
▲
by
sreque
8y ago
Pattern matching isn't used in the Java community because it doesn't exist, and there is nothing inherent in pattern matching that makes it less performant than double virtual dispatch. And anyone who thinks the visitor pattern is
111.
▲
by
sreque
8y ago
Racket is typed, but I don't think the macros themselves have types. Contrast that with both template Haskell and scala macros, both of which are typed and far more limited in what they can do. That said, it looks like OCaml macros are
112.
▲
by
sreque
8y ago
I implemented an R5RS macro expander, and, at least from the perspective of Scheme and macros, the only truly base is application, and all other forms can be reduced to it. For my expander I actually implemented all let forms, for instance,
113.
▲
by
sreque
8y ago
I personally don't like Lisps, although I agree with you that when I learned them that emacs felt like the best editor to use (though I ended up using the Racket IDE for other reasons). To me, the biggest advantage of Lisps is that the
114.
▲
by
sreque
9y ago
I don't know if its still the case, but I can honestly say with a straight face that at various points in the past decade I've used Netbeans for C development and it was fantastic. My understanding is that a lot of the Netbeans C&
115.
▲
by
sreque
9y ago
I've heard it said that the greatest minds of our generation are thinking about how to make people click ads. However, I feel like the greatest minds of our generation are spent trying to figure out how to enable people to build Linux
116.
▲
by
sreque
9y ago
I am a software developer, and I detest working on my mac laptop. At $lastjob I had a Linux desktop and it is, I believe, the most productive environment I have ever developed in. The job before, I had a windows desktop, and I prefer that t
117.
▲
by
sreque
9y ago
Every measurement I have made of startup time puts Python 2.7 at about half the startup time of Node.js.
118.
▲
by
sreque
9y ago
You're right on your first point. I responded a little harshly to OP because I believe they responded too harshly to the blog post. The P99 GC latency data they give is us not sufficient to explain their perf gains. More likely, the me
119.
▲
by
sreque
9y ago
you clearly didn't read the post very closely. They said 2.5% of CPU cycles were spent on stop-the-world young generation collections, not on the sum total of all memory mangement. That means that 2.5% of the time the app is entirely
120.
▲
by
sreque
9y ago
Rosyln might support incremental compilation, but, to my knowledge, it's not exposed in visual studio still in any meaningful way. See for instance https://stackoverflow.com/questions/34585588/is-c-sharp-comp.
More ›