akkartik/wart
View on GitHub ↗ ★ 145 C++ archived
An experimental, small, readable Lisp with thorough unit tests and extensible functions/macros.
30 mentions on Hacker News by 2 people: 0 stories, 30 comments · first 2011-02-20 · latest 2023-08-07
20082026
-
Also my https://github.com/akkartik/wart
comment by akkartik · 2023-08-07 · in We are pleased to announce that DreamBerd has been renamed to C -
…you lost it. Inside macros, you lost it. But it was still useful in a wide variety of situations: https://github.com/akkartik/wart/blob/master/004optional_par... However, when it came to foo(1 2 3) I ended up just saying no. It has…
comment by akkartik · 2017-06-08 · in D-Expressions: Lisp Power, Dylan Style (1999) [pdf] -
…first-class apply that works on both functions and macros. Not even Kernel can do that. $ git clone https://github.com/akkartik/wart $ cd wart $ ./wart ready! type in an expression, then hit enter twice. ctrl-d exits. mac (foo x) `(+ ,x 1)…
comment by akkartik · 2017-02-06 · in Building a Lisp from scratch with Swift -
…resonates very much with my approach to organizing programs: 1. https://github.com/akkartik/wart/blob/91356d9385/organizatio... 2. http://akkartik.github.io/mu/html/000organization.cc.html ( https://github.com/akkartik/mu/
comment by akkartik · 2017-01-07 · in Lispy sets -
…lines. 2. Indentation is not sensitive inside parens. More info, unpacking the implications: https://github.com/akkartik/wart/blob/47e3572a29/004optional... Infix works by using a disjoint set of 'operator characters' that isn't available…
comment by akkartik · 2016-06-27 · in Spry: a programming language inspired by Smalltalk/Rebol and written in Nim -
…for example, the use of :from in a webserver implementation that makes everything so much clearer: https://github.com/akkartik/wart/blob/ce64882c69/071http_ser... . However, I've forced myself to harden my heart and ruthlessly ignore…
comment by akkartik · 2015-10-16 · in Show HN: `diff arc0 arc3.1` -
…naming scheme; I instinctively do that for branches. After reading through a few files starting at https://github.com/akkartik/wart/blob/master/literate/000org... it became pretty clear how wart worked, pretty quickly. I'm mainly wary of…
comment by laarc · 2015-10-16 · in Show HN: `diff arc0 arc3.1` -
…project of implementing macros, I've implemented a simple lisp with first class macros (fexprs): http://github.com/akkartik/wart . Moreover, you can write anonymous macros out of more primitive constructs. Over time it's accumulated other…
comment by akkartik · 2014-04-04 · in Learn C and build your own Lisp -
…each piece of functionality augments the space of inputs my program can address. See, for example, https://github.com/akkartik/wart/blob/3039fe6d03/literate/02... . I suspect reading other people's 'code' could be an order of magnitude…
comment by akkartik · 2013-11-14 · in How I Got a 2x Speedup With One Line of Code -
Ah, I've been trying to do just this. Version 1: http://github.com/akkartik/wart Version 2 (in progress): https://github.com/akkartik/wart/tree/master/literate
comment by akkartik · 2013-09-04 · in Reading Other People's Code (2012) -
…ip url) (when ignored.user (kill s 'ignored)) (submit-item user s) (maybe-ban-ip s) "newest")) [1] https://github.com/akkartik/wart#readme [2] http://arclanguage.org/item?id=16495
comment by akkartik · 2013-05-17 · in Source Code Typography -
…unclear if it enables anything useful , but still a cool idea. (I have an interest in this space: http://github.com/akkartik/wart#readme )
comment by akkartik · 2013-01-01 · in A tiny language called Z -
…tests on the lisp function will continue to pass if I did the translation right. There's a README ( http://github.com/akkartik/wart#readme ) that tries to convey my goals, but I haven't had too many people read it yet. I'd love to hear…
comment by akkartik · 2012-07-08 · in All the Ganglia. The Nerves. On leaving a programming project unfinished. -
…to get myself committing more frequently. Here's a kinda-random sample from my current obsession: http://github.com/akkartik/wart/compare/587e30dc51...8da3d3c...
comment by akkartik · 2012-07-08 · in All the Ganglia. The Nerves. On leaving a programming project unfinished. -
I actually have a toy interpreter that does this: http://github.com/akkartik/wart#readme
comment by akkartik · 2012-06-16 · in I can’t believe I’m praising Tcl -
…with just types. For example, here are some tests from the lisp interpreter I've been working on: http://github.com/akkartik/wart/blob/8a8cf96816/030.test You're right that tests aren't close to code. But that can be good or bad. Since…
comment by akkartik · 2012-06-08 · in Study of 49 programmers: static type system had no effect on development time -
Nice to meet ya! I've been working on a lisp as well: http://github.com/akkartik/wart#readme
comment by akkartik · 2012-05-29 · in A Codewalk for Arc3's first-class(runtime) macros -
…preserved. I'm ambivalent about long functions, but am much more draconian about complex commits: http://github.com/akkartik/wart
comment by akkartik · 2012-04-08 · in The Tyranny of the Diff -
…of real macros. The clearest I've been able to come up with is an fexpr-based interpreter: http://github.com/akkartik/wart [1] From nearly 2 years ago: http://news.ycombinator.com/item?id=1468345
comment by akkartik · 2012-02-18 · in Lisp: It's Not About Macros, It's About Read -
…all a work in progress. I'm still playing with these ideas and working through their consequences. http://github.com/akkartik/wart/tree/unstable is built in this spirit. But the goal is clear: to attack the cruft that accumulates (like…
comment by akkartik · 2012-02-04 · in Every API is Flawed -
…I ended up with a lisp-2. (Lately I've been building it in naked C to get out of that constraint: http://github.com/akkartik/wart/tree/unstable ) I wasn't aware of no-applicable-method ; thanks for that pointer.
comment by akkartik · 2011-11-29 · in Show HN: a Lisp that uses JSON instead of S-expressions (in .js) -
…Here's a webserver that is nice to read because of a crucial keyword arg (it starts with a colon): http://github.com/akkartik/wart/blob/460565a2e0/064http-serv... Like in python the keyword arg is always optional. You could delete it from…
comment by akkartik · 2011-11-29 · in Show HN: a Lisp that uses JSON instead of S-expressions (in .js) -
http://github.com/akkartik/wart Arc-like names, python-like keyword args and indent-sensitivity.
comment by akkartik · 2011-10-24 · in Let me see your Lisp implementation. Here's mine. -
…it later. I can get the code back into my head faster . I use lisp -- and half my code is tests. http://github.com/akkartik/wart
comment by akkartik · 2011-10-20 · in Rich Hickey: "Simple Made Easy" from Strange Loop 2011 [video] -
…You're right, I use hashes for that[1]. I'm talking about referring to commits in later commits: http://github.com/akkartik/wart/commit/0f087dbaee . It's immediately obvious that I'd broken the app for a dozen commits. If the project were…
comment by akkartik · 2011-09-07 · in GitHub - Shiny new commit styles -
…which keep the narrative of a codebase coherent and chugging along. Here's an example changelog: http://github.com/akkartik/wart/commits/unstable . Criticisms?
comment by akkartik · 2011-09-06 · in GitHub - Shiny new commit styles -
…has pervasive python-style keyword args, which I find makes code easier to read. See, for example, https://github.com/akkartik/wart/blob/master/063http-get.wts... . Tokens starting with a ':' are keyword args. Removing them doesn't change…
comment by akkartik · 2011-05-23 · in Lisp Lacks Visual Cues -
…more distracting than that of the article. (I come from the 'less code is better' camp in lisp http://github.com/akkartik/wart , so I have no axe to grind.)
comment by akkartik · 2011-04-12 · in Imagine a Beowulf Cluster of JavaScript Frameworks -
…a simple grep. (Hopefully it's not just that it's just me hacking on it.) Here's my implementation: http://github.com/akkartik/wart
comment by akkartik · 2011-03-15 · in Functional Thinking after OO -
…stay as side-effect-free as possible. And I've been having a lot of fun doing TDD. See, for example, http://github.com/akkartik/wart which has about as many LoC in tests as in code.
comment by akkartik · 2011-02-20 · in Ask HN: Is TDD/BDD hampering your startup's agility?