Mail Archives: geda-user/2015/07/10/15:44:52
On 07/10/2015 01:08 PM, gedau AT igor2 DOT repo DOT hu wrote:
> I am not sure I fully understand the context; are you looking for a tool that can extract the return type and the type of
> arguments of a C function reading the source?
>
> If so, I happen to have a project called c99tree. It parses C files and emits an AST (Abstract Syntax Tree). With some scripting,
> it's possible to extract info on function argument types which then can be used to generate bindings or validate the API.
Yes, that's promising.
Embedding old code in a new language might be a way to generate interest.
Pony may be too new, too few users, but maybe some others.
On 07/10/2015 01:13 PM, Stefan Salewski wrote:> I prefered writing rect.draw
> instead of draw_rectangle(rect).
+1
First saw that with Python.
On 07/10/2015 01:13 PM, Stefan Salewski wrote:> I think I will concentrate on Nim for the next year, it has the
> advantage being close to version 1.0 already and having really all low
> level functionality, so that kernel and microcontroller coding is
> possible.
Hmmm... micros and such are my interest also, and being community supported is tops on my list,
so Nim is the one to study up on. Or rust.... Or ?? :-)
On 07/10/2015 01:19 PM, Stefan Salewski wrote:> Nim uses a similar tool called c2nim, which processes C files and
> generation Nim code. Mainly used for processing C header files, I used
> that for creating the GTK3 bindings. Works fine generally
Wow.
How about erlang elixir? That has some proving ground testing done.
For instance say I wanted to reuse the ConTiki mesh networking code, plus add lwip for ethernet.
Would nim handle that? Could you autogenerate and retest in a couple of weeks, or would it be five-hundreds of hours?
On 07/10/2015 01:59 PM, DJ Delorie wrote:> OO allows you to provide an API
> between parts of your program that reduces the overhead of adding more
> "things" of each type.
So, OO is usually built in. Some of the langs that support functional and paralleling
don't mention it. Will want to look for it in erlang/elixir, rust, nim, go...
- Raw text -