Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benibela
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
511.
▲
by
benibela
6y ago
I have heard about that bug https://forum.lazarus.freepascal.org/index.php/topic,51016.0... I have not seen it, but it would affect all my programs, it sounds very annoying
512.
▲
by
benibela
6y ago
I have been stuck on such these edge cases for almost 15 years building my own HTML parser It is always working on all the HTML files I have, but then people make new HTML files with other issues.
513.
▲
by
benibela
6y ago
I wonder the same about Delphi/Object Pascal
514.
▲
by
benibela
6y ago
https://en.wikipedia.org/wiki/Cryonics ?
515.
▲
by
benibela
6y ago
It was always Delphi that is ahead of everything else
516.
▲
by
benibela
6y ago
Apparently, in the UK many people used to have their teeth removed when marrying.
517.
▲
by
benibela
6y ago
I thought it was so that no one kills the author to end their copyright
518.
▲
by
benibela
6y ago
Yeah, I used to write my programs with Delphi My 20 year old projects run perfectly on Linux with WINE Now there is Lazarus to port Delphi code to a native Linux version, but it is using GTK2 and that is running much worse. (or through qt4
519.
▲
by
benibela
6y ago
>Win32 examples would have been peak hilarity. ExAmples
520.
▲
by
benibela
6y ago
>Interfaces in pascal are fairly interesting because they allow you to implement your own addref/decref routines for automatic reference counting. This was made for COM, but you can plug it into whatever reference counting scheme yo
521.
▲
by
benibela
6y ago
>Is returning references frequently done in C++? It is rather common to avoid copying returned objects. (perhaps it becomes less common with std::move ?) For example, the [] operator on the standard collections returns a reference, so th
522.
▲
by
benibela
6y ago
Perhaps this one: https://castle-engine.io/modern_pascal_introduction.html Or this with Delphi syntax for generics: http://newpascal.org/assets/modern_pascal_introduction.html
523.
▲
by
benibela
6y ago
The last release seems to be from 2009: http://www.sourceware.org/insight/
524.
▲
by
benibela
6y ago
He should have given you peanut butter, and a cheese sandwich
525.
▲
by
benibela
6y ago
I have astigmatism and nearsightedness And I did what burkemw3 did: Astigmatism-correcting glasses only. But it was very difficult. I went to an optician to buy them, and they told me, I would not need them, so they won't sell them to
526.
▲
by
benibela
6y ago
Console apps? For the terminal? The strength of Lazarus was creating Windows GUI apps not console apps.. But I made a console app with it: http://www.videlibri.de/xidel.html A query language for HTML, XML, and JSON
527.
▲
by
benibela
6y ago
However, such pointers are unsafe, since someone could pass an invalid or null pointer var/out variables are much safer, since the variable exists at the calling site , is valid and not null. It is also much safer than C++'s &
528.
▲
by
benibela
6y ago
I get 2.1 MB win32 and 6.9 MB Ubuntu x64 with fpc 3.2 Which is rather bad. I used to use Delphi 4 and it would create 350 KB programs by default. Which was also bad, so I sometimes used that Delphi without the GUI designer and without the V
529.
▲
by
benibela
6y ago
With covid, every university became a distance-learning university
530.
▲
by
benibela
6y ago
Guess, I am not going to add goodreads support to my reading-tracking library app
531.
▲
by
benibela
6y ago
that would be great, if it had an open API It is useless without API
532.
▲
by
benibela
6y ago
I made games when I was 13 years old. They are for Windows 98 and in German, but they should still be playable nowadays: http://www.benibela.de/games_en.html
533.
▲
by
benibela
6y ago
And that would be faster than the Pascal version But it is unsafe. Someone might mistype * * s as *s and then bad things happen. Pascal strings are basically memory safe. With range checking enabled, you can write whatever and it can only
534.
▲
by
benibela
6y ago
It is bad with C/C++ Unfortunately, I use Pascal and there it is even worse GDB tries to parse Pascal syntax in print, but many expressions do not work. It is almost a mix of Pascal and C. The integration in the Lazarus IDE makes it ev
535.
▲
by
benibela
6y ago
However, you should not actually do that, because changing s reallocates it, so you get O(n^2) runtime Should be like, getinteger(const s : string; var startPos: sizeint):integer; Pascal always has the best possible ideas, and then fucks up
536.
▲
by
benibela
6y ago
That is always so in Pascal It has the best possible ideas, and then fuck up the implementation. Recently, I tried to use a set on a three valued enum. With three values it should have worked perfectly. But no, the set was not allowed. Beca
537.
▲
by
benibela
6y ago
FreePascal 3.2 released! Would have been a better title Sure, that happened months ago, but there was no announcement thread on HN. It is sad. So many programming languages get an announcement thread, but FPC is forgotten all the time. edi
538.
▲
by
benibela
6y ago
The only usable gdb-based debugger I have ever seen was Insight But then it was killed because it was linking to gdb internals rather than using gdb's official api or something
539.
▲
by
benibela
6y ago
Europe has lower rent, health care insurance, and more vacations
540.
▲
by
benibela
6y ago
Elsewhere the entire family is earning less than a single person earns in the US
More ›