Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Lots of good stuff to be discovered here.
  2. Lars Fosdal

    spinlock primitives

    The equivalent of x86 PAUSE on ARM would be YIELD. Perhaps there is no ARM version of YieldProcessor because the ASM block only is usable under x86?
  3. I am not always putting huge strings into constants, but when I am testing a parser I am. Except - Delphi does NOT like string literals longer than 255 chars. It is probably logical, but still annoying. var s: string; begin s := 'string that is 750 chars long'; // compiler barfs with [dcc32 Error] E2056 String literals may have at most 255 elements s := '250 chars' + '250 chars' + '250 chars'; // ok /rant
  4. Lars Fosdal

    Blogged : Advice for Delphi library authors

    Name them and shame them into adherence! I am only half-kidding...
  5. Lars Fosdal

    Max string literal length = 255

    @emailx45 It is great that you are enthusiastic and helpful - but - the wrong kind of help is not really helpful, is it? I guess you missed the "/rant" in my original post, as well as the comment about "logical, but annoying", and the explicit reference to string literals. I also clearly stated WHY I wanted a longer string literal; and @Angus Robertson provided another example of when this limit is a challenge. Yet you post a completely irrelevant suggestion that AnsiString is the answer to the problem. My advice: - Study posts until you are sure you understand the context - Avoid applying your own opinion as one of the Embarcadero engineers - Avoid what-about-ism - Avoid characterizing the desires of others as insane - Avoid posting bullshit comments not relevant to the discussion Fun fact: The line length limit in the Delphi IDE is 4096 chars.
  6. Lars Fosdal

    macbook pro M1, running Delphi IDE

    I think you are right about the swap issue. Yet another problem has surfaced. I am glad I didn't spring for the Mini. The Register: Doctor, I think I have an HDMI: Apple starts investigating M1 Mac Mini graphics issues. https://go.theregister.com/feed/www.theregister.com/2021/02/22/apple_starts_investigating_m1_mac/
  7. Lars Fosdal

    Max string literal length = 255

    True. Normally you would for readability, but splitting involves a manual operation that carries a risk of mangling the content. Yes, it is a compiler limit, but when you can split and add up a huge string "manually", it is annoying that the compiler can't hide this for you. /rant ended
  8. Lars Fosdal

    Max string literal length = 255

    So, @emailx45 - show me a code example of how you fill an ansistring using a single string literal longer than 255 chars in the source code. Not from a loop, concatenation, string resource, file, form resource, or copied from the clipboard at runtime.
  9. Lars Fosdal

    DecodeDate Issue

    That was what I suspected.
  10. Lars Fosdal

    macbook pro M1, running Delphi IDE

    I'll be waiting for the next generation, or until they fix this: PC Gamer: Apple M1 Macs appear to be chewing through their SSDs. https://www.pcgamer.com/apple-m1-macs-appear-to-be-chewing-through-their-ssds/
  11. Lars Fosdal

    Max string literal length = 255

    Make sure you understand the core issue before posting a googled suggestion. Good luck filling an AnsiString with a string literal longer than 255 chars. Oh wait, you can't. If I don't want to split up and combine multiple literals, loading from a resource string is an option. It just irks me that I can't initialize a string variable that can literally hold billions of characters with a single constant longer than 255 chars.
  12. Lars Fosdal

    macbook pro M1, running Delphi IDE

    https://www.parallels.com/blogs/parallels-desktop-apple-silicon-mac/
  13. Lars Fosdal

    DecodeDate Issue

    Is it possible to Ctrl-click on Word ?
  14. Lars Fosdal

    DecodeDate Issue

    Which Delphi version? I am unable to reproduce in 10.4.1 - i.e. works as expected.
  15. Our services runs on domain controlled servers and are descendents from TService, but they must be configured to run with a specific AD user (i.e. not the default system user) that has the necessary rights to access it's own file, and to start and stop services to be able to upgrade themselves.
  16. Lars Fosdal

    GExperts 1.3.18 experimental twm 2021-02-21 released

    The Danes are currently having an upswing in cases due to the English mutation, and we are usually about four weeks after the Danes. I am the type of person that is happy in my own company and not dependent on hanging out with people outside the family to be stimulated, but even I am beginning to feel the pressures of self-isolation. I miss seing the users and my colleagues over a beer. That constant little ping of fear when venturing into the shopping centers and stores, wearing a mask, sanitizing my hands. It is a stress factor unlike anything I've ever endured before. There still are hundreds of thousands of people in front of me in the vaccination queue. But - you do what you can and embrace the days as they come. Thinking about Delphi things is a good diversion, so keep letting out more genies GExperts 🙂
  17. Lars Fosdal

    [Rio][FMX]How to compile for iOS without an Apple device?

    There are virtual rent-a-mac services around. https://www.macincloud.com/
  18. Lars Fosdal

    Delphi is 26 years old - Marco's blog

    Did any of you ever try Alice Pascal? Fascinating syntax enforcing IDE from the same era. https://www.templetons.com/brad/alice.html
  19. Lars Fosdal

    Delphi is 26 years old - Marco's blog

    Me too, @luebbe. My first Pascal was Compas Pascal on Z80 - which transmogrified into Turbo Pascal for DOS and CP/M. ... checks himself for lichen and moss growth again...
  20. Lars Fosdal

    Keep D2006 vs Sydney aligned

    You could do a fixup on the forms at runtime for Sydney, enumerating the controls on the forms/frames and set TLabel.Transparent to false? Do the frames have a common ancestor?
  21. Register here https://blogs.embarcadero.com/whats-coming-in-10-4-2-sydney/
  22. Lars Fosdal

    Delphi is 26 years old - Marco's blog

    This means I now have 26 years of experience with Delphi, and I still feel like a n00b around parts of it.
  23. Lars Fosdal

    Cannot Run IDE (Emarcadero Delphi 10.3)

    @Marco Cantu - See the above comment. Surely we can't solve CE license issues at Delphi-Praxis?
  24. Lars Fosdal

    Cannot Run IDE (Emarcadero Delphi 10.3)

    Please use Embarcadero's online support for registration and installation issues. https://www.embarcadero.com/support
  25. Lars Fosdal

    Quickly zero all local variables?

    If the first thing I do is to set a local variable to a specific value - any previous initialization would be wasted. Managed vars are a different story - since approaching an arbitrary pointer would be unfortunate.
×