Language:
switch to room list switch to menu My folders
Go to page: First ... 63 64 65 66 [67] 68 69 70 71 ... Last
[#] Thu Aug 19 2010 20:03:47 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


The use of Doc Scott for Haskell is -perfect.- Great Scott, it's all out of order!

[#] Thu Aug 19 2010 20:08:27 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

lukpio 8 points 7 months ago[-]
Someone in the #haskell IRC channel mentioned the .reverse state monad. explaining that it used the state from the next computation and passed it to
the previous one.

http://www.reddit.com/r/lisp/comments/aqcqx/how_a_common_lisp_programmer_views_users_of_other/

*pure* *fucking* *genius*

[#] Thu Aug 19 2010 20:12:23 EDT from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Just for Spell.

http://lukepalmer.wordpress.com/2008/08/10/mindfuck-the-reverse-state-monad/

I don't even pretend to understand this.

[#] Thu Aug 19 2010 23:25:12 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Can I throw y'all off on a really awful detour for a little while?

Ok

What do all of you developer types think is the 'best' embeddable scripting extension language?  (Open source candidates only, please.)



[#] Fri Aug 20 2010 01:50:00 EDT from dothebart @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

so, what does it say?

yes. with high frequent allocs/deallocs you get a C++ program down to the speed of a java...

follow the link for the one guy doing some optimization about less frequent allocs, zap! ten times faster again.

i'm missing c-carpet or mono here though.



[#] Fri Aug 20 2010 01:53:11 EDT from dothebart @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

lua seems to be an often taken choice.

I'd rather prefer not to include it, but have something like a milter to forward certaint stuff to. So once a library for the other side is in place, and wrappers are there, you can use any language you like; plus it won't harm the server itself.



[#] Fri Aug 20 2010 08:11:43 EDT from IGnatius T Foobar @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

Yeah, I've been looking around at the various "embeddable" language interpreters.
JavaScript is a language I like a lot, but all of the available interpreters are either clumsy, bloated, or bring a lot of baggage along with them. Scheme is designed for embedding but the language sucks. Python ... it's just too much. Lua seems like a nice small interpreter, is GPL-compatible, doesn't bring along any requirements other than itself, and the language seems reasonable.

I was wondering whether I'm missing any good candidates. Something with C-like syntax would be wonderful.

[#] Fri Aug 20 2010 12:00:22 EDT from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

http://lukepalmer.wordpress.com/2008/08/10/mindfuck-the-reverse-state-m

onad/

Isn't this functionally the same as recursion (sort of) where the caller (the previous guy) gets the results of the next function call?
Not exactly, but you see what I'm getting at.

[#] Fri Aug 20 2010 12:01:24 EDT from Ford II @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

I was wondering whether I'm missing any good candidates. Something
with C-like syntax would be wonderful.

AWK!

[#] Fri Aug 20 2010 12:34:03 EDT from Spell Binder @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Have you conisdered TCL? The general syntax isn't C-like, but numerical and boolean expressions are. Plus, TCL is designed specifically to create "safe" interpreters so you can control the environment in which a foreign script runs.
TCL Binder

[#] Fri Aug 20 2010 13:11:19 EDT from Spell Binder @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Re: The reverse state monad.

That is a bit mind-bending. The real meat of it are these lines:

let (a,s'') = sf s'
(b,s') = runRState (f a) s
in (b,s'')

The first line runs the first computation, sf, passing it the state from the second computation, s'. The second line runs the second computation, f, passing it the result from the first computation, a, and the original state from before the first computation, s.

The mind-bender is that s' depends on the result of "f a", but "a" depends on the result of "sf s'". I think the reason this works in Haskell is because of lazy-evaluation. Unless a value is required to compute an expression, that value never gets computed.

But I may be wrong...
Reverse Binder

[#] Fri Aug 20 2010 15:34:10 EDT from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

me still thinks a milter alike solution is the best way to go.

citserver is doing plenty a lot inline, bringing an interpreter into the game adds a real lot.



[#] Fri Aug 20 2010 15:46:45 EDT from Nite*Star @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

Aug 20 2010 1:53am from dothebart @uncnsrd
Subject: Re:
lua seems to be an often taken choice.

Eeeeek, not lua!

The MMORPG/open-source project I used to be involved with uses lua.

The new MMORPG/open-source project I'm currently involved with, which forked from the old one from an earlier version, uses Python.

As per the devs (and I'ved noticed this as well): lua is too buggy and just too GDF'n slow....

[#] Fri Aug 20 2010 15:51:16 EDT from Nite*Star @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

OK, let's see if you programmers out there are as tickled pink by this as my friends were (they found this in the code they had forked from and got all up in arms ... me, I'm not quite certain what it means .... )

if (!(cpl.runkey_on = cpl.runkey_on ? FALSE : TRUE))

[#] Fri Aug 20 2010 16:19:16 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I'd revoke someone's commit access for writing code like that.

[#] Fri Aug 20 2010 17:58:32 EDT from Nite*Star @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Can you explain it to me? :/ 'cuz I don't know what it says. Remember, last time I programmed was in BASIC v7.0 ... :p

[#] Fri Aug 20 2010 21:02:28 EDT from Sig @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I spent a year in high school with Pascal and the main thing I learned is that linear thought makes my brain cry.
.
I spend a lot of time jumping to intuitive conclusions and then trying to justify them.

[#] Fri Aug 20 2010 21:50:22 EDT from Nite*Star @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

No idea. :/

[#] Sat Aug 21 2010 02:10:05 EDT from johnnyl @ Uncensored

Subject: Re:

[Reply] [ReplyQuoted] [Headers] [Print]

 

Fri Aug 20 2010 08:11:43 AM EDT from IGnatius T Foobar @ Uncensored Subject: Re:
Yeah, I've been looking around at the various "embeddable" language interpreters.
JavaScript is a language I like a lot, but all of the available interpreters are either clumsy, bloated, or bring a lot of baggage along with them. Scheme is designed for embedding but the language sucks. Python ... it's just too much. Lua seems like a nice small interpreter, is GPL-compatible, doesn't bring along any requirements other than itself, and the language seems reasonable.

I was wondering whether I'm missing any good candidates. Something with C-like syntax would be wonderful.

Uh, JavaScript is Scheme in C's clothing. Python is Lisp , except it's very slow. Lua is nice too, but a bit slow.



Go to page: First ... 63 64 65 66 [67] 68 69 70 71 ... Last