[Ur] Documentation codes

2010-12-08 Thread Davor Ocelic
Hey folks, I've taken a look at the Ur/Web demos the other day and read a couple emails on the list. if anyone's worried about Ur/Web surviving or gaining wide-spread adoption, well, just fill in as much info/examples on the Wiki as you can, and add any usable code you might have, or link to

[Ur] interfacing with ruby

2010-12-08 Thread Marc Weber
Excerpts from Marc Weber's message of Wed Dec 08 12:45:51 +0100 2010: http://gitorious.com/some-urweb-utility-libraries/uw-ruby I added it to the library and ffi page on the wiki http://impredicative.com/wiki/index.php/Libraries_and_FFI_bindings#uw-process Enjoy and provide feedback. I could'nt

Re: [Ur] missunderstanding - or serious memory handling issue?

2010-12-08 Thread Adam Chlipala
Marc Weber wrote: Excerpts from Adam Chlipala's message of Wed Dec 08 02:42:45 +0100 2010: Yes, no callback should touch any uw_malloc()ed memory. So what is uw_malloc worth then? It's meant for use by the Ur/Web program itself, plus cases where FFI functions can act a lot

Re: [Ur] interfacing with ruby

2010-12-08 Thread Adam Chlipala
Marc Weber wrote: I could'nt compile a function which does not take arguments (passing the conntext id) - so I had to add a dummy parameter. I'm not sure exactly what you're referring to, but, if this is meant as a description of something you wish you could do but haven't been able to,

Re: [Ur] missunderstanding - or serious memory handling issue?

2010-12-08 Thread Marc Weber
If you're suggesting special memory management for Ruby objects, that would probably be the best long-term solution, but it might not be much better than just using malloc(). Ruby has its own gc - you have to tell the gc to that it should not collect some vars - because you're holding

Re: [Ur] interfacing with ruby

2010-12-08 Thread Marc Weber
Excerpts from Adam Chlipala's message of Wed Dec 08 15:25:52 +0100 2010: I'm not sure exactly what you're referring to, but, if this is meant as a description of something you wish you could do but haven't been able to, I might be able to help if you can provide details. I copy pasted the

Re: [Ur] missunderstanding - or serious memory handling issue?

2010-12-08 Thread Adam Chlipala
Marc Weber wrote: The next I wasn't sure about was speed: Is it worth trying to avoid some mallocs or not. That's the main motivation for the special handling of context-local heaps. I want this code to scale to many-core execution, and malloc() will inevitably incur some thread

Re: [Ur] Documentation codes

2010-12-08 Thread Karn Kallio
Hey folks, I've taken a look at the Ur/Web demos the other day and read a couple emails on the list. if anyone's worried about Ur/Web surviving or gaining wide-spread adoption, well, just fill in as much info/examples on the Wiki as you can, and add any usable code you might have, or

Re: [Ur] Documentation codes

2010-12-08 Thread Adam Chlipala
Karn Kallio wrote: if anyone's worried about Ur/Web surviving or gaining wide-spread adoption, well, just fill in as much info/examples on the Wiki as you can, and add any usable code you might have, or link to your projects. Good idea! Since I was quite confused about folders a couple

Re: [Ur] interfacing with ruby

2010-12-08 Thread Adam Chlipala
Marc Weber wrote: val context : string - value The context function always returns an integer which represents the ctx pointer. Its used to identify a request within Ruby. I had to add the string - to make it compile because context: value did not. I would write it as: val context :

Re: [Ur] Documentation codes

2010-12-08 Thread Marc Weber
Excerpts from Karn Kallio's message of Wed Dec 08 16:08:21 +0100 2010: http://www.impredicative.com/wiki/index.php/Using_Top.Fold_to_count_fields_of_a_record Great. Does it make sense to create a new page for each snippet? I'd start a ur-snippets page and add all of them to one page. Then you

Re: [Ur] Documentation codes

2010-12-08 Thread Davor Ocelic
On Wed, 08 Dec 2010 16:23:43 +0100 Marc Weber marco-owe...@gmx.de wrote: Excerpts from Karn Kallio's message of Wed Dec 08 16:08:21 +0100 2010: http://www.impredicative.com/wiki/index.php/Using_Top.Fold_to_count_fields_of_a_record Great. Does it make sense to create a new page for each

Re: [Ur] Documentation codes

2010-12-08 Thread Marc Weber
Excerpts from Davor Ocelic's message of Wed Dec 08 16:31:45 +0100 2010: We could even post snippets with description what we'd like done, and wait for someone to fill the solution in ;-) which vcs ? I'd suggest one of fossil, git, mercurial, bazaar, monotone I think its very important that

Re: [Ur] Documentation codes

2010-12-08 Thread Davor Ocelic
On Wed, 08 Dec 2010 16:54:53 +0100 Marc Weber marco-owe...@gmx.de wrote: Excerpts from Davor Ocelic's message of Wed Dec 08 16:31:45 +0100 2010: We could even post snippets with description what we'd like done, and wait for someone to fill the solution in ;-) which vcs ? I'd suggest one

[Ur] Vim plugin

2010-12-08 Thread Davor Ocelic
Marc, could you give just brief clarification how to enable the Vim plugin? I am looking at the README on https://github.com/MarcWeber/vim-addon-urweb and see notes about ctags and vimrc config files, but don't understand where do I have to actually git clone the files and what to run,

Re: [Ur] Documentation codes

2010-12-08 Thread Marc Weber
Excerpts from Davor Ocelic's message of Wed Dec 08 17:15:58 +0100 2010: But any other means wouldn't hurt either... git repos (and probably all others) can easily be browsed from the web. You can't copy paste the wiki and run test code easily. Neither can you use it as library without copy