Live data from Hacker News

Gerbil – An opinionated dialect of Scheme designed for systems programming

github.com

31–40 of 80 posts

Re: Gerbil – An opinionated dialect of Scheme designed for systems programming

#34
post #8

Can anyone explain why there are so many implementations of Scheme written in Scheme? What is the point of doing that (apart from learning purposes)? I know, for example that people want Racket VM to be implemented in Chez Scheme because Chez is super fast. But what about all other implementations? Also, as I'm currently writing R5RS/Clojure hybrid in Kotlin, can anyone please share any _simple_ standard algorithm of…

Can someone explain these sort of questions?

Re: Gerbil – An opinionated dialect of Scheme designed for systems programming

#35
post #25
post #20

Here is some context on Racket vs Gerbil by a well-known Common-lisp Programmer, François-René Rideau : https://fare.livejournal.com/188429.html

Some excellent comments there. Looking around a bit, I came across a couple of implementations that might be of interest for those wanting to mash up "some kind of system programming" and "scheme": Bigloo (interpret / compile to executables, java byte code or experimentally dot.net) and larceny (interpret / direct compile to machine code / optionally via c): http://www-sop.inria.fr/mimosa/fp/Bigloo/ http://www.larcen…

I used Bigloo years ago to build Scheme bindings to a few of our C applications and libraries. It's so much more fun to script your applications - similar to how your can/could script The Gimp with SIOD (Scheme in one Defun) Scheme.

Re: Gerbil – An opinionated dialect of Scheme designed for systems programming

#36

(Mostly just hoisting Noel Welsh's comment to the top level) How will the expected upcoming move of Racket to the use of Chez affect the comparison between Gerbil and Racket? I'm trying not to set my expectations too high. BTW: RacketCon! This weekend!

I am super excited for Chez. If we see the speed we are look at a possible doubling in speed.

There is certainly a reason why he has stuck with Gambit and not my beloved Racket. This seems perfect for using Racket's macros. I just don't know Gambit's Macros well enough to compare them to Racket.

Here is the Bench Marks for Chez, Racket and Gambit https://ecraven.github.io/r7rs-benchmarks/

Re: Gerbil – An opinionated dialect of Scheme designed for systems programming

#37
post #18
post #17

Earlier quoted context omitted.

I think it's usually to provide extra features. For example, Gerbil has a more advanced macro and module system than most Scheme implementations. It's also very easy to do because you're bascially given an AST for your new Scheme that you transform into the base Scheme. Gerbil's docs have an example of this: https://github.com/vyzo/gerbil/blob/master/doc/tutorial/lang...

Can these 'more advanced' features be implemented in, say, Racket/Guile/Chez?

I don't know why they couldn't be. I'm pretty sure Gerbil's macro/module systems are heavily inspired by Racket.

Re: Gerbil – An opinionated dialect of Scheme designed for systems programming

#38
post #2

For the uninitiated, how does this compare to guile?

Based on Gambit-C: A scheme to C (or javascript... and I think there may be other targets) compiler. Comes with a Scheme->target compiler, then compile that code, and deploy. So, you write in Scheme, and deliver in C... Comes with an interpreter. Supports macros, etc. and Gambit supports easy C FFI, option for infix syntax, massive threading, full numeric tower Easy to hack on (in my opinion), and performs very well.…

Gambit is amazing. And gerbil brings a lot of batteries to it.

Re: Gerbil – An opinionated dialect of Scheme designed for systems programming

#40
post #25
post #20

Here is some context on Racket vs Gerbil by a well-known Common-lisp Programmer, François-René Rideau : https://fare.livejournal.com/188429.html

Some excellent comments there. Looking around a bit, I came across a couple of implementations that might be of interest for those wanting to mash up "some kind of system programming" and "scheme": Bigloo (interpret / compile to executables, java byte code or experimentally dot.net) and larceny (interpret / direct compile to machine code / optionally via c): http://www-sop.inria.fr/mimosa/fp/Bigloo/ http://www.larcen…

Try building a modern project in either. Anything non-trivial will highlight where Gerbil stands out.
Post reply on HN