Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haglin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
haglin
8y ago
You were unlucky, the hg server went down during the weekend http://mail.openjdk.java.net/pipermail/jdk-dev/2018-October/... This doesn't happen often. It's definitely not a research project. There
32.
▲
by
haglin
8y ago
Just use OpenJDK.
33.
▲
by
haglin
8y ago
I think generics in Java works pretty well. Should it have been there from the beginning. Yes, but it would have delayed the release of JDK 1.0. People often complain about type erasure, but I have seen very few examples of everyday program
34.
▲
by
haglin
8y ago
Google's handling of their source code makes me wanna work there. I don't like distributed version control systems with hundreds of repositories spread out. It makes management more complicated. I understand this is a minority vie
35.
▲
by
haglin
8y ago
And more is coming: Fibers, pattern matching, continuations, value types, low latency garbage collector …
36.
▲
by
haglin
8y ago
Don't be evil. The greatest trick the Devil ever pulled was convincing the world he didn't exist.
37.
▲
by
haglin
8y ago
It may be worth mentioning that project Loom [1][2] aims to add continuations and lightweight threading to Java. It is lead by Ron Pressler, the author of the Quasar library mentioned in the paper. Also, JDK 11 (Hotspot) comes with a new co
38.
▲
by
haglin
8y ago
I believe there is a JEP to fix that, but it doesn't say if it will make JDK 11. http://openjdk.java.net/jeps/8200758
39.
▲
by
haglin
8y ago
Java Applets were supposed to be safe too.
40.
▲
by
haglin
8y ago
You need ONE wallet and then you can use it for all sites. It's much, much easier. Setting up the wallet doesn't need to be more complicated than setting up a card with Apple Pay. You don't need to understand the underlying t
41.
▲
by
haglin
8y ago
Java has changed a lot over the years, for example generics, lambdas, default methods, type inference, and new things are in the pipeline, for example value types, data classes, and pattern matching. The JDK libraries has also grown. You co
42.
▲
by
haglin
8y ago
Someone always have to pay, one way or the other. With microtransactions you only pay for what you want to consume and you don't need 10+ different subscriptions. That is the benefit. If you only want to spend 2 dollar a month, that&#x
43.
▲
by
haglin
8y ago
If it is built into the browser, it will not be harder than say cookies. When it comes to US dollars, you have to pay transaction fees and it can take days before the transaction is completed. The user doesn't need to know what a crypt
44.
▲
by
haglin
8y ago
What we need is a cryptocurrency capable of handling microtransactions. Then we need web browser support (a standard) for a cryptocurrency wallet. When you visit a web page, you can pay for the content by clicking Yes in a dialog box. When
45.
▲
by
haglin
8y ago
"Let’s try an another strategy then: bump as little as we can. This strategy worked much better." Not sure this is a better strategy - it accumulates technical debt. I think you should try to update as much as possible and stay ah
46.
▲
by
haglin
8y ago
I didn't understand how pop and push worked. I thought each register, i.e. BC or DE, had its own stack. I couldn't understand why some programs crashed. Very frustrating when you had to reload everything from tape again, and again
47.
▲
by
haglin
8y ago
You need a controversial title, or the topic will be ignored and not discussed here.
48.
▲
by
haglin
8y ago
Project Loom will add support for millions of threads (fibers) to the JVM. http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.htm...
49.
▲
by
haglin
9y ago
100 billion could, without problem, live on this planet using nuclear energy and vertical farming.
50.
▲
by
haglin
9y ago
> It will never be as good as a modern language like Kotlin (data classes are my favourite feature there), but it is good enough Data classes may come to Java. http://cr.openjdk.java.net/~briangoetz/amber/datum
51.
▲
JEP 328: Flight Recorder
(openjdk.java.net)
3 points
by
haglin
9y ago
|
0 comments
52.
▲
by
haglin
9y ago
"To reduce the GC impact from the storage engine, we considered different approaches and ultimately decided to develop a C++ storage engine to replace existing ones." I wonder how the numbers would have looked with the new low lat
53.
▲
by
haglin
9y ago
If you use LinkedList and ArrayList in an API, you can't pass a list created by the following factory methods: Collections.emptyList() Collections.singletonList() Collections.unmodifiableList() List.of() As niftich points out, use
54.
▲
by
haglin
9y ago
I have tried not to use Google, but I always come back. Results from Altavista, Bing and DuckDuckGo are so much worse. Note, it's not that Google has personal information on me. I'm not logged in, my cache is cleared, I use a VPN
55.
▲
by
haglin
9y ago
What a lousy article. "Most Java web servers work by starting a new thread of execution for each request that comes in " Nobody who has a performance critical application starts a new thread for every request. That would be beyond
56.
▲
by
haglin
9y ago
I work in a large company and I have used a central repository for six years and a distributed for six years. I think a central repository is better. The benefits are: 1) Transparency. I can see what everybody else is doing and if somebody
57.
▲
by
haglin
9y ago
Problem is, I don't want to work with repacking stuff, or managing others repacking stuff. I want to build amazing software, and for that I need a larger company who can market my inventions and talk about it on conferences and road sh
58.
▲
by
haglin
9y ago
Some reasons: - more efficient representation - thread safety - security (defensive copy) - validation - logging - debugging - backward compatibility
59.
▲
by
haglin
9y ago
What does the Z stand for? Zettabytes? If GC pause times do not increase with the heap- or live-set size, it could handle such large heaps.
60.
▲
by
haglin
9y ago
JDK 9 also comes with compact strings which can reduce the heap with 5-15%[1] and with -XX:+UseStringDeduplication, AppCDS and AOT the memory footprint can be reduced even more. [1] https://www.infoq.com/news/2016/
More ›