Jump to page: 1 2
Thread overview
quick-and-dirty minimalistic LISP engine
Feb 18, 2015
ketmar
Feb 18, 2015
Stefan Koch
Feb 18, 2015
ketmar
Feb 18, 2015
MattCoder
Feb 18, 2015
ketmar
Feb 18, 2015
ketmar
Feb 19, 2015
Bill Baxter
Feb 19, 2015
ketmar
Feb 19, 2015
Bill Baxter
Feb 19, 2015
ketmar
Feb 22, 2015
MrSmith
Feb 22, 2015
ketmar
Feb 22, 2015
ketmar
February 18, 2015
here is my little contribution to the everlasting "how you shouldn't write the code" contest. this is very simple (yet fully working) LISP 1 implementation. it is slow like a dead snail, it trashing memory faster than you can say "WTF?!", but it does it's job.

this code was ripped out of closed-source project, so no git this time, sorry.

yes, it has both automatic function wrapping and ability to call LISP functions without manual list building.

and yes, it is really used in "real software".

Public Domain / WTFPL.

http://ketmar.no-ip.org/milf_for_the_masses.zip

February 18, 2015
Oh boy.
the source is messy ...
February 18, 2015
On Wed, 18 Feb 2015 11:56:51 +0000, Stefan Koch wrote:

> Oh boy.
> the source is messy ...

you have been warned! ;-) it was actually created within several hours to add simple scripting to another project, and i have no plans to improve it. so i decided to make it public, in a hope that it might be useful for somebody, and to show how one shouldn't write D code. ;-)


February 18, 2015
> http://ketmar.no-ip.org/milf_for_the_masses.zip

I'd like to see the source but on the other hand I'm so afraid to download this zip. :)

Matheus.
February 18, 2015
On Wednesday, 18 February 2015 at 21:22:56 UTC, MattCoder wrote:
>> http://ketmar.no-ip.org/milf_for_the_masses.zip
>
> I'd like to see the source but on the other hand I'm so afraid to download this zip.

Yep, I got aliced on the first line...
February 18, 2015
On Wed, 18 Feb 2015 22:31:00 +0000, Ola Fosheim Grøstad wrote:

> On Wednesday, 18 February 2015 at 21:22:56 UTC, MattCoder wrote:
>>> http://ketmar.no-ip.org/milf_for_the_masses.zip
>>
>> I'd like to see the source but on the other hand I'm so afraid to download this zip.
> 
> Yep, I got aliced on the first line...

yet you're still alive, so at least it's not fatal. i've cleaned the code a little since publication, but i don't want to remove Alice traces again and again, so let's consider code cleanup as an exercise for the reader. i know that everybody loves textbooks where the most interesting part is left as an exercise.

February 18, 2015
On Wed, 18 Feb 2015 22:37:34 +0000, ketmar wrote:

> On Wed, 18 Feb 2015 22:31:00 +0000, Ola Fosheim Grøstad wrote:
> 
>> On Wednesday, 18 February 2015 at 21:22:56 UTC, MattCoder wrote:
>>>> http://ketmar.no-ip.org/milf_for_the_masses.zip
>>>
>>> I'd like to see the source but on the other hand I'm so afraid to download this zip.
>> 
>> Yep, I got aliced on the first line...
> 
> yet you're still alive, so at least it's not fatal. i've cleaned the code a little since publication, but i don't want to remove Alice traces again and again, so let's consider code cleanup as an exercise for the reader. i know that everybody loves textbooks where the most interesting part is left as an exercise.

p.s. here is newer aliced version, if someone is still interested: http://ketmar.no-ip.org/milf.d

not really better than previous one, i just removed some copypasta and added automatic list deconstruction for primitives (see new `registerBuiltins()` for some samples).

February 19, 2015
On Wednesday, 18 February 2015 at 22:37:34 UTC, ketmar wrote:
> yet you're still alive, so at least it's not fatal

I became one year older, but I feel invigorated after this Alice encounter!

> and again, so let's consider code cleanup as an exercise for the reader.

That's quite ok. I enjoy just looking at D code by different authors to get a picture of how the language is used in real code. So thanks for sharing!

> i know that everybody loves textbooks where the most interesting part is left as an exercise.

Yes, especially if you get that part on an exam later on...
February 19, 2015
If you weren't deliberately making a joke, you might want to google "milf".
And if you were... Hmm interesting sense of humor you have there.
On Feb 18, 2015 11:40 PM, "via Digitalmars-d-announce" <
digitalmars-d-announce@puremagic.com> wrote:

> On Wednesday, 18 February 2015 at 22:37:34 UTC, ketmar wrote:
>
>> yet you're still alive, so at least it's not fatal
>>
>
> I became one year older, but I feel invigorated after this Alice encounter!
>
>  and again, so let's consider code cleanup as an exercise for the reader.
>>
>
> That's quite ok. I enjoy just looking at D code by different authors to get a picture of how the language is used in real code. So thanks for sharing!
>
>  i know that everybody loves textbooks where the most interesting part is
>> left as an exercise.
>>
>
> Yes, especially if you get that part on an exam later on...
>


February 19, 2015
On Thursday, 19 February 2015 at 14:50:43 UTC, Bill Baxter wrote:
> If you weren't deliberately making a joke, you might want to google "milf".

What do you mean? It was my birthday! I became one year older!
« First   ‹ Prev
1 2