Re: quick-and-dirty minimalistic LISP engine

2015-02-22 Thread MrSmith via Digitalmars-d-announce

With master dmd I'm getting

milf.d(2): Error: ';' expected following module declaration 
instead of is

milf.d(2): Error: no identifier for declarator aliced
milf.d(99): Deprecation: typedef is removed
milf.d(223): Error: basic type expected, not ;
milf.d(223): Error: no identifier for declarator int
milf.d(352): Error: no identifier for declarator CellCons
milf.d(352): Error: declaration expected, not 'body'
milf.d(359): Error: found 'body' instead of statement
milf.d(374): Error: expression expected, not 'body'
milf.d(380): Error: expression expected, not 'body'
milf.d(760): Error: expression expected, not 'auto'
milf.d(760): Error: found 's' when expecting ')'
milf.d(760): Error: found '=' instead of statement
milf.d(795): Error: declaration expected, not 'if'
milf.d(796): Error: declaration expected, not 'if'
milf.d(799): Error: declaration expected, not 'for'
milf.d(799): Error: declaration expected, not ')'
milf.d(801): Error: declaration expected, not 'if'
milf.d(802): Error: no identifier for declarator stloc
milf.d(802): Error: declaration expected, not '='
milf.d(804): Error: function declaration without return type. 
(Note that constructors are always named 'this')


Also, there was no alias usize = size_t;
There is no typedef and body is reserved word.

Here is what I got: 
https://gist.github.com/MrSmith33/9bedde7b0721a6b40666


Re: quick-and-dirty minimalistic LISP engine

2015-02-22 Thread ketmar via Digitalmars-d-announce
On Sun, 22 Feb 2015 10:40:24 +, MrSmith wrote:

p.s. do you know that `macro` is a keyword? and that it does nothing and 
TOKmacro is not used anywhere? ah, the hidden joys of D!

signature.asc
Description: PGP signature


Re: quick-and-dirty minimalistic LISP engine

2015-02-22 Thread ketmar via Digitalmars-d-announce
On Sun, 22 Feb 2015 10:40:24 +, MrSmith wrote:

 With master dmd I'm getting
 
 milf.d(2): Error: ';' expected following module declaration instead of
 is

that is exactly what i wanted. the only vanilla version is that in zip, 
the aliced version will not compile by vanilla DMD. didn't the line
`module milf is aliced;` rings the bell? Aliced is still D, but with 
additions i found right for me. so you are right: Aliced doesn't need 
alias for `size_t`, it has `typedef`, `body` is not keyword in it and so 
on.

signature.asc
Description: PGP signature


Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread Bill Baxter via Digitalmars-d-announce
On Thu, Feb 19, 2015 at 8:30 AM, ketmar via Digitalmars-d-announce 
digitalmars-d-announce@puremagic.com wrote:

 On Thu, 19 Feb 2015 06:50:29 -0800, Bill Baxter via Digitalmars-d-announce
 wrote:

  If you weren't deliberately making a joke, you might want to google
  milf.

 no jokes, it's Serious Bussiness! do you think that our project architect
 will allow to build our own milf without googling? or our security team
 don't know that i want to share our milf? it's all Official.


Okie dokie then.  :-)  Just wanted to make sure you knew what you were
doing.  But seems it's all under control.  Don't mind me.  You can go about
your business.

--bb


Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread via Digitalmars-d-announce

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!


Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread ketmar via Digitalmars-d-announce
On Thu, 19 Feb 2015 06:50:29 -0800, Bill Baxter via Digitalmars-d-announce
wrote:

 If you weren't deliberately making a joke, you might want to google
 milf.

no jokes, it's Serious Bussiness! do you think that our project architect 
will allow to build our own milf without googling? or our security team 
don't know that i want to share our milf? it's all Official.

signature.asc
Description: PGP signature


Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread Bill Baxter via Digitalmars-d-announce
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...



Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread ketmar via Digitalmars-d-announce
On Thu, 19 Feb 2015 07:39:31 +, Ola Fosheim Grøstad wrote:

 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!

same for me. i have a habit of downloading various D libraries and poking 
through the source, even if i'll never need to use that library. it's 
interesting to see how people think, and sometimes i can steal a trick.

signature.asc
Description: PGP signature


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread MattCoder via Digitalmars-d-announce

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.


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread via Digitalmars-d-announce

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...


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread ketmar via Digitalmars-d-announce
On Wed, 18 Feb 2015 22:31:00 +, 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.

signature.asc
Description: PGP signature


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread via Digitalmars-d-announce

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...


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread Stefan Koch via Digitalmars-d-announce

Oh boy.
the source is messy ...


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread ketmar via Digitalmars-d-announce
On Wed, 18 Feb 2015 11:56:51 +, 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. ;-)


signature.asc
Description: PGP signature


Re: quick-and-dirty minimalistic LISP engine

2015-02-18 Thread ketmar via Digitalmars-d-announce
On Wed, 18 Feb 2015 22:37:34 +, ketmar wrote:

 On Wed, 18 Feb 2015 22:31:00 +, 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).

signature.asc
Description: PGP signature