18 karma · joined Dec 7, 2013 (12y ago) · 10 submissions
comment 1y ago · link · parent
When you have a really good JIT, as Java does, this tradeoff is gone
Is there a way to visualize the machine code generated by the JVM when optimizing the same kind of code as the examples shown in the talk you mention? I tried putting the following into godbolt.org, but i'm not sure I'm doing it right: public class DontForgetToFlush {
public static void example(java.io.BufferedWriter w) throws java.io.IOException {
w.write("a");
w.write("b");
w.write("c");
w.write("d");
w.write("e");
w.write("f");
w.write("g");
w.flush();
}
public static void main(String... args) throws java.io.IOException {
var os = new java.io.OutputStreamWriter(System.out);
var writer = new java.io.BufferedWriter(os, 100);
example(writer);
}
}comment 5y ago · link · parent
That would have to be an INSANE worldwide propaganda effort to pull this off. Or maybe, the propaganda is not where you think it is.
comment 5y ago · link · parent
https://www.elsevier.com/connect/allegations-linking-sci-hub...
comment 6y ago · link · parent
Could you elaborate on what storage you have in mind? The only effective way we have to store large amounts of electricity right now is [pumped-storage hydroelectricity](https://en.wikipedia.org/wiki/Pumped-storage_hydroelectricit...), which is interesting but also very sensitive to the geography.
comment 9y ago · link · parent
Like another reply to your comment, I thought about having a very small js script in the header puting `Date.now()` in a global, then on page load, having another script checking the amount of time that had passed to see if it was worth downloading the "extra" at all. But then again where do you put the threshold? Has anyone tried this with some degree of success?
comment 9y ago · link · parent
It offers you all the cool features of paredit (barf, slurp, splice, transpose, convolute etc...), but it is easier to use in evil-mode. Check it out!