Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Monday, April 06 2009
27 unable to call class's module_info was updated
  • Philipp Pirozhkov
    • Tag changed from block to dispatch
    by Philipp Pirozhkov at 11:09 AM

    thanks for nice list comprehension tip!

    but module_info call still doesn't work using meta-call:

    
    Binary.module_info()
    @@@ works fine
    

    reia::apply(:'Binary'...

Monday, March 30 2009
27 unable to call class's module_info was updated
  • Tony Arcieri
    Tony Arcieri commented at 4:01 PM

    Okay, pull again and you should be able to pass a parameter to module_info just like you can in Erlang, e.g:

    
    Object.module_info(:compile)
    

    Also note you don...

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 3:47 PM

    Still fails:

    
    reia::apply(controller, :module_info, [:compile])
    

    same as:

    
    Home.module_info(:compile)
    

    Yes, it's a workaround to make a laaaaaarge pattern...

  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 12:25 AM

    I added a hack to facilitate calling module_info the way it worked before for the time being. Expect this to get merged into the reflection functions for module...

Sunday, March 29 2009
26 problem on ire with lambda and variable was updated
27 unable to call class's module_info was updated
  • Philipp Pirozhkov
    • Assigned user set to Tony Arcieri
    by Philipp Pirozhkov at 3:38 PM
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 3:38 PM

    After latest block changes, it's unable to call class's module_info function:

    
    >> load('home.re')      
    => Home
    >> Home.module_info()   
    exception error: u...
Monday, March 16 2009
26 problem on ire with lambda and variable was created
  • Panagiotis Skarvelis
    Panagiotis Skarvelis created the ticket at 3:13 AM

    After a "specific" Labda the variable foo unbound.

    
    # ire
    Reia Interactive Shell (prerelease)
    Running on Erlang (BEAM) emulator version 5.6.5 [source] [asyn...
Wednesday, March 11 2009
4 create templating engine was updated
Tuesday, March 10 2009
4 create templating engine was updated
  • Taylor luk
    Taylor luk commented at 6:58 PM

    Hi there, Reia looks like a interesting language especially with recent indentless branch merged to master.

    I am the author of h2o template which is a django te...

Saturday, February 28 2009
25 Methods cannot be invoked when passed as parameter was updated
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 1:15 PM

    ..and yes, i agree, the one that currently works looks better ;)

  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 1:14 PM

    works fine:

    
        js = add_handlers(handlers)
        full_bindings = bindings.insert(~handlers, js).insert(~session, @session)
        rendered = Retem.render(templ...
22 Methods cannot be invoked from within lambdas or blocks was updated
  • Tony Arcieri
    • Title changed from class method is not seen inside a block to Methods cannot be invoked from within lambdas or blocks
    by Tony Arcieri at 11:43 AM

    Lambdas should be able to access (but not mutate) the outer scope and hidden ivar state.

    I'll add support for this, with the provision that if a method is invok...

23 Methods cannot be invoked from within list comprehensions was updated
  • Tony Arcieri
    • Title changed from inline call to a class method fails to compile to Methods cannot be invoked from within list comprehensions
    by Tony Arcieri at 11:41 AM

    Ugh, another scope where issues occur accessing hidden ivar state.

    Not sure of a good solution to this one either.

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 7:57 AM

    works fine

    
    class A
      def bar(x)
        x.map{|z| foo(z)}
    
      def foo(y)
        y
    @@
    
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 7:55 AM

    works fine:

    
    class A
      def bar(x)
        foo(x)
    
      def foo(y)
        y
    

    fails to load:

    
    class A
      def bar(x)
        [foo(z) | z in x]
    
      def foo(y)
        y
    ...
24 class method call crashes when there's a method with the same name but differ... was created
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 8:07 AM

    cannot find anything in common to that

    
    class Controller
      def render(filename)
        render(filename, {})
    
      def render(filename, bindings)
        render(fil...
Monday, February 23 2009
22 class method is not seen inside a block was updated
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 2:20 PM
    
    class Foo
      def a(x, lambda)
        ['inside a', x].join(' ').puts()
        lambda()
        ['exiting a', x].join(' ').puts()
    
      def b(y)
        ['inside b', y].joi...
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 2:18 PM

    class Foo def a(x, lambda)

    ['inside a', x].join(' ').puts()
    lambda()
    ['exiting a', x].join(' ').puts()
    
    

    def b(y)

    ['inside b', y].join(' ').puts()
    
    

    def z

    'z...
Monday, February 16 2009
21 super() was created
  • Tony Arcieri
    Tony Arcieri created the ticket at 10:22 PM

    Methods should be able to call the version in their superclass(es) using the super keyword.

19 mutiline """ does not work in ire was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 10:20 PM

    Resolved as duplicate

18 reia::apply only works with modules, not class objects was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 10:18 PM

    This is resolved by the new reia:spawn/spawn_link and reia:invoke functions.

Saturday, January 31 2009
19 mutiline """ does not work in ire was updated
Friday, January 30 2009
20 regex dont parce properly was created
  • treeform
    treeform created the ticket at 1:12 AM

    /[a-z]+/i Error: Line 1: syntax error before: i

19 mutiline """ does not work in ire was created
  • treeform
    treeform created the ticket at 1:10 AM

    """ big string Error: Line 2: illegal "" big string\n"

    """ big string """ Error: Line 1: syntax error before: " big string "

Monday, December 29 2008
7 Object fails calling methods was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 11:09 PM

    Phew... this required a lot of sneaking state around internally. "Local" method invocations are now implemented as function calls (as a gen_server can't call it...

18 reia::apply only works with modules, not class objects was updated
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 5:26 PM

    the second issue isn't major, i've found a workaround to pass arguments as a hash instead of tuple array

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 5:14 PM

    There's a more complex case:

    
    >> class A
    ..   def a(x)  
    ..     Local.puts(x.inspect())
    .. 
    => ~ok
    >> a=A.start()   
    => #<Object>
    >> reia::apply(a, ~a,...
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 3:34 PM

    adding

    
    apply({object, {Pid, _Module}}, Method, Arguments) ->
      reia_class:call(Pid, {Method, Arguments});
    

    to reia.erl helps to resolve this

  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 3:23 PM
    
    module A
      def x
        'x'
    
    class B
      def y
        'y'
    
    
    >> reia::apply(~A, ~x, [])
    => "x"
    
    >> b=reia::apply(~B, ~start, [])
    => #<Object>
    >> reia::app...
17 to_string() broken was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 4:03 PM

    This is a regression in Numeric#to_string() for floats, from commit 5ee824b1eabfacec6667091583043349d88f3d68 by Jared Kuolt.

    I've corrected the problem and adde...

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 3:42 PM

    seems that lazy flattening doesn't work properly

    
    >> (1/4).to_list()            
    => [[48,46,50,53,48,48,48,48]]
    >> (1/4).to_list().to_string()
    exception er...
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 2:47 PM

    in ire (and not only ire, but ire too):

    
    >> a=1.2
    exception error: bad argument
      in function  list_to_binary/1
         called as list_to_binary([{list,{[],"1...
Sunday, December 28 2008
16 r2e doesn't affect Strings was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 7:01 PM

    Reia calls out into the Erlang environment in several places. Since there's no Erlang equivalent of a string (a collection of characters) as a distinct entity f...

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 6:48 PM

    applying my suggested patch breaks code in many pieces, there should be another solution. I'll work it around until typing system is stable

  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 6:14 PM

    Calling: reia_erl:r2e(reia:apply('Ryan',out, [Abs_Path, Method, PathParts, Cookie, Params])).

    Ryan.out returns (~redirect, "something.com") in erlang that looks...

Wednesday, December 24 2008
15 list comprehension fails, while map works was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 10:00 PM

    You're not properly transforming the function arguments when calling the Reia function.

    Try using reia:apply

    Reopen this ticket if it doesn't solve the problem

  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 2:41 PM

    i prefer list comprehension syntax, it's far more compact when it comes to filtering, and it allows for multiple variables

  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 2:39 PM

    I'm calling erlang function, that calls reia back in the follwing way:

    
    A = ["app","aaa","qqq"],
    'Reia_module':f(A),
    

    Reia_module:

    
    module Reia_module
      ...
Sunday, December 21 2008
3 need ability to access record information was updated
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 4:19 AM

    I'm still not sure Reia needs this ability. Records was created in Erlang as a fast alternative to dict, but i'm not sure how fast it is, and besides, that warp...

4 create templating engine was updated
  • Philipp Pirozhkov
    Philipp Pirozhkov commented at 4:16 AM

    This one can be closed, i'm implementing retem engine in scope of Ryan, and Herml will be ported sometimes soon too.

Saturday, December 20 2008
14 source scan issue was updated
  • Philipp Pirozhkov
    • Title changed from source parse/scan issue to source scan issue
    by Philipp Pirozhkov at 6:09 PM

    ooops, seems that

    
        sec=1
        isec=2
        nsec=3
        insec=4
    

    is missing in def out but that doesn't affect anything, the issue is still there

    Interesti...

  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 6:00 PM
    
    module Exp
      def out(abspath, method, application, controller, action, cookies, parameters)
        controller_file = ['controllers/', controller.to_string(), '....
13 ssa issue was created
  • Philipp Pirozhkov
    Philipp Pirozhkov created the ticket at 5:52 PM
    
    module Exp
      def a(title)
        Local.puts(title)
        t = title
        d = {~title: title}
    

    fails to load/compile with the following: Exp:5: variable title is ...

Friday, December 12 2008
10 Tuples are broken when using Eval was updated
  • Tony Arcieri
    • State changed from open to resolved
    by Tony Arcieri at 3:02 PM

    I've added a small shim around erl_eval which should handle correctly translating the bindings to the appropriate format.

Thursday, December 11 2008
2 list comprehensions doesn't understand variables as arguments was updated
  • Tony Arcieri
    • State changed from new to resolved
    by Tony Arcieri at 1:10 PM

    Noted and closed

  • Jared Kuolt
    • Tag set to core
    by Jared Kuolt at 12:37 PM

    This is a dupe of #10 since the compiled version works fine.

Wednesday, December 10 2008
11 error in tuple matching using variables was updated
10 Tuples are broken when using Eval was updated
  • Tony Arcieri
    • State changed from new to open
    by Tony Arcieri at 1:53 PM

    This is a bug in Reia's Eval implementation. Fixes for it are non-trivial.