Jump to content

Ondrej Kelle

Members
  • Content Count

    83
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Ondrej Kelle


  1. (I apologise if I'm missing the context here.)

     

    Automatically and unconditionally sorting units alphabetically doesn't seem to be a good idea. If you have multiple units exposing the same identifier then changing the order of units in the uses clause changes how they are resolved, probably leading to unintended changes to runtime behaviour of your code.

    • Like 4

  2. 8 hours ago, Blavatsky said:

    Hello Ondrej,
    Has there been any new work on Jedi Uses WIZARD ? How do you use it exactly ?
    I tried compiling it (D11 JEDI 2.8 and 3.5) but it mentioned something about first getting  a DOC-O-MATIC filename.... What does that entail ?

    Hi. Sorry, I haven't used it for years now and I have no idea.


  3. Years ago I wrote the "JEDI Uses Wizard" which scanned compiler messages to "catch" unresolved symbol errors and offer adding appropriate units to the uses clause. With no official OpenTools API available, it had to use a hack to retrieve the compiler output from the message window's treeview.
    The code is very old and perhaps a bit dangerous (although back then it seemed stable) and I have no idea if it still works today (the IDE internals might have changed). See if it helps you:
    https://github.com/project-jedi/jcl/blob/master/jcl/experts/useswizard/JCLUsesWizard.pas

    • Like 1

  4. 3 hours ago, Andrea Raimondi said:

    I would be especially interested in "working demos" such as UI pieces etc. I know you can do this with TMS and JavaScript or a host of other options (such as Smart Pascal or Quartex) but they all revolve around the very insecure NodeJS and I want nothing to do with that.

    There's an option of running WebAssembly via ChakraCore. I've blogged about it here: WebAssembly with Delphi and ChakraCore. There's source code for Delphi 7 or higher and Free Pascal 3.0.4 or higher.

    It should be possible to use V8 or SpiderMonkey in a similar way. I haven't tried this.

    I also know of some WebAssembly runtimes like wasmtime and wasmer (these two are both written in Rust) but unfortunately their C-style API is still incomplete (even the API spec itself is still work in progress)...


  5. 2 hours ago, Dany Marmur said:

    Do you know if it is possible to select a range of committs and inspect the difference between first and last for a file?

    I've found this way:

    1. In the Explorer view, open your working copy file
    2. In the File History view, right-click on the first commit in your range, select "Select for Compare".
    3. Still in the File History view, right-click on the last commit in your range, select "Compare with Selected"

     

    gitlens-compare-selected.gif


  6. 1 hour ago, Rollo62 said:

    Very nice work, would make a lot of sense with chakracore.

    Thanks! :classic_smile:

    Quote

    Maybe you can update us on the status of chakracore, and its current use-cases ?

    You can read about their future plans here on the GitHub repo:


    Version 1.12 plan

    Overall plan

     

    I think the current ChakraCore is still very nice if you need a high-performance scripting engine with JIT and GC embedded in your desktop application (with support for Windows, MacOS and Linux) and if ES6/partial ES2017 language support is sufficient for you: here are the  compatibility tables      .

     

    Quote

    Does it make sense to use it still in new projects ?

    It depends on whether you need to support the evolving ES standards and if the opensource community can provide new features. Also, security fixes - IIRC, Microsoft plan to provide them until March 2021.

    • Like 1

  7. 3 hours ago, Carlo Barazzetta said:

    Yes, to develop the app the font must be installed on the system in order to use it in the IDE.
    Deploying the app you can do as you explain:

    If you wanted to avoid the requirement of having the fonts installed globally in Windows you could write a design package with the fonts linked in as resources. The package, when loaded by the IDE, could load the fonts from the resources (using the code shown by @Attila Kovacs) and call Screen.ResetFonts to signal the IDE to reinitialize its font list . After that the fonts would be available to the IDE.

×