Re: Timing Comparison?

"Yuri Davidovsky (as work at disclosure dot ie)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
> On 2 Nov 2025, at 15:15, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote:
> 
> FWIW, SBCL has a pretty darn fast (but fastidious) compiled output on ARM. Impressive. I just wish it also had a CAPI.

This discussion went into tea-bagging LW compiler even faster than usual. With that said, it is quite remarkable what SBCL has achieved on the performance front, especially given that it is a free community driven project. If anything, this LW vs SBCL situation shows how challenging it is to write a highly performing compiler and it does not look like LW is going to catch up at this stage.

However, I was wondering the other day if that is really necessary for one to maintain a homebrewn compiler anymore. Surely in the 80s and 90s there was no other real option than to write your own, but given that we have llvm nowadays, writing your own compiler makes no real sense anymore, beyond the learning experience. The performance of the machine code that comes out of llvm is typically on par with hand written assembly and often exceeds that due to its intricate knowledge of the multitude of quirks of the CPUs it can compile for.

In a very seldom situation when it produces less efficient code one can simply drop into its IR (intermediate representation) and try writing the problematic bit by hand as its own meta-assembly format is very simple (or just use plain assembly if you must but then you will limit yourself to that specific CPU). But it would be very interesting to see still if SBCL would be able to outperform llvm in certain cases given how good its bespoke compiler is, but the cost of maintaining it is probably not worth it anymore even for SBCL who can be very proud of their work on it.

PS. do I love it when names look like Roman numerals. Check this out: LLVM. I am stoked.

1105

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.