News for hackers. Stuff that matters.

rnentjes

Re:What was your "Oh Shit" moment with GenAI? on Sunday June 07, 2026 @04:39AM (#48433003)
Keats blamed Newton for taken the magic out of the rainbow with a prism. Personally I think the magic only got greater.
Re:What was your "Oh Shit" moment with GenAI? on Sunday June 07, 2026 @04:29AM (#48432963)
To be fair, the average person already doesn't know how to do simple arithmetic.
Re:Was it a billion dollar mistake? on Sunday January 04, 2026 @08:33AM (#46487790)
After reading all that (ok skimming), he does mention nullable types, but doesn't go into them at all. What's wrong with having the option of defining if something can be null or not? This is how I understand nullable types, don't known about monads. You only have to check if it's null if you have defined that it can be null.

To me this sounds like a solved problem, for example like how it's done in kotlin: https://kotlinlang.org/docs/null-safety.html#nullable-types-...

Re:One Handed Keyboard on Saturday November 15, 2025 @05:51AM (#45936557)
I am using this mouse because of that, and it works for me:

https://www.contourdesign.com/collection/contour-slidermouse

Re:It Will Take Decades to Undo the Damage Done by "AI" on Sunday October 05, 2025 @04:38AM (#45479976)
Seem to me that whether or not people will be asked to "come out of retirement" will completely depend on how good the LLM's will be in 20 years.

This seems to happen a lot in the discussions around LLM's. Some people discuss it like LLM's will not get any better, others discuss it as if LLM's will continue to get better forever. But only time will tell.

Re:Zelensky leaves White House after angry meeting on Saturday March 01, 2025 @04:17AM (#43217545)
Diplomacy has been tried multiple times before, even with security guarantees from the usa. Still Putin invaded. There can not be lasting peace without actual guarantees (for which use is not even a trustworthy party anymore). Because Putin will rebuild and invade again as he did after the last time.

This is what Zelensky tried to explain to Vance before the discussion blew up.

Re:Translating 10M lines of Java to Kotlin on Sunday December 22, 2024 @06:20AM (#42485687)
The PAL (Platform Abstraction Layer I assume) is just the stdlib that is provided. The stdlib is not the same for all platforms, as can be seen in the documentation. A regex implementation is provided for all platforms, but is not quite the same on all platforms: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/-r...

In shared code you can define interfaces that have to be implemented by any platform you use.

Re:The quest to decode the Mandelbrot set on Saturday January 27, 2024 @07:24AM (#39154962)
I'll add my julia attempt that animates and works with webgl:

http://julia.perses.games/

This might be an example of what you are looking for:

https://medium.com/@noclador/putins-plan-4652895de8ba

Re:Revisiting Java in 2021 – Part II on Sunday September 19, 2021 @01:10PM (#28585980)
Alternative way to count the vowels in Kotlin:

    val numVowels = countVowels(getDTO()?.string ?: "")
Re:The Surprising Story of the First Microprocessors (2016) on Friday September 17, 2021 @07:47AM (#28564302)
I would like to see that number as well, I actually expect it to be a lot more than a million.

Take 1000 times the clock rate, 4 cores, multiple instructions per clock instead of multiple clocks per instruction. Operations on 64 bits i.o 8 and the Z80 doesn't even have multiply or divide operators and would need to loop and add to do a multiplication/division. And then think about things like ARM SIMD instructions.

It's saddening to see that wearing a mask to prevent infection from a virus is in any way political.
Re:When will the Netherlands disappear? on Wednesday December 18, 2019 @10:42AM (#21825941)
> No one will ever suggest cutting the budget for this.

This is not completely true, farmers have been protesting the increase of this tax: https://www.rtlnieuws.nl/nieuws/nederland/artikel/4942211/we...

Re:Making Games with Kotlin on Wednesday December 11, 2019 @08:15AM (#21762038)
Yes, the upside of one language should be that you don't have to write the same stuff multiple times. But if you don't want the downside of having one common denominator holding you back, then you have to write some parts specifically for each platform. That is the option Kotlin gives you. And my point was that this doesn't necessarily mean it will hold the specific platforms back (which seemed to be your point).
Re:Making Games with Kotlin on Wednesday December 11, 2019 @05:30AM (#21761191)
There is nothing keeping them from not making some constructs not portable to certain platforms. Mostly they try to do this with standard language constructs (of course), but for example the 'dynamic' type is completely javascript specific.

This only goes for Valhala. The other examples seem to be java playing catch-up to Kotlin (Panama for Kotlin native and Loom for co-routines).

Also the taxes are changing so everyone wants one before the end of the year. Q1 2020 wont be this good.
Re:A Simple Dutch Cure for Stress on Saturday November 09, 2019 @09:02AM (#21491588)
This must mean nothing gets done right?

Guess again: https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(PPP)...

Netherlands is number 5.

Re:Build a 6502 Computer on Sunday September 15, 2019 @05:30AM (#20976353)
Last night a new version of the vera documentation was uploaded (https://github.com/commanderx16/x16-docs/blob/master/vera-mo...). It looks like the changes will allow for more memory, up to 1mb. Of which the last 64kb seem to be reserved for the registers, so max 960kb.

Constantly copying data to the VERA (chasing the beam/screen), seems unpractical. The 6502@8MHz can never move that much data.

So you're saying the climate is changing?

But seriously, the article you link to is directly stating rising CO2 levels as one of the causes as CO2 is good for plants.

As a hobby I have been working on an online tracker, you can fin dit here: https://www.music-tracker-online.com/tracker.html?song=XfK&p...
Re:JetBrains Web UI components open-sourced on Friday August 04, 2017 @02:15PM (#14930671)
With the 1.1.4 version they have added a dead code eliminator which really helps with the resulting javascript length. In the example above the resulting javascript file is 440 KB (zipped 113 KB). Which is not bad if you take into account that the included libraries are more than 2MB (the standard library and static html builders being the biggest ones).

I haven't measured runtime performance, but I haven't noticed anything being slower than plain javascript yet. A clean compile in this example takes ~8 second, incremental compiles takes 3-4 seconds.

The jvm doesn't play a role when targeting javascript so I am not sure what you mean with JVM variables and I don't know much about GWT. But you can debug the resulting javascript from intellij and step through the kotlin sources if you want.

I don't know how easy it is to integrate with react.

Re:JetBrains Web UI components open-sourced on Friday August 04, 2017 @12:56PM (#14930035)
Actually the javascript target has been fully supported since version 1.1.

For example here is a single page app written with kotlin: https://github.com/rnentjes/simple-password-manager

Re:Ask HN: What is your password management solution? on Sunday July 16, 2017 @05:42AM (#14781289)
A while back I was looking for an online password manager that you can host yourself (I don't trust my passwords with anyone else).

I couldn't find one that matched my requirements so I build one myself:

https://github.com/rnentjes/simple-password-manager

Re:Bugger: Maybe spies aren't very good at their jobs (2013) on Wednesday June 07, 2017 @06:46AM (#14505086)
Actually I would argue that the only "morals proper" are those that one makes for themselves.

Externally enforced behavior is not "morals".