Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2011-03-04

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

All times shown according to UTC.

Time Nick Message
00:09 mwn3d_phone [[ScriptedMain]] <--what is going on here??
00:09 fedaykin http://rosettacode.org/wiki/ScriptedMain
00:10 shortcircuit mwn3d_phone: Looks like it's a pattern for languages for which the same source file could be used as a library or as a program.
00:11 mwn3d_phone What?
00:12 shortcircuit Hm. Need a good example.
00:13 shortcircuit I think most of the examples in that task page are probably incorrect for the intent of the author.
00:15 shortcircuit At first glance, I think the Python, Ruby, Perl and newLisp examples are probably the closest to what the author was looking for.
00:16 shortcircuit Basically, "if this file is being loaded into a larger program, do one thing. If it's being run directly, do another"
00:16 shortcircuit Where "do another" is defined as having a main() function that's called, instead.
00:17 mwn3d_phone I don't see that demonstrated
00:18 shortcircuit The Python example demonstrates it directly. Let me see which others do it fairly directly.
00:18 shortcircuit The Perl example looks like it's doing it directly.
00:18 mwn3d_phone The python example shows it?
00:19 mwn3d_phone Needs explanation
00:19 mwn3d_phone I wish I had ever heard the phrase "scripted main"
00:19 shortcircuit ?
00:20 shortcircuit I don't know if 'scripted main' has a direct definition, I'm just going by what I think the task description means.
00:20 mwn3d_phone Yeah...it needs work
00:20 shortcircuit Hm.
00:20 mwn3d_phone Maybe the creator will be able to help
00:21 shortcircuit Hm.
00:21 shortcircuit The C implementation might be pretty close.
00:21 shortcircuit It would need an additional function, and added explanation that the additional function is exported.
00:22 mwn3d_phone I think if they're all correct they need textual explanations
00:22 shortcircuit In that case, (on Windows) I could call LoadLibrary("Path to EXE"), and then call the exported AdditionalFunction.
00:22 shortcircuit I'm trying to figure out if the Java example is correct or not.
00:23 shortcircuit The examples which say "X has scripted main by default" really need to demonstrate how to _avoid_ scripted main in that case.
00:23 mwn3d_phone Yeah it looks like it just does some random introspection
00:25 mwn3d_phone Not sure
00:25 mwn3d_phone Oops...wrong channel
00:54 Mathnerd314 left #rosettacode
01:11 Mathnerd314 joined #rosettacode
01:57 FireFly left #rosettacode
03:33 mwn3d_phone left #rosettacode
03:39 parsleyfirefly left #rosettacode
03:41 mwn3d_phone joined #rosettacode
04:42 Coderjoe__ is now known as Coderjoe
10:15 FireFly joined #rosettacode
11:10 BenBE2 left #rosettacode
11:14 BenBE joined #rosettacode
13:34 Mathnerd314 left #rosettacode
13:51 parsleyfirefly joined #rosettacode
14:28 MigoMipo joined #rosettacode
14:49 BenBE2 joined #rosettacode
14:49 BenBE2 left #rosettacode
14:49 BenBE2 joined #rosettacode
14:51 BenBE2 left #rosettacode
15:06 FireFly left #rosettacode
15:06 Hypftier left #rosettacode
15:07 parsleyfirefly left #rosettacode
15:07 CodeBlock left #rosettacode
15:07 eel left #rosettacode
15:07 Coderjoe left #rosettacode
15:07 BenBE left #rosettacode
15:07 mbishop left #rosettacode
15:07 dom96 left #rosettacode
15:07 p6eval left #rosettacode
15:07 slavik1 left #rosettacode
15:07 MigoMipo left #rosettacode
15:07 opticron left #rosettacode
15:07 TimToady left #rosettacode
15:07 fedaykin left #rosettacode
15:07 Util left #rosettacode
15:08 mwn3d_phone left #rosettacode
15:27 _ilbot joined #rosettacode
15:27 Topic for #rosettacode is now Rosetta Code: Coding in (inf - 1) languages ; http://irclog.perlgeek.de/rosettacode/today ; Pop a tab and stick around.
15:33 * BenBE now has mIRC with IPv6 on Windows.
15:39 opticron heh...i remember my mIRC days
15:40 opticron its scripting language was fun
15:40 Hypftier opticron: I think it was the worst programming language I ever used ;)
15:40 BenBE Hypftier Why?
15:41 BenBE mIRC script is fun once you got the heck on how to do EVERYTHING as events of something else :P
15:41 Hypftier BenBE: what little I remember of it, it had plenty of weird quirks. But maybe I should shut up, given that I use batch files as well ;)
15:42 BenBE Just doing the Release of my patched built that runs on Win2K and above (the original patch didn't work on W2K.
15:43 BenBE Hypftier I knoww someone who uses a whole bunch of batch files to emulate the SysV Runlevel system on Windows ...
15:43 BenBE Ironically it actually works quite well :P
15:46 parsleyfirefly1 joined #rosettacode
15:54 parsleyfirefly left #rosettacode
15:54 parsleyfirefly1 is now known as parsleyfirefly
16:12 CodeBlock joined #rosettacode
16:12 shortcir1uit is now known as shortcircuit
16:17 eel left #rosettacode
16:17 Coderjoe left #rosettacode
16:17 eel joined #rosettacode
16:17 Coderjoe joined #rosettacode
16:23 CodeBlock left #rosettacode
16:24 eel left #rosettacode
16:24 Coderjoe left #rosettacode
16:29 eel joined #rosettacode
16:29 Coderjoe joined #rosettacode
16:46 manveru left #rosettacode
16:47 manveru joined #rosettacode
17:13 MigoMipo left #rosettacode
17:14 MigoMipo joined #rosettacode
17:30 eel left #rosettacode
18:18 CodeBlock joined #rosettacode
18:18 CodeBlock left #rosettacode
18:18 CodeBlock joined #rosettacode
18:30 eel joined #rosettacode
18:37 eel left #rosettacode
18:37 MigoMipo left #rosettacode
18:37 Coderjoe left #rosettacode
18:38 eel joined #rosettacode
18:38 MigoMipo joined #rosettacode
18:38 Coderjoe joined #rosettacode
19:22 shortcircuit left #rosettacode
19:22 shortcircuit joined #rosettacode
19:34 opticron left #rosettacode
20:10 shortcircuit left #rosettacode
20:10 FireFly left #rosettacode
20:10 manveru left #rosettacode
20:10 mwn3d_phone left #rosettacode
20:10 Hypftier left #rosettacode
20:10 eel left #rosettacode
20:10 MigoMipo left #rosettacode
20:10 Coderjoe left #rosettacode
20:10 CodeBlock left #rosettacode
20:10 BenBE left #rosettacode
20:10 mbishop left #rosettacode
20:10 sorear left #rosettacode
20:10 dom96 left #rosettacode
20:10 p6eval left #rosettacode
20:10 slavik1 left #rosettacode
20:10 parsleyfirefly left #rosettacode
20:10 TimToady left #rosettacode
20:10 fedaykin left #rosettacode
20:10 Util left #rosettacode
20:16 eel joined #rosettacode
20:16 opticron joined #rosettacode
20:16 shortcircuit joined #rosettacode
20:16 Coderjoe joined #rosettacode
20:16 MigoMipo joined #rosettacode
20:16 CodeBlock joined #rosettacode
20:16 manveru joined #rosettacode
20:16 parsleyfirefly joined #rosettacode
20:16 sorear joined #rosettacode
20:16 mwn3d_phone joined #rosettacode
20:16 BenBE joined #rosettacode
20:16 FireFly joined #rosettacode
20:16 mbishop joined #rosettacode
20:16 TimToady joined #rosettacode
20:16 fedaykin joined #rosettacode
20:16 dom96 joined #rosettacode
20:16 p6eval joined #rosettacode
20:16 Util joined #rosettacode
20:16 slavik1 joined #rosettacode
20:16 Hypftier joined #rosettacode
20:56 eel left #rosettacode
21:12 eel joined #rosettacode
21:34 Mathnerd314 joined #rosettacode
21:50 eel left #rosettacode
21:53 parsleyfirefly left #rosettacode
22:37 eel joined #rosettacode
23:46 MigoMipo left #rosettacode
23:48 parsleyfirefly joined #rosettacode

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