This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In case you missed it...

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally got this code to work!
 
Gabriel Claramunt
Ranch Hand
Posts: 375
Monad Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations!

... I miss the urgent questions forum... it was the best!
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw this and I wondered how fancy you were in implementing the generator. It looks like just random tokens, though. Hidden Markov chains of even length 2 would produce something that looked a lot more code-like. I wonder how long the chains would need to be before you usually get something that compiles?

Anybody ever played with this? HMC of English, I've played with. Code, not so much.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
I saw this and I wondered how fancy you were in implementing the generator. It looks like just random tokens, though...

Generator? I spent weeks writing this by hand in Notepad!

I nested some 50/50 "if" statements to vary the mix of keywords, new lines, numbers, tabs, etc. But it's very haphazard.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic