Brainathon

6 views
Skip to first unread message

Lionel Auroux

unread,
Oct 25, 2013, 12:15:55 PM10/25/13
to rathaxes-devel
Hi, pyrser and cnorm are in production since september for the EPITECH students. It's seems to be working enough to write the KOOC compiler.
It's time to plan a hackathon on the re-design of rathaxes.
I propose next saturday or after (2 or 9 november).

For this meeting, I'm working on some python samples to illustrate how we could rewrite the compiler.  I have already some workable things.
I consider that it's faster to concentrate our effort on the AST and type checking. Parsing the code is not so hard. Also I'm focusing on the front end and middle end interactions because that was not enough done on the previous version.

For example:

        itf = Interface("LKM")
        itf.add_dep("Builtin")
        itf.add_pointcut(Pointcut("includes"))
        itf.add_pointcut(Pointcut("data_types"))
        itf.add_pointcut(Pointcut("prototypes"))
        itf.add_pointcut(Pointcut("data"))
        itf.add_pointcut(Pointcut("code"))
        itf.add_parameter(Parameter("Builtin::string", "LKM::author"))
        itf.add_parameter(Parameter("Builtin::string", "LKM::description"))
        itf.add_parameter(Parameter("Builtin::string", "LKM::license"))
        cb = Callback("required", "init")
        cb.add_chunk(Chunk("LKM::includes"))
        cb.add_chunk(Chunk("LKM::code"))
        cb.add_pointcut(Pointcut("LKM::init_bus_hook"))
        itf.add_callback(cb)
        itf.add_callback(Callback("required", "exit"))
        itf.callbacks[-1].add_chunk(Chunk("LKM::code"))
        itf.callbacks[-1].add_pointcut(Pointcut("LKM::deinit_bus_hook"))
        print(itf.to_rti())

produce this kind of code:

interface LKM: Builtin
{
  required parameter Builtin::string LKM::author;
  required parameter Builtin::string LKM::description;
  required parameter Builtin::string LKM::license;
  provided pointcut ?::includes();
  provided pointcut ?::data_types();
  provided pointcut ?::prototypes();
  provided pointcut ?::data();
  provided pointcut ?::code();
  required callback ?::init()
  {
    provided chunk LKM::includes();
    provided chunk LKM::code();
    provided pointcut LKM::init_bus_hook();
  }

  required callback ?::exit()
  {
    provided chunk LKM::code();
    provided pointcut LKM::deinit_bus_hook();
  }
}

* ?::  means than the scope is not resolved for this name.

I'm trying to finish these samples codes to have some better examples. This help me to think and to list some kind of rule of thumb for the design.

--
Cordialement,
Lionel Auroux

David Pineau

unread,
Oct 25, 2013, 5:11:44 PM10/25/13
to rathaxe...@googlegroups.com
Hello !

2013/10/25 Lionel Auroux <lionel...@gmail.com>:
> Hi, pyrser and cnorm are in production since september for the EPITECH
> students. It's seems to be working enough to write the KOOC compiler.
> It's time to plan a hackathon on the re-design of rathaxes.
> I propose next saturday or after (2 or 9 november).
>

I will be available for the week end of the 9 november.
I guess you code currently allows us to fill an AST to play with ?
On my side, I need to finish my python graph database experiments (I
should be able to this week end), and I'll be all ready.

> --
> Cordialement,
> Lionel Auroux
>
> --
> --
> ML Rathaxes
> www.rathaxes.org
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Rathaxes Development List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rathaxes-deve...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

For those who follow us, waiting a chance to take part in the python
version (and/or rewrite), remember that now is the opportunity to join
us, take part in the design process, and be part of the adventure !

--
David Pineau,
Developer R&D at Scality

Lionel Auroux

unread,
Oct 25, 2013, 5:35:34 PM10/25/13
to rathaxes-devel
2013/10/25 David Pineau <dav.p...@gmail.com>
Yes, that the point. I have the middle and I will have some front and some type check for the meeting.



--
Cordialement,
Lionel Auroux

Thomas Sanchez

unread,
Oct 28, 2013, 4:38:44 AM10/28/13
to rathaxe...@googlegroups.com
Whenever you want :)

