Timeline for answer to Ungolf my tinylisp code by Mukundan314
Current License: CC BY-SA 4.0
Post Revisions
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 8, 2025 at 14:40 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-9 bytes by inlining `return`
|
| Feb 8, 2025 at 14:24 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-2 bytes by swaping unparsed part and the actual return
|
| Feb 8, 2025 at 8:45 | history | edited | Mukundan314 | CC BY-SA 4.0 |
Add explanation, more testcases and fix bug in ungolfed code
|
| Feb 6, 2025 at 3:10 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-2 bytes by using if to convert nil to 0 rather than avoiding it
|
| Feb 5, 2025 at 19:45 | history | edited | Mukundan314 | CC BY-SA 4.0 |
Explain that it is now able to run larger inputs
|
| Feb 5, 2025 at 19:32 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-8 bytes by handling indent without a separate function
|
| Feb 5, 2025 at 14:48 | history | edited | Mukundan314 | CC BY-SA 4.0 |
add better comments in ungolfed version
|
| Feb 5, 2025 at 14:00 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-2 bytes by removing tail-call recursion in sym
|
| Feb 5, 2025 at 2:48 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-1 byte by removing tail-call recursion
|
| Feb 4, 2025 at 18:51 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-10 bytes by rearranging `if` in `wrap` to remove a `concat` call
|
| Feb 4, 2025 at 18:46 | history | edited | Mukundan314 | CC BY-SA 4.0 |
-9 bytes by rearranging `if` in `wrap` to remove a `concat` call
|
| Feb 4, 2025 at 3:12 | history | edited | Mukundan314 | CC BY-SA 4.0 |
use @DLosc's and @emanresuA's suggestions
|
| Feb 3, 2025 at 21:18 | comment | added | emanresu A |
Also, since the entrypoint isn't referenced anywhere else in the code, it can just be an anonymous lambda (q((S)(E(chars S)()(
|
|
| Feb 3, 2025 at 21:01 | comment | added | DLosc |
Beautiful! On an initial read-through, I only spotted a couple of minor golfs: remove the space after contains?, and replace (list(i(l(h(h(t L)))3)32 10)) with (c(i(l(h(h(t L)))3)32 10)()).
|
|
| Feb 3, 2025 at 19:33 | comment | added | Mukundan314 | I believe there is still a lot of room for improvement, but for now just happy that it works. | |
| Feb 3, 2025 at 19:31 | history | answered | Mukundan314 | CC BY-SA 4.0 |