News for hackers. Stuff that matters.
Re:Campher: Perl embedded in Go by jrockway on Sunday May 08, 2011 @01:56AM (#2525355)
Sounds useful, and campher.c looks like a piece of code that should be easy to repurpose for writing bindings to Perl in other languages.
Re:Campher: Perl embedded in Go by flogic on Sunday May 08, 2011 @01:32AM (#2525333)
This is one of the most awesome thing's I've ever seen. I guess it would be a bad idea to use it for production code... Too bad though.
Re:Campher: Perl embedded in Go by berntb on Sunday May 08, 2011 @05:09AM (#2525540)
Am I missing something?

My C days was a long time ago, but this looks like simple and elegant stuff to me. What would be the problem with production code? The Go language?

Re:Campher: Perl embedded in Go by bradfitz on Sunday May 08, 2011 @08:17AM (#2525761)
I think it might have a bug or two yet. Perl is reference counted and Go is garbage collected. Keeping those two synchronized was a bit tricky and I still fear I messed it up somewhere... I need to re-read the Perl docs on when I'm supposed to up & down the Perl refcounts.
Re:Campher: Perl embedded in Go by rbanffy on Sunday May 08, 2011 @09:50AM (#2525856)
There's no better way to find the bugs than to use the code in production ;-)

It was a great talk, BTW.

Re:Campher: Perl embedded in Go by flogic on Sunday May 08, 2011 @03:39PM (#2526557)
Perl's behind the scenes C code is rather gnarly. Trusting a new tool to get it right the first time is a bit much. Once I'm comfortable it's had some time to age properly, I'd be more than willing to deploy it.
Re:Campher: Perl embedded in Go by rwmj on Sunday May 08, 2011 @04:20PM (#2526637)
It's pretty easy to embed Perl in another language. Check out perl4caml ...

http://git.annexia.org/?p=perl4caml.git;a=summary

Re:Campher: Perl embedded in Go by rubashov on Sunday May 08, 2011 @10:05AM (#2525876)
Not to steal any thunder, but thought I'd point out Leont's great C++ perl bindings. https://github.com/Leont/libperl--

He has type safety and easy import/export of objects baked in.

Re:Campher: Perl embedded in Go by plbth on Sunday May 08, 2011 @06:14AM (#2525611)
:(