2013/10/25 Lionel Auroux <lionel...@gmail.com>:
Thomas Sanchez

Auclair Vincent

unread,
Oct 28, 2013, 6:33:32 AM10/28/13
to rathaxe...@googlegroups.com
Hello,

I will be available the week-end of the 9th of November.


Vincent Auclair        -      auclair.vincent[ at ]gmail.com
(+33) 6 71 55 02 37

David Pineau

unread,
Oct 30, 2013, 1:02:12 PM10/30/13
to rathaxe...@googlegroups.com
Hello,

As a reminder (and announcement), for those who still live near paris
and will participate in this brainathon, I'd like to remind you that
since we will have to think hard and discuss many things, a whiteboard
is required.

Thus, we planned with Lionel to have this brainathon Happen at our
historical headquarters: the LSE laboratory ;)

Though I don't know at all where I'll get to sleep :p


2013/10/28 Auclair Vincent <auclair...@gmail.com>:

Lionel Auroux

unread,
Oct 31, 2013, 9:22:07 AM10/31/13
to rathaxes-devel
Ok meeting 9h30 saturday 9th november with croissant.

We will begin with presentation of the state of the current implementation for newbies.


2013/10/30 David Pineau <dav.p...@gmail.com>



--
Cordialement,
Lionel Auroux

Thomas Sanchez

unread,
Oct 31, 2013, 9:26:04 AM10/31/13
to rathaxe...@googlegroups.com
I thought that was on an hangout or something like that planned. Being in
Berlin I won't be able to attend :(

If you can either record it or do an hangout, I'll try to be there !

2013/10/31 Lionel Auroux <lionel...@gmail.com>:

David Pineau

unread,
Oct 31, 2013, 9:28:47 AM10/31/13
to rathaxe...@googlegroups.com
We will do a hangout, but maybe not the whole day (though we could try)

There will most probably be one where Louis will attend, in the evening.

2013/10/31 Thomas Sanchez <thomas...@gmail.com>:

Thomas Sanchez

unread,
Oct 31, 2013, 9:31:00 AM10/31/13
to rathaxe...@googlegroups.com
Great !

2013/10/31 David Pineau <dav.p...@gmail.com>:

David Pineau

unread,
Oct 31, 2013, 9:38:14 AM10/31/13
to rathaxe...@googlegroups.com
So let's go with it: We'll try a full-day hangout if you're available,
it might be useful :)

2013/10/31 Thomas Sanchez <thomas...@gmail.com>:

Thomas Sanchez

unread,
Oct 31, 2013, 9:45:01 AM10/31/13
to rathaxe...@googlegroups.com
The whole day it might be difficult but I'll do my best to be as
available as possible :)

2013/10/31 David Pineau <dav.p...@gmail.com>:

Louis Opter

unread,
Nov 8, 2013, 1:13:35 PM11/8/13
to rathaxe...@googlegroups.com
I'll start working tomorrow morning, at 19h for you!

I'll be on hangout/skype/irc the whole time.
Louis Opter

Thomas Sanchez

unread,
Nov 9, 2013, 4:11:33 AM11/9/13
to rathaxe...@googlegroups.com
Hi guys,
When do you plan to start the hangout/skype conf ?

2013/11/8 Louis Opter <kale...@kalessin.fr>:
--
Thomas Sanchez

Lionel Auroux

unread,
Nov 9, 2013, 4:22:28 AM11/9/13
to rathaxes-devel
waiting david?


2013/11/9 Thomas Sanchez <thomas...@gmail.com>



--
Cordialement,
Lionel Auroux

Thomas Sanchez

unread,
Nov 9, 2013, 4:46:54 AM11/9/13
to rathaxe...@googlegroups.com
I read the Pyrser documentation, if we except several typos that's very good !

2013/11/9 Lionel Auroux <lionel...@gmail.com>:

Thomas Sanchez

unread,
Nov 9, 2013, 4:47:19 AM11/9/13
to rathaxe...@googlegroups.com
Is there any known bugs/limitations ?

2013/11/9 Thomas Sanchez <thomas...@gmail.com>:
--
Thomas Sanchez
Reply all
Reply to author
Forward
0 new messages