Welcome!

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

SignUp Now!

Search results

  1. 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
  2. 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...
  3. 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...
  4. 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
  5. 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...
  6. 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);
  7. J

    C to js

    WebAssembly (google it) allows you to call c code from javascript
  8. 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...
  9. 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()...
  10. 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.
  11. 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?
  12. 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...
  13. J

    Python Indeterminate System from a Deterministic System

    Thank you for your condescending response. I’ll back off and save you the overhead of having to explain simple things to me. Before I go, just FYI, I’m English not American, with a degree in theoretical physics from King‘s. My recent projects include prototyping a secure medical data...
  14. J

    Python Indeterminate System from a Deterministic System

    So here we are back at the beginning And I still can’t get to whatever it is you are explaining. Crypto does NOT need true random; it just needs to pass your first two tests (with one secret allowed for test 2). The third is not necessary, and is maybe undesirable because it prevents...
  15. J

    Python Indeterminate System from a Deterministic System

    I’m familiar with basic statistical measures. I have no idea what ’…are approximations’ means. The formulae are what they are. I can‘t compare them with your formula because you haven’t shown it. You mention standard deviation, but of course that‘s meaningless when the data values are all 1 or...
  16. J

    JavaScript Chess Ai

    There’s lots that can be done, but a good place to start with is Alpha-Beta pruning
  17. J

    Python Indeterminate System from a Deterministic System

    No. An appropriate standard deviation is a necessary but not a sufficient condition. You can write deterministic programs to output predictable data with any specified std. See This Wikipedia article to understand just how hard it is the test data for true randomness. That’s why it‘s useful...
  18. J

    Python Indeterminate System from a Deterministic System

    1. No. 2. Yes. 1. Is trivial 2. Is very interesting. A ordinary computer’s cpu is deterministic and incapable of creating true randoms (although it can generate sequences of bits that can safely be used in place of true random in practical applications such as cryptography). They can achieve a...
  19. J

    Python Indeterminate System from a Deterministic System

    If I understand your code correctly, you are using the difference between two times to seed the `Python random number generator. time.time() returns the time as a double in seconds so, given the very short wait the two times, the results will differ by some small amount. Given the limited...
  20. J

    C++ The simplest way to print a knight's closed tour

    I agree. Generalise and re-use. As always, the trick is to define the API well enough that potential users will prefer to master the API over coding their own solution. That starts with thinking about how general it should be, for example… The board could have any geometry - each cell just...
Back
Top Bottom