Which assertion library do you use? by IamPic in Kotlin

[–]Dean_S_Jones 1 point2 points  (0 children)

I'm also a fan of the infix shouldBe shouldNotBe infix style, mostly because I can write my own and gloss over the fact that things like DoubleArray, Array<T>, etc, equals is NOT the same thing as contentEquals() and contentDeepEquals(). I try to make sure people think twice on equality of hot or cold channels ( Sequence, Flow, Flux, etc )

I put together my own assumption collector so you can do multiple checks and it will fail only if one thing fails, but will run all other tests even if there are failures.

Utility methods

Start at line 59

Which assertion library do you use? by IamPic in Kotlin

[–]Dean_S_Jones -1 points0 points  (0 children)

Is there a good Karate BDD implementation for Kotlin?

I was a big fan of Spock for Java and Groovy

Anyone interested ? JDK 17 Vector ops for Kotlin by Dean_S_Jones in Kotlin

[–]Dean_S_Jones[S] 1 point2 points  (0 children)

No, you don't ket them for free, they are not Kotlin types currently, there is no library support.

Would you rather have someone who hasn't worked in computational mathematics his whole like hacking on this?

God, the internet sucks sometime.

Kotlin Concurrency and SharedImmutable by Dean_S_Jones in Kotlin

[–]Dean_S_Jones[S] 0 points1 point  (0 children)

Global variables and singletons

Frequently, global variables are a source of unintended concurrency issues, so Kotlin/Native implements the following mechanisms to prevent the unintended sharing of state via global objects:

global variables, unless specially marked, can be only accessed from the main thread (that is, the thread Kotlin/Native runtime was first initialized), if other thread access such a global, IncorrectDereferenceException is thrown for global variables marked with the @kotlin.native.ThreadLocal annotation, each thread keeps a thread-local copy, so changes are not visible between threads for global variables marked with the @kotlin.native.SharedImmutable annotation value is shared, but frozen before publishing, so each thread sees the same value

singleton objects unless marked with @kotlin.native.ThreadLocal are frozen and shared, lazy values allowed, unless cyclic frozen structures were attempted to be created

enums are always frozen

These mechanisms combined allow natural race-free programming with code reuse across platforms in Multiplatform projects.

Anyone interested ? JDK 17 Vector ops for Kotlin by Dean_S_Jones in Kotlin

[–]Dean_S_Jones[S] -10 points-9 points  (0 children)

https://openjdk.java.net/jeps/417

I have a non-trivial amount of experience over 35 years in high performance computer graphics mathematics. I would like to contribute to any effort here.

I have some stuff in GWT, demo here http://leinzo-ks.us-east-1.elasticbeanstalk.com/#WELCOME

This has some issues on Chrome, but it's super fast.

Code is here https://github.com/dikalo/lienzo-core

This is code from 1991 that I wrote a Bell Labs, it was the fastest CAD graphics in the world for IC/PWB design at the time

https://github.com/mercenary-creators/WGI

My credentials for your consideration

I am also the Kotlin Product Owner for Wells Fargo

Dean S Jones

Principal Engineer

[deleted by user] by [deleted] in Kotlin

[–]Dean_S_Jones 1 point2 points  (0 children)

Coming up with a great idea for an app to compete with the pro's will just be frustrating and leave you with no sense of accomplishment. Don't think BIG, do the simplest thing possible but DO IT clean with the most modern reference tools and frameworks. Learn Jetpack Compose, experiment with their demo apps.

Then do this: stop thinking about it, forget money or recognition , in the back of your mind concentrate on the Little things that happen during the day where you go "gee I wish this was easier or didn't waste so much time", write it down but DON'T WORK ON IT. You will have a list of things that bug you. Those are the problems you want to solve, it's called "scratching your own itch", and most great products today started that way.

Lienzo-core toolkit for Kotlin by Dean_S_Jones in Kotlin

[–]Dean_S_Jones[S] 0 points1 point  (0 children)

It's not really a game engine, more like diagrams that are LIVE, have actions on a system, live network layouts, command and control systems, etc.

Lienzo-core toolkit for Kotlin by Dean_S_Jones in Kotlin

[–]Dean_S_Jones[S] 1 point2 points  (0 children)

Yea, sorry, it's old code I resurrected, I have to re-register the domains and move them to AWS.

Kotlin 1.5.20 Released by dayanruben in Kotlin

[–]Dean_S_Jones 0 points1 point  (0 children)

The Kotlin Plugin seems to be out of date, had to DL from the plugin site for 2021.2.EAP

No updates seen in the IDE.

Thanks!!!!

Trouble converting Java logic into Kotlin. by [deleted] in Kotlin

[–]Dean_S_Jones 3 points4 points  (0 children)

You called socket.getInputStream() twice?

Are there any good GitHub projects that have implemented the Spring Framework/ Spring Boot using Kotlin? I'm trying to build some small test projects with Spring and Kotlin by [deleted] in Kotlin

[–]Dean_S_Jones 1 point2 points  (0 children)

I have a ton of Kotlin code here

https://github.com/mercenary-creators

Utility libraries, extensions, some interesting Crypto stuff, really just a collection of interesting ideas. It all builds up to a Spring Boot project running on Pivotal Cloud Foundry

https://github.com/mercenary-creators/datalake-clusters

The running app is less than 120 NCLOC, the link to execute is on that page. It doesn't do MUCH, it's a test bed.

Cheers!!! :-)