Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Kim Gordon

Ranch Hand
+ Follow
since Dec 06, 2017
Kim likes ...
Android Chrome Python
Cows and Likes
Cows
Total received
-1
In last 30 days
0
Total given
0
Likes
Total received
-1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kim Gordon

Greetings! All hail the Java expert.

Duke must be sitting on his throne at Oracle reading this book.
2 months ago

Cay Horstmann wrote:Core Java for the Impatient is your ticket if you want concurrent programming without the brain surgery :-)

I reorganized the canonical treatment so that you first read about the tools that you should use, not the atomic building blocks that the experts use. In your situation, you can add the messages to a threadsafe queue from the standard library, and have another thread pull them out and print them. No wait/notify, no locks or semaphores, no race conditions, no deadlock. Using a standard threadsafe data structure is almost always the right solution. That's what I present first before going down the weeds of wait/notify. It is very liberating.

Cheers,

Cay



Cool, thank-you for the helpful reply Cay. I did not think about using a thread-safe data-structure and then having another thread pull them out of the data-structure. This makes some sense to me. I guess this a way to avoid the confusing situation of figuring out what needs to be synchronized and how to call wait/notify(All) like you were describing.

Regards,

KG
3 months ago
Dear Cay,

In Java 9 is it possible to write a multi-threaded program that prints out text to the command line
without any sort of race condition; and without having to even consider the possibility of thread deadlock?



3 months ago

Tim Cooke wrote:Is this a joke?



I am not at liberty to say Tim. But thank-you for the reply.
3 months ago

Upe Fisherman wrote:Hi Kim,

sorry (not english mothertongue here), I meant that this Scala emulator although is not a game itself, is somehow related to gaming

Cheers,

Ubaldo



Upe,

I understand what you mean. I admire your ability and courage to participate in a discussion forum that is not your native language.

Regards,

Kim Gordon
4 months ago

Upe Fisherman wrote:Hi Kim,

that's not a proper game written in Scala, but here https://github.com/abbruzze/kernal64 you can find a Commodore 64 emulator written in Scala.



Hello Upe,

What is not a proper game written in Scala?

Thank-you for the hyperlink to the Commodore 64 emulator written in Scala. Interesting... I have played some fun games on emulators for Nintendo games and Id Software's Doom.

Regards,

Kim
4 months ago

Daniela Sfregola wrote:Hi Kim,
I am not aware of any video game written in Scala -- but I have to admit my limited knowledge in the field of gaming!

Scala is not a scripting language, have a look at this chapter (you can access it for free) of Get Programming with Scala where I explain what Scala is: https://livebook.manning.com/#!/book/get-programming-with-scala/chapter-1/v-1/40

Cheers,
Daniela



Hi Daniela,

Thank-you for the reply. I will have to check out this free chapter if time permits in my work schedule!

Also, that is interesting that Scala is not a scripting language. Thank-you for clarifying that.

Regards,

Kim
4 months ago

Tim Cooke wrote:What's the relevance of the picture? I don't get it.



I just thought some interesting eye-candy relating to computers would make my post more interesting. I think I have a thing for obsolete stuff.
4 months ago
Hello Daniela Sfregola,

Are any video games you know of written in Scala? What do you think is most important 1) learning numerous languages or 2) learning to write complex algorithms in a single language? Is Scala similar to scripting languages like Ruby or Python?



Regards,

Kim Gordon

4 months ago
Hello J Richard Rodger!

What are some example applications that are built with micro-services? Can micro-services be built in any language? Do you think this book could keep print outs on my desk from flying around?

Regards,

Kim Gordon

4 months ago