News for hackers. Stuff that matters.
Re:Please check my quantum physics browser game for accuracy by mcguire on Wednesday June 01, 2016 @08:43AM (#11813880)
It's a Java applet?
Re:Please check my quantum physics browser game for accuracy by Vendan on Wednesday June 01, 2016 @08:47AM (#11813910)
And doesn't have any way to download it or anything. Java in browsers is officially a bad choice, people, as Chrome refuses to work with it.
Re:Please check my quantum physics browser game for accuracy by edejong on Wednesday June 01, 2016 @10:01AM (#11814372)
Technically, Chrome refuses to work with NPAPI, which Java depends on. Unfortunately, Oracle did not deliver any alternative to run Java in some of the more secured browser-plugin architectures.
Re:Please check my quantum physics browser game for accuracy by Vendan on Wednesday June 01, 2016 @02:03PM (#11816697)
Well, Oracle has also deprecated java in the browser, so...
Re:Please check my quantum physics browser game for accuracy by mindcrime on Wednesday June 01, 2016 @12:36PM (#11815829)
You could just as easily argue that "Chrome as a browser is a bad choice" for that reason.
Re:Please check my quantum physics browser game for accuracy by Vendan on Wednesday June 01, 2016 @02:02PM (#11816693)
or that NPAPI is really old, and that oracle is discontinuing their browser java plugin. Do you really think you can argue that Chrome is a bad choice cause it doesn't support something that is deprecated?
Re:Please check my quantum physics browser game for accuracy by mindcrime on Thursday June 02, 2016 @01:25AM (#11820559)
The thing about NPAPI is that it was at least a somewhat universally supported standard... and after dropping NPAPI, all Chrome offers is NaCL and PNaCL, which - AFAIK - nobody else supports. So you could argue that Chrome took a step backwards by dropping NPAPI before waiting to see if NaCL/PNaCL (or something else) would become the industry standard replacment for NPAPI.

I am, of course, just "playing devil's advocate" here a bit. NPAPI clearly had issues and I'm not enough of an expert to say if it would have been possible to simply improve it, or whether it was truly necessary to go to a whole new model. And you can certainly argue that the other browser vendors could adopt NaCL / PNaCL. I guess they have their reasons for not doing so.

It's sad really, because "Java on the Web" has a ton of value, but Sun screwed the pooch years ago with some of their decision making, leaving us where we are now. Oh well, at least there is JWS / JNLP. Hmm... come to think of it, I wonder if the OP could just rework their app to run as a JWS app, instead of as an applet? That might make everybody happy...

Re:Please check my quantum physics browser game for accuracy by sideshowb on Sunday June 05, 2016 @07:23AM (#11840437)
Is JWS/JNLP more secure? How so?
Re:Please check my quantum physics browser game for accuracy by sideshowb on Wednesday June 01, 2016 @08:47AM (#11813909)
Alas yes! In hindsight not the best choice of tech so a Javascript rewrite might be on the cards.
Re:Please check my quantum physics browser game for accuracy by Filligree on Wednesday June 01, 2016 @08:54AM (#11813957)
Kotlin has a JS compilation mode, and IDEA has a java-to-kotlin converter.

Maybe that's a good place to start? Kotlin is a good language anyway.

Re:Please check my quantum physics browser game for accuracy by lmm on Wednesday June 01, 2016 @09:14AM (#11814074)
Scala has both those things and is a better and more mature language.
Re:Please check my quantum physics browser game for accuracy by mushishi on Wednesday June 01, 2016 @09:29AM (#11814149)
It is a different language to be sure but why would you say it is better? Isn't there such a many ways to look at the strengths/weaknesses of a language that simply valuing one language over another does not make much sense? (In this context, I assume that both are good enough to be possible for this project).
Re:Please check my quantum physics browser game for accuracy by lmm on Wednesday June 01, 2016 @10:04AM (#11814408)
More consistent design - a lot of things that are special cases in Kotlin are just the logical combination of two orthogonal features in Scala (or Ceylon). That and the huge power of higher-kinded types - there are some language features where it's arguable whether they're worth their weight, but higher-kinded types are one where it's really clear-cut (IMO) - once you're used to them, using a language without them is like using a language without generics.

For the sake of argument I'll accept that it's maybe difficult to compare two languages in general, but in terms of Kotlin/Scala they are extremely similar languages targeting extremely similar use cases.

Re:Please check my quantum physics browser game for accuracy by softawre on Wednesday June 01, 2016 @03:23PM (#11817364)
We reviewed both and went with Kotlin. Scala is not the obvious choice here in my opinion.

Kotlin is a simpler language which is a huge benefit.

https://kotlinlang.org/docs/reference/comparison-to-scala.ht...

Re:Please check my quantum physics browser game for accuracy by lmm on Thursday June 02, 2016 @03:16AM (#11820878)
It's not a simpler language. It's a less powerful one but as a result it has a lot of ad-hoc special case features to cover subsets of functionality that Scala provides with a few powerful features applied consistently.

(If you want an actually simpler language, look at Ceylon)

Re:Please check my quantum physics browser game for accuracy by airless_bar on Thursday June 02, 2016 @04:47AM (#11821145)
I agree with lmm. The only thing where Kotlin wins is in marketing and hype.
Re:Please check my quantum physics browser game for accuracy by jeffwass on Wednesday June 01, 2016 @10:09AM (#11814453)
Hey SideShow B, I responded in a different comment with my old page of QM simulations I made 12 yrs ago as Java applets : http://www.pha.jhu.edu/~javalab/

I'd be very interested in how you eventually decide to update your applet to be more web friendly for current browsers, as I'd like to do the same, but know very little of modern web design.

Right now only one of mine is on GitHub : Squankum, for showing operations of single-qubit operations on input qubits, both graphically and in eigenvector form : https://github.com/jeffwass/Squankum/blob/master/README.md

Re:Please check my quantum physics browser game for accuracy by mindcrime on Thursday June 02, 2016 @01:27AM (#11820564)
Or how about just configure it to run using JNLP, instead of running in-browser as an applet?
Re:Please check my quantum physics browser game for accuracy by scrumper on Wednesday June 01, 2016 @10:32AM (#11814599)
Please be sure to repost if you do get round to porting it.
Re:Please check my quantum physics browser game for accuracy by sideshowb on Saturday June 11, 2016 @09:01AM (#11883289)
I open sourced it, so porting might happen now.
Re:Please check my quantum physics browser game for accuracy by Myrmornis on Wednesday June 01, 2016 @05:03PM (#11818138)
You have something interesting to say?