Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

DSLs

Name: Anonymous 2011-06-17 11:07

What do you think about Ruby-style DSLs? Like this one:

Project.configure do |config|

  # project configuration
  config.frequency = 20
  config.ruby = '1.9.2' # Your server needs to have rvm installed for this setting to be considered
  config.environment_variables = {"FOO" => "bar"}
  config.after_build Proc.new { |build, project| `touch ~/Desktop/actually_built`}
  config.timeout = 10.minutes
  config.command = 'make' #to be used if you're using anything other than rake

  # callbacks and notifications

  # sending mail
  config.on_build_completion do |build,notification,previous_build_status|
    notification.from('from@example.com').to('to@example.com').with_subject("build for #{build.project.name} #{build.status}").send
  end

  # code to deploy on staging
  config.on_build_success do |build,notification|

  end

  # post to IRC channel & send mail
  config.on_build_failure do |build,notification|

  end

  # post to IRC channel & deploy on staging
  config.on_red_to_green do |build,notification|

  end

end


I think it's pretty cool, you can't be as expressive in Lisp.

Name: Anonymous 2011-06-17 11:18

Reported.

Name: Anonymous 2011-06-17 11:23

>>2
LOLWUT

Name: Anonymous 2011-06-17 11:26

Name: Anonymous 2011-06-17 11:29

>>4
Too bad Ruby is AS SLOW AS RUBY.

Name: Anonymous 2011-06-17 11:35

>>4
It's still fast enough for many tasks. Sometimes readability and conciseness are more important than speed, that's where Ruby wins 65x over Sepples.

Name: Anonymous 2011-06-17 11:43

I wasn't for a while. Anything interesting happened about Lisp DSL? Any new languages around here?

Name: Anonymous 2011-06-17 11:50

>>7
I wasn't for a while.
Welcome back, my friend.

Anything interesting happened about Lisp DSL?
Turns out the Lisp DSL's author was also the exaggeratedly antisemitic troll, which made me slightly lose faith in humanity.

Any new languages around here?
Some other fellow posted a sample of his unnamed toy language. ref: http://dis.4chan.org/read/prog/1307217729/49,55,60

Name: Anonymous 2011-06-17 11:56

>>6
Yes but then you might as well use Lisp or Scheme since they're concise and readable if you're not retarded. They're only 2-3 times slower than C.

Name: Anonymous 2011-06-17 12:00

>>9
I have an IQ of around 150 and I find your parens-ridden languages incredibly unreadable and unaesthetic.

Name: Anonymous 2011-06-17 12:06

>>10
Yet you're still not intelligent enough to use an editor which highlights the matching parenthesis making s-experessions tolerable.

Name: Anonymous 2011-06-17 12:10

>>9
U MENA HASKAL

Name: Anonymous 2011-06-17 12:12

>>11
I am intelligent enough to know that if a language requires a special editor just to work with it, then the language is broken.

Name: Anonymous 2011-06-17 12:17

i think its gay

Name: Anonymous 2011-06-17 12:24

>>13
I can read Racket just fine with DrRacket. It's not hard if you just try.

Name: Anonymous 2011-06-17 12:26

>>13
a special editor
Is syntax highlighting too special for you? Do you write code in notepad.exe?

Name: Anonymous 2011-06-17 12:39

>>16
Yes.

Name: Anonymous 2011-06-19 1:41

>>4
http://shootout.alioth.debian.org/
never understood their cryptic graphics. how and what do they compare?

Name: Anonymous 2011-06-19 2:29

>>18
The run languages compiler/interp. on Ubuntu, with 10-100 seconds synthetic benchmarks and its the only site with any authority among performance crowd.

Name: Anonymous 2011-06-19 7:49

>>19
Does it include compile time? What If I precompute most of the answer in macro? What is I use inline assembly? What their fucking diagrams mean?

Name: /prog/ 2011-06-19 8:07

I'm afraid I can't help you, I'm far too much of a fag.  If anyone on here isn't a huge fag, maybe they can help you.  If no one helps you, I would presume, if I were you, that everyone who didn't help you but could have was too busy thinking of potential cocks they would like to suck.

Name: Anonymous 2011-06-20 4:41

http://shootout.alioth.debian.org/
This site is bullshit. Whoever takes it seriously is and idiot.

Name: Anonymous 2011-06-20 5:05

>>22
After the miracles I've experienced with caching and JIT-compilers... You should take that as truth.

Name: Anonymous 2011-06-20 5:07

>>23
Some interpreters even have a good GC.

Name: Anonymous 2011-06-20 5:08

daylight is coming!

Name: Anonymous 2011-06-20 5:22

>>25
Not if you live in Japan ^_^

Name: Anonymous 2011-06-20 6:03

>>26
What if I don't live in Japan?

Name: Anonymous 2011-06-20 6:36

>>27
Then your a baka gaijin ~_^

Don't change these.
Name: Email:
Entire Thread Thread List