Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2013-06-03

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:24 mikemol bugmagnet: If I did that, there would be way, way, way too much traffic.
00:25 mikemol That said, if someone wants to set up #rosettacode-activity and put a bot in there pulling from the Recent Changes feed, that'd make sense.
01:45 embee new tasks might be interesting...
02:43 ttmrichter New task: generate using some form of AI a fully-specced new task for Rosetta Code, complete with implementation in two languages using different programming paradigms.
02:44 mwn3d1 joined #rosettacode
02:48 bugmagnet ttmrichter: whoa, ratchet it back a bit there. How about something that just uses two different language (perhaps on different platforms). For example, back in the 90s I wrote a solution which picked up emails from a cc:Mail postbox, parsed library search requests using Euphoria, passed them off to a Mac running Hypercard, grabbed the result and stuffed it back into a cc:Mail message to the original requestor.
02:49 bugmagnet mikemol: I've never written a bot before. Where do I find info on how to do that?
02:50 ttmrichter bugmagnet: I use multiple languages for lunch!
02:50 bugmagnet And could that be made into an RC task? or are there only so many languages one can do bots in?
02:50 ttmrichter Wait a second.  That doesn't make any sense.
02:50 ttmrichter Let me try again.
02:50 ttmrichter ...
02:50 ttmrichter OK, I got nothin'.
02:51 * bugmagnet got his current job because he could do multiple languages
02:52 ttmrichter Been there, definitely.
02:52 ttmrichter I've had to do C, Forth, assembler (in two different ISAs) and some legacy Pascal in one job.
02:52 bugmagnet Cool
02:53 ttmrichter It helps that I'm a language junkie.
02:53 ttmrichter As long as there's not too much mathwank in it, I'm interested in most programming styles.
02:53 bugmagnet At the moment I'm doing C#, PHP, javascript and the in-house language, Protium. Back in 2006-8 they had me doing Assembler, Ada, Fortran and Perl. I wish they'd ask me to do COBOL.
02:55 ttmrichter At the moment I'm not doing anything.  Haven't done anything in over a decade.  Quit the industry.  Now I just do what I like.  Which currently is Erlang, Lua, Prolog and Mercury.  I just got an FPGA devkit, though, so I'll probably start toying with VHDL soon.  :)
02:55 sorear AI? >_>
02:56 ttmrichter Nope.
02:56 ttmrichter Just for fun.  :)
02:58 mwn3d joined #rosettacode
02:59 bugmagnet mikemol: I had your thought after you! http://rosettacode.org/wiki/Village_Pump:Home/IRC/wiki_bridge
02:59 fedaykin "Rosetta Code:Village Pump/IRC/wiki bridge - Rosetta Code" http://rldn.net/Bu1
03:01 ttmrichter bugmagnet: Actually, thinking about the multi-language thing, it would be an interesting task to have some kind of inter-language procedural call as a task.  Say have an adder in one language called in another language.  Designing the task and specifying it properly could be a challenge, though.
03:02 ttmrichter Oh, how does one flag spam in a MediaWiki?
03:09 bugmagnet Low priv folk like myself have only {{remove}} which we insert into the top of the spam. I usually leave one line of it behind and scrub the rest.
03:12 bugmagnet ttmrichter: the other challenge with drafting that task is that you've got languages like FBSL which have dynamic assembler and C modes. Lua has something similar and I hear the Perl6 folk are discussing the possibility as well
03:13 ttmrichter Well that's an implementation detail.  The task would be generally worded as "write a library that exposes X function in one language and use it in the target language".
03:13 ttmrichter How they integrate the languages (embedding, IPC, etc.) is a matter for them to figure out.
03:14 ttmrichter The exposed function needs to be pretty trivial so that you're focusing on the right task (inter-language communication).
03:19 bugmagnet good point
03:19 bugmagnet that way someone could do a Windows CMD + C solution just as reality as a Haskell + Forth
03:19 bugmagnet s/reality/readily
03:20 mwn3d1 joined #rosettacode
04:09 n0z3d joined #rosettacode
05:00 barneybook joined #rosettacode
05:30 ttmrichter joined #rosettacode
05:32 ttmrichter joined #rosettacode
05:32 ttmrichter joined #rosettacode
06:14 mwn3d joined #rosettacode
07:52 embee what is inter-language c ommunication other than language agnostic rpc? take XMLRPC or any other rpc protocol that is not restricted to one language
07:53 embee so the task would be about implementing a client and server of such a protocol
08:02 bugmagnet does it have to be at such a high level of abstraction? Or do we have two tasks, one for RPC and one where, for example, from my own programming past, a COBOL routine links and calls a Fortran one?
08:02 ttmrichter embee: A function compiled in C and linked into a Pascal program?
08:03 bugmagnet that kind of thing, yeah
08:03 ttmrichter A function written in Lua and executed in Erlang through the Erlang implementation of it?
08:03 bugmagnet can you do that?
08:03 ttmrichter A function written in Mercury and communicating with a native Erlang program using the Erlang back-end?
08:03 ttmrichter There's a myriad of ways to have stuff written in one language that talks to another.
08:04 ttmrichter A Prolog predicate being called from Java?
08:04 ttmrichter A Java class being manipulated via Prolog?
08:04 ttmrichter There's WAAAAAAAAAAAAAAAAAAAAAAAAAAAAY more than just RPC out there.
08:05 bugmagnet oh yeah
08:06 embee oh, that is usually done with a foreign functions interface
08:06 bugmagnet I suppose the way that Tk gets called through Tkinter is an example of that WAAAA....Yness
08:06 embee not every language has that, but it is still a good idea for a task
08:07 ttmrichter Not every language has networking capabilities.  :)
08:07 embee and most languages only support C that way i guess
08:07 ttmrichter You would be surprised.  ;)
08:07 embee *nod*
08:08 embee now that i think of it, you are right
08:09 ttmrichter C only became the lingua franca in the '80s and it's been slowly replaced with other tools after the '90s.
08:09 ttmrichter (Emphasis on slowly.)
08:10 embee there would be a task for each language to call: call a javafunction, allow java to call a function in your language. call an objective-c function, etc...
08:10 ttmrichter Or you could just have a task that says "call a function/predicate/whatever in another language from your language" and let people go wild.
08:10 ttmrichter You could do all sorts of creative and fun stuff that way.   :)
08:12 embee but harder to compare
08:13 embee and it makes sense to have all combinations. usually this is needed to caall something existing, and then i'd want to know how to use that from various languages
08:13 embee how do i use this special math library written in fortran from python, and from perl...
08:15 embee but that doesn't negate your point that you can do al sorts of creative stuff
08:16 ttmrichter_ joined #rosettacode
08:23 bugmagnet Hmm ... I do lots of creative stuff by compiling VB6/Fortran/ASM etc into COM DLLs and then calling them from scripting languages, eg VBScript, JScript, Perl etc
08:23 bugmagnet Other platforms might use CORBA
08:24 ttmrichter Others may use FFI libraries or direct FFI interfaces.
08:25 ttmrichter You could even do something like write a program in any language that takes its arguments from the command line and returns the result in text then "call" that from awk, using the returned string as the value for further calculation.
08:25 bugmagnet task (not being at all serious with this): write an SMS sender in one language; demonstrate its use from another.
08:27 bugmagnet ttmrichter: yours sounds interesting ... *n*x like, in fact, which is great for piping stuff between different things
08:28 mikemol joined #rosettacode
10:06 barneybook|2 joined #rosettacode
14:12 mwn3d joined #rosettacode
15:20 mwn3d joined #rosettacode
19:37 BenBE joined #rosettacode
19:37 BenBE joined #rosettacode
20:25 mwn3d1 joined #rosettacode
21:06 mwn3d joined #rosettacode
22:21 mwn3d1 joined #rosettacode
23:04 mwn3d joined #rosettacode
23:40 mwn3d1 joined #rosettacode

| Channels | #rosettacode index | Today | | Search | Google Search | Plain-Text | summary