Perl 6 - the future is here, just unevenly distributed

IRC log for #parrot, 2014-05-05

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:06 benabik joined #parrot
00:51 rurban joined #parrot
00:58 FROGGS__ joined #parrot
01:51 rurban joined #parrot
02:00 FROGGS_ joined #parrot
02:15 rurban joined #parrot
02:49 rurban joined #parrot
03:50 rurban joined #parrot
04:52 rurban joined #parrot
05:55 rurban joined #parrot
06:45 FROGGS joined #parrot
06:55 rurban joined #parrot
07:56 rurban joined #parrot
08:04 basiliscos joined #parrot
08:57 rurban joined #parrot
09:47 MJaoune joined #parrot
09:47 MJaoune Hi
09:47 MJaoune is there a place where to learn PASM?
09:47 FROGGS hi
09:48 MJaoune and can I find a reference for the parrot library?
09:51 MJaoune I mean a reference for its classes, functions, enums etc...
09:56 MJaoune anyone here? no?
09:57 FROGGS MJaoune: sorry, $dayjob...
09:57 FROGGS have you skimmed aroundhere? http://docs.parrot.org/parrot/latest/html/
09:57 MJaoune yeah, i couldn't find a reference for the functions
09:57 FROGGS like this: http://docs.parrot.org/parrot/latest/html/pmc.html
09:57 MJaoune and is there a place where i can learn PASM?
09:57 rurban joined #parrot
09:58 FROGGS MJaoune: ask rurban, I am just a guest here also :o)
09:58 MJaoune rurban: hi
09:59 MJaoune i will be back later, I have a few things to do anyways
09:59 MJaoune bye
10:58 rurban joined #parrot
12:02 rurban joined #parrot
12:51 MJaoune joined #parrot
12:51 MJaoune hi
12:52 MJaoune are they any tutorials for parrot assembly (PASM)?
12:52 MJaoune or PIR
12:52 MJaoune ?
12:53 rurban joined #parrot
12:54 MJaoune rurban: hi
12:55 Coke MJaoune: can I ask why you want to use PASM?
12:55 Coke We tend to stir folks toward PIR or one of the mini-hlls that ships with parrot.
12:55 Coke not stir, *steer*, whoops
12:56 MJaoune because I have experience in x86 intel assembly
12:56 MJaoune and it might be easier to use PASM than to learn PIR
12:59 MJaoune Coke: can I for example, store the PIR code or PASM code into a buffer and then use Parrot library to compile it into machine code?
12:59 MJaoune Coke: I mean is there a function for that?
13:07 rurban_ MJaoune: PASM is the same as PIR, just a little bit more low-level
13:07 MJaoune rurban_: aha, ok
13:07 rurban_ learn PIR instead, we will remove PASM support soon
13:07 rurban_ It's basically the same. just compare the existing examples
13:07 MJaoune rurban_: alright, where can i learn PIR then?
13:08 MJaoune rurban_: if there is a pdf of something that would be great
13:08 rurban_ there's a pir book in the repo, and it is documented
13:08 rurban_ docs/book/pir/
13:09 MJaoune rurban_: aha thanks
13:09 rurban_ Docs and the PIR book are also here: http://docs.parrot.org/parrot/latest/html/
13:10 MJaoune rurban_: can I use the parrot library to change PIR into machine code?
13:10 MJaoune rurban_: I mean without the need of parrot to exist as an executable
13:11 rurban not yet. JIT support was removed earlier, but I'm working on a new jit
13:12 rurban and dumping to exec support which only worked on intel was also removed earlier (but should be addable also)
13:13 rurban Sorry, my other machine just froze (qemu quirks)
13:14 MJaoune rurban: ah, i see, can you link a reference to the parrot library?
13:14 MJaoune rurban: I mean classes, functions etc..
13:14 rurban In general compared to assembler. PIR is a good assembler, and PASM is asm without macros
13:15 rurban we have ops (vtable methods and slow methods) and classes (pmc)
13:15 rurban that's all on the docs website
13:16 rurban classes (PMCs) => http://docs.parrot.org/parrot/latest/html/pmc.html
13:16 rurban those are the builtin ones
13:16 rurban and builtin ops: http://docs.parrot.org/parrot/latest/html/ops.html
13:17 rurban but contrary to JBM or .NET you can run-time extend both. classes and methods
13:17 rurban oops, JVM
13:18 rurban just read through the whole docs, should be 2 hrs
13:19 MJaoune rurban: so for example, if I want to create a simple language that is translated into PIR, can I store the translation into a buffer and use parrot library to turn it into machine code or should I save it as a file and then use parrot executable to translate it?
13:19 rurban if you translate your lang to PIR, just use the C API to run the PIR from libparrot
13:20 rurban and you can create your own single exe which runs the whole thing (translate and run)
13:20 rurban there are several of such examples. most langs do it that way
13:21 MJaoune rurban: aha I see
13:21 rurban see the links at http://parrot.org/languages
13:21 MJaoune saw them
13:22 rurban But most are just toy implementations of the languages
13:23 rurban the only serious one is rakudo (perl6)
13:23 MJaoune rurban: aha, i have to go
13:23 MJaoune rurban: thanks for the help
13:23 MJaoune rurban: u made everything clear
13:23 MJaoune rurban: bye
13:24 rurban bye
13:31 rurban_ joined #parrot
13:39 bluescreen joined #parrot
14:01 rurban joined #parrot
14:05 rurban1 joined #parrot
14:51 bluescreen_ joined #parrot
14:52 bluescreen__ joined #parrot
14:55 C joined #parrot
14:55 C where can i find the C API reference?
14:56 C can't find it in the documentation
14:56 C is there a doxygen or something?
14:59 Coke http://docs.parrot.org/parrot/latest/html/docs/pdds/draft/pdd11_extending.pod.html
14:59 Coke (which is a formatted version of the POD in the repo under docs/pdds...
14:59 C what about this? https://github.com/parrot/parrot/blob/master/docs/embed_new.pod
15:00 Coke excellent question. I have no idea which is the better one to look at.
15:00 Coke apologies.
15:00 C the new one is better imo
15:00 C i will the new one
15:00 C thanks
16:01 FROGGS joined #parrot
16:01 basiliscos joined #parrot
16:49 rurban joined #parrot
16:50 rurban1 joined #parrot
17:36 rurban joined #parrot
19:07 TonyC joined #parrot
19:42 rurban_ both extending docs are good and too old.
19:43 rurban_ embed_new.pod and looking at the various tests and samples should be fine
19:58 davidfetter joined #parrot
21:22 rurban joined #parrot
22:07 particle joined #parrot
22:36 rurban joined #parrot
22:59 cooper joined #parrot

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

Parrot | source cross referenced