Visit site TURBU Tech
May 2011
3
votes
Delphi Live 2011 announcement
TURBU Tech
– Last year when I was at Delphi Live, the event was a bit smaller than it had been the year before. Less attendees, less sessions, not as nice of a venue, etc. Kind of to be expected, with the economy in the toilet and all, but still it was sorta sad. I heard a few people mention that the way ...
1
vote
Firebird and booleans: one more hurdle
TURBU Tech
– I wrote my last post about enabling booleans in Firebird after several hours of poking around in database code trying to get my query to execute without errors. Once it worked, everything seemed great. But I missed an important step: I hadn’t tried to write anything back to the database yet. ...
10
votes
Adding boolean support to Firebird+DBX
TURBU Tech
– Firebird is a great database, but it’s got one really irritating drawback: no native support for the boolean type. The standard solution to this issue is to create a BOOLEAN domain as a special restricted version of a smallint, and then make your database driver output the correct type. The ...
April 2011
3
votes
The more things change…
TURBU Tech
– Many years ago, back in 2000 or 2001, I forget the exact date but sometime in that time period, I ordered some books from Amazon and had them shipped by UPS. The shipping date came and went, and my books didn’t arrive, so I called up UPS, tracking number in hand, and asked them where my ...
March 2011
3
votes
I built a compiler today
TURBU Tech
– I wrote a compiler at work today. It took about 5 hours. Granted, its input is very simple and nowhere near Turing-complete, and its output is in Delphi, not any type of machine language or bytecode. But it definitely fits Joel Spolsky’s definition of a compiler. A few years back, the term ...
1
vote
AppWave: No individuals allowed?
TURBU Tech
– I ran into a first-look review of Embarcadero’s new AppWave service. It had a link to the beta registration, so I thought I may as well check it out and see what it’s like. The link takes you to a pretty standard form… until you look at it closely. On the form, there’s a ...
February 2011
2
votes
Wish list: Generics collapsing
TURBU Tech
– One annoying thing I’ve noticed in building my script compiler is the way the use of generic collections tends to bloat up the size of your EXE. I use generics for a lot of things; a compiler uses lists, stacks and lookup tables (dictionaries) all over the place. When I was building it with ...
5
votes
RTTI Generation code now available
TURBU Tech
– Over the past couple weeks, I’ve been working on refining and testing my RTTI generation and the scripting system I’ve been building on top of it, which I’ve decided to call RTTI Script. I think I’m finally starting to get something ready for public consumption. I set up a ...
January 2011
0
votes
Run-time stack information?
TURBU Tech
– Just in case you haven’t listened to it yet, Jim McKeeth over at Delphi.org posted a new podcast last week. He did an interview with Allen Bauer that apparently ran for about two hours, so he split it up into two parts. The second part isn’t up yet, but there’s a lot of ...
11
votes
Dynamic class creation: moving beyond the theoretical
TURBU Tech
– A few years back, I ran across this post by Hallvard Vassbotn. (It’s a shame he stopped blogging, because he always had some very interesting stuff about the technical details of how stuff in Delphi works.) At the bottom was a paragraph that really fascinated me: On a more technical level ...
6
votes
Smaller, cleaner RTTI probably NOT coming
TURBU Tech
– I got an email from Barry Kelly in response to my last post: I can’t comment on this article as it requires the commenter to be logged in, and registration is disabled. There are no plans for a more compact RTTI format. I’d love for there to be, but the backward compatibility concerns ...
December 2010
11
votes
Smaller, cleaner RTTI coming?
TURBU Tech
– One of the biggest complaints about the extended RTTI introduced in Delphi 2010 is the way it adds so much to the size of your EXE. Well, in a recent StackOverflow answer, Barry Kelly hinted that the format of the basic RTTI structures in TypInfo.pas are “more likely to change from version to ...
November 2010
4
votes
XE Update 1: you win some, you lose some
TURBU Tech
– In my first look at Delphi XE, I wrote: Oh, and apparently certain aspects of the compiler have slowed down. Most things will compile about the same speed or even a little faster, but for really large projects (millions of lines) with complex interdependencies between units, you’ll notice some ...
4
votes
Beware using anonymous methods in loops
TURBU Tech
– Quick, what’s the output of this simple routine? procedure AnonLoop; var i: integer; proc: TProc; ProcList: TList<TProc>; begin ProcList := TList<TProc>.Create; for i := 1 to 5 do ProcList.Add( ...
2
votes
TThreadedQueue: interesting, but incomplete
TURBU Tech
– I mentioned the new generic collection TThreadedQueue<T> in my First Look at Delphi XE. I decided to play around with it a little recently. It’s useful for passing data between one thread that produces output and another that consumes it, keeping the two in step by blocking if the ...




