Better HN
topnewbestaskshowjobs
Log inSign up

rnentjes

57 karma · joined Oct 22, 2014 (12y ago) · 25 submissions

Submissions

comment 5mo ago · link · parent

Keats blamed Newton for taken the magic out of the rainbow with a prism. Personally I think the magic only got greater.

comment 5mo ago · link · parent

To be fair, the average person already doesn't know how to do simple arithmetic.

comment 10mo ago · link · parent

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-...

comment 1y ago · link · parent

I am using this mouse because of that, and it works for me:

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

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

I'll add my julia attempt that animates and works with webgl:

http://julia.perses.games/

comment 4y ago · link · parent

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

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

comment 5y ago · link · parent

Alternative way to count the vowels in Kotlin:

    val numVowels = countVowels(getDTO()?.string ?: "")

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

It's saddening to see that wearing a mask to prevent infection from a virus is in any way political.

comment 6y ago · link · parent

> 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...

comment 6y ago · link · parent

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).

comment 6y ago · link · parent

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).

comment 6y ago · link · parent

Also the taxes are changing so everyone wants one before the end of the year. Q1 2020 wont be this good.

comment 7y ago · link · parent

This must mean nothing gets done right?

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

Netherlands is number 5.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 8y ago · link · parent

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...

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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

comment 9y ago · link · parent

Actually I would argue that the only "morals proper" are those that one makes for themselves.

Externally enforced behavior is not "morals".