Comment

Comment by uryga

looks really cool! congrats, seems like a lot of work went into this, and code generation is always fun.

i do have some feedback about the readme though...

maybe i'm not the intended audience, but the examples didn't work great for me - the readme just shows the code without the inputs/outputs, so you kind of have to guess what it does. ("show me your tables, not your flowcharts" etc.)

i also think you should add some more basic examples / common tasks, e.g. converting AOS to SOA:

  [{'a': 5,  'b': 'foo'},
   {'a': 10, 'b': 'bar'} ]
    
  c.fun['stuff'](data) # look how concise!
  
  {'a': [5,     10   ],
   'b': ['foo', 'bar']}
and build up to more complex stuff from there, to help readers get a feel for the library.

and i think the examples should be a bit higher up in the readme – ofc wanting to describe how cool the implementation is is natural :) but honestly, when i'm looking at a library like this, i want to be able to make a quick assessment if might be useful for me - the implementation is kind of secondary in most cases.

now, despite what i wrote above, i'd love to hear some stuff about the implementation :) as someone who also wrote a library that does runtime python codegen, what's your approach to that?

parent uryga 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton