Hacker GitHub

← All repos

rongarret/ergolib

View on GitHub ↗ ★ 150 Common Lisp

A library designed to make programming in Common Lisp easier

22 mentions on Hacker News by 2 people: 0 stories, 22 comments · first 2015-02-19 · latest 2023-08-06

Mentions per year 22 mentions · busiest year 2015 (5)
20082026
  1. …called BINDING-BLOCK that eliminates many (though not all) of the parens in common code idioms: https://github.com/rongarret/ergolib/blob/master/core/bindin... It's also helpful in preventing code from crawling off the right side of the…
    comment by lisper · 2023-08-06 · in Lisp in Space
  2. I believe the OP's ergolib provides an example. From https://github.com/rongarret/ergolib/blob/master/core/bindin... , the examples show code like: ;;; (bb ;;; x 1 ;;; :db (y z) (foo) ;;; :mv (a b c) (bar) ;;; (do-something) ;;; :with…
    comment by eliben · 2023-01-28 · in Lisping at JPL Revisited
  3. …collect (dotimes (i 100) (if (primep i) (collect i))) to get a list of primes under 100. See https://github.com/rongarret/ergolib for an implementation of WITH-COLLECTOR and lots of other constructs that are IMHO the Right Way to write…
    comment by lisper · 2022-10-12 · in Eliminating FORMAT from Lisp (2003)
  4. …get updated, but I also use an ORM [1] that automatically updates my database tables too. [1] https://github.com/rongarret/ergolib/blob/master/layer1/sql....
    comment by lisper · 2022-04-22 · in Common Lisp Resources
  5. …(mcond (< a b) -1 (> a b) 1 0) The definition of MCOND is four lines of code and can be found here: https://github.com/rongarret/ergolib/blob/master/core/ergoba...
    comment by lisper · 2019-05-06 · in Clear is better than clever [pdf]
  6. …and DEFINE-MACRO, along with documentation (and a whole bunch of other stuff) can be found here: https://github.com/rongarret/ergolib Specifically: https://github.com/rongarret/ergolib/blob/master/core/ergocl...
  7. …exactly what it is. The modern descendant of this code, with documentation, can be found here: https://github.com/rongarret/ergolib though the CLOS wrapper is essentially unchanged from 1993.
  8. …and carry on despite the fact that it makes no sense. That's why I'm doing things like this: https://github.com/rongarret/ergolib
    comment by lisper · 2018-07-09 · in Why not program right?
  9. I'll see what I can do, but in the meantime: https://github.com/rongarret/ergolib In particular: https://github.com/rongarret/ergolib/tree/master/web The heavy lifting is all done by Hunchentoot: http://weitz.de/hunchentoot/
  10. …Also, if you really don't like parens, you can get rid of a lot of them using macros. See e.g.: https://github.com/rongarret/ergolib and in particular the binding-block (BB) construct. > 2 - Lisp doesn't look like or work like what I'm…
    comment by lisper · 2017-05-02 · in Not Lisp again (2009)
  11. If you use this library you can simply ignore most of the things on that page: https://github.com/rongarret/ergolib
    comment by lisper · 2017-05-02 · in Simplified Common Lisp reference
  12. …don't have to futz with emacs and slime. Also, this library smooths over some of CL's rough edges: https://github.com/rongarret/ergolib
  13. …Also, a shameless plug: I'm still coding in and writing about Lisp. Some currently active projects: https://github.com/rongarret/ergolib https://github.com/rongarret/BWFP https://github.com/rongarret/tweetnacl/blob/master/tweetnacl... And…
    comment by lisper · 2017-02-12 · in Lisping at JPL (2002)
  14. That's why I'm using a library ( https://github.com/rongarret/ergolib ) to smooth over some of Common Lisp's rough edges. The goal of the book, what I hope will make it unique, is to teach all of the basics without having to get too hung…
    comment by lisper · 2016-12-16 · in The Idea of Lisp
  15. …small tweaks to an implementation.) FWIW, here's my take on bringing CL into the 21st century: https://github.com/rongarret/ergolib and the beginning of an associated book: https://github.com/rongarret/BWFP > is there something inherent in…
  16. I've been working on one: https://github.com/rongarret/ergolib The beginnings of a book using this: https://github.com/rongarret/BWFP Hello-world looks like: (require :ergolib) (defpage "/hello" "Hello world") (ensure-http-server 1234)
    comment by lisper · 2016-10-07 · in NewLisp
  17. …infix) |NIL| ? infix(x=1.23+4.56) 5.79 ? sin(x*x+1) 0.03341171 ? The code for this is here: https://github.com/rongarret/ergolib
  18. …have been able to do even better. In fact, here it is in four lines of Common Lisp (using Ergolib - https://github.com/rongarret/ergolib ): (defun histogram (path) (bb l (split (file-contents path) t :test (fn (a b) (whitespacep b))) l…
    comment by lisper · 2015-08-19 · in More shell, less egg (2011)
  19. https://github.com/rongarret/ergolib
  20. …This is one of the reasons Common Lisp continues to thrive. [UPDATE]: You can find my code here: https://github.com/rongarret/ergolib Also, I forgot to mention another language-shrinker included in that library: REF. REF is a universal…
  21. You'll love my binding-block macro then. You can find it here: https://github.com/rongarret/ergolib
    comment by lisper · 2015-05-08 · in Why Lisp?
  22. Another effort along the same lines: https://github.com/rongarret/ergolib