-
Content Count
3416 -
Joined
-
Last visited
-
Days Won
113
Everything posted by Lars Fosdal
-
10.4.2 Released today - available to download
Lars Fosdal replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
Lots of good stuff to be discovered here. -
spinlock primitives
Lars Fosdal replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
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? -
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
-
Blogged : Advice for Delphi library authors
Lars Fosdal replied to Vincent Parrett's topic in Tips / Blogs / Tutorials / Videos
Name them and shame them into adherence! I am only half-kidding... -
Max string literal length = 255
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
@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. -
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/
-
Max string literal length = 255
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
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 -
Max string literal length = 255
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
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. -
That was what I suspected.
-
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/
-
Max string literal length = 255
Lars Fosdal replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
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. -
https://www.parallels.com/blogs/parallels-desktop-apple-silicon-mac/
-
Is it possible to Ctrl-click on Word ?
-
Which Delphi version? I am unable to reproduce in 10.4.1 - i.e. works as expected.
-
Delphi service in a domain controlled environment
Lars Fosdal replied to thomh's topic in Network, Cloud and Web
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. -
GExperts 1.3.18 experimental twm 2021-02-21 released
Lars Fosdal replied to dummzeuch's topic in GExperts
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 🙂 -
[Rio][FMX]How to compile for iOS without an Apple device?
Lars Fosdal replied to Fabian1648's topic in FMX
There are virtual rent-a-mac services around. https://www.macincloud.com/ -
Delphi is 26 years old - Marco's blog
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
Did any of you ever try Alice Pascal? Fascinating syntax enforcing IDE from the same era. https://www.templetons.com/brad/alice.html -
Delphi is 26 years old - Marco's blog
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
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... -
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?
-
Register here https://blogs.embarcadero.com/whats-coming-in-10-4-2-sydney/
-
Delphi is 26 years old - Marco's blog
Lars Fosdal replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
This means I now have 26 years of experience with Delphi, and I still feel like a n00b around parts of it. -
Cannot Run IDE (Emarcadero Delphi 10.3)
Lars Fosdal replied to Carissa's topic in Delphi IDE and APIs
@Marco Cantu - See the above comment. Surely we can't solve CE license issues at Delphi-Praxis? -
Cannot Run IDE (Emarcadero Delphi 10.3)
Lars Fosdal replied to Carissa's topic in Delphi IDE and APIs
Please use Embarcadero's online support for registration and installation issues. https://www.embarcadero.com/support -
Quickly zero all local variables?
Lars Fosdal replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
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.