Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by JavaJames

  1. J

    From poker to coding

    Hi Nick. Are you looking for feedback on the code you are publishing?
  2. J

    JavaScript Can not figure out how streaming works

    It looks like a button click starts the stream handler, which sits in a loop getting frames from the camera, compressing them, and sending them as a simple HTTP response to the client
  3. J

    A tomato pasta recipe (in programming languages)

    Ok. Just fyi recent versions of Java have “virtual threads” that exist just in the jvm. They are designed to handle server situations with thousands of threads. There’s a whole load of api enhancements to manage and synchronise them.
  4. J

    I was designing web sites before the WWW

    Apple Lisa launched Jan 83, but I know what you mean. I was writing on-line real-time financial reporting systems in 1974 using teletypes and acoustic couplers to dial into our time-sharing service on Xerox Sigma 9’s Things were so much simpler then
  5. J

    Navigating the Java Web Development Universe: Crafting an In-Depth Roadmap for Success

    Very good point. Looking at a Java application, depending on your viewpoint Java is either the glue that holds it all together, or the foundation on which it’s built. The rest is APIs, frameworks, databases, HTML, IDEs etc. You’ll need some skills with all those to become a full stack...
  6. J

    A tomato pasta recipe (in programming languages)

    I think the problem with this model is the “break’. The idea that one thread can arbitrarily terminate/abort another thread sounds like a recipe for disaster. Who knows what state the aborted thread will be in - is the oil fully hot or not? And who’s going to deal with the InterruptedException...
  7. J

    Understanding how keystores or secrets manager work for software running on linux

    According to This it looks like default encryption is linked to the logged-on user id
  8. J

    Old computer programming books still useful?

    Knuth is still relevant, but the rest aren’t worth the paper they’re printed on. Languages, frameworks, libraries, toolkits etc are all evolving faster than publishers can get a book produced (and if they’re not evolving that fast then they’re dead). The only source of really current info is the...
  9. J

    A tomato pasta recipe (in programming languages)

    Java: The fork method returns an instance of Future that you can use to check its status, get any returned results, cancel it etc eg var hwBranch = scope.fork( … … hwBranch.cancel(true);
  10. J

    C to js

    WebAssembly (google it) allows you to call c code from javascript
  11. J

    Bit Masking

    It’s testing the ith bit. Returns true if the ith bit is 1 Eg suppose x is 00001000 and I is 3 The 1 is 00000001 1<<3 is 00001000 X is. 00001000 AND is 00001000. Which is != 0, so the result is. True Now suppose I = 2 1<<2 is 00000100 X is. 00001000 AND is 00000000. Which is not...
  12. J

    A tomato pasta recipe (in programming languages)

    Originally Java didn't have anything so neat BUT the latest Java release includes new threading classes that work in much the same way. A StructuredTaskScope lets you fork multiple threads then wait for them all to complete before continuing var scope = new StructuredTaskScope()...
  13. J

    Does this criteria prove that Y calls X in infinite recursion?

    Yes, sure. But you know what I meant…. “Loop until the computer runs out of some limited resource or the sun goes nova and destroys it. ;) More seriously: that looks like tail recursion, so a decent compiler could optimise it to avoid growing the stack.
  14. J

    Does this criteria prove that Y calls X in infinite recursion?

    Isn't it the case that if there are no conditionals in the executed code then the code will either be executed exactly once, or loop forever?
  15. J

    Java Error in Running a Java Program

    That's a convenient beginner hack to avoid setting up paths etc properly, but it's a really bad idea. The last place you should put your files is in someone else's installation folder. What happens when you update the JDK? Moreover the Java compiler has built-in requirements about how the...
Back
Top Bottom