Perhaps I should try sending him a mail
963 karma · joined March 28, 2013
Open-Source projects:
LaTeX-Editor: https://www.texstudio.org/
Command-line JSON/XML/HTML processor: https://www.videlibri.de/xidel.html
Perhaps I should try sending him a mail
But a segmentation fault is also controlled
>Your use of "exception" suggests you're thinking about it in Java terms however, and Java is equivalent here.
No, I am thinking in Delphi terms. It is overspecialized to Windows userspace. Windows gives an Access Violation, and that can be caught, and Delphi throws it as exception
>Second, you can only encounter this in explicit circumstances, when you have an Option<T>. Wheras in languages with a null type, any variable can be null implicitly, regardless of it's type.
Delphi has both nullable types and null-safe types
I do not have Windows 98 anymore. But I still have Delphi 4 installed under Wine, so I just tried it out.
Just showing a messagebox from windows gives 16k
Using the sysutils unit though, puts it at over 40k. And with classes, it becomes 57k. Not sure what they pull in. sysutils contains number/datetime parsing and formatting, and exception handling. classes has basic containers and object oriented file handling.
And I was upset that they were so big. Sometimes I used UPX. Or I kicked out all Delphi GUI libraries, and created the GUI with the Win32 API calls directly. I got 50 KB Hello Worlds.
There was a time when a virtual function call was a lot of overhead
Even having a VMT is overhead.
Sometimes the COM interface is implemented as actual interface, where the implementing class is derived from another class and the interface. (in C++ the interface is just another class with multiple inheritance, but other languages have designed interfaces). Then the class even needs to have two VMTs.
Multiple VMTs have even more overhead. And with multiple VMTs, it is not just a method call. In the functions, this always points to the first VMT. But when a function from the VMT is called, the pointer points to that VMT. So the compiler creates a wrapper function, that adjusts this and calls the actual function.
when methods from the later VMTs are called , this points (non-virtual thunk)
And the teachers warned against it, and someone told about a child dying from drinking just one liter of tapwater
Looks like they switched from downloading the entire JSON on updates to downloading a patch
I have to kill gdb from outside the X server to do anything else
It is often forgotten, but can make some algorithms faster
Pascal?
Someone experiences too much sadness and other negative emotions, so the brain tries to stop the negative emotions by shutting down all emotion processing. Then you do not feel so many negative emotions anymore, but also no more positive emotions. You just do not feel anything. Since motivation comes from emotions, you also lose all motivation to do stuff
It is annoying when you search for two words and they are not found, because they are on different lines
We just need better diff/merge tools that can handle text without line breaks. wdiff is installed everywhere for in-line diffs, but no one seems to maintain it. There have been patches sitting around for years: https://savannah.gnu.org/patch/?group=wdiff
Pascal
People are write something like Kotlin html dsl
C++ does not have bound checking on [].
And people write std::string& as return type or new/delete std::string, or use iterators, and that is all unsafe. Pascal does not have anything like that
And they have bounds checking, which makes it almost impossible to get buffer overflows
There is an FPC-LLVM variant. Then it uses LLVM to do all the optimizations
It takes four times 10 seconds to compile the Pascal code to multiple platforms and like 4 minutes to run gradle and compile the Kotlin code.
I do not know why it would be so slow
The stacktrace said the crash came from SSE memcpy. I did not bother investigating it, since I have no users anyways.
I had an really old CPU (like i5-520m). Perhaps the code required some SSE feature, it did not have
That was libc. I also use Pascal, which has its own memcpy implementation. A while ago, they discovered it does not handle alignment correctly. (like it would adjust by 4-i when it should have adjusted by i) I thought that is what I get when using Pascal rather than a more commonly used language, but apparently nothing works