You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem description.
Bash is quite useful in sequential data processing until there are complex data structures Solution
We can improve this in Amber by adding user-defined types that will be converted by compiler to a format compatible with tools like sort, tee and awk. For example
Alternatives This issue suggests another way of solving the problem, though I think sequential data processing will be a more common usage in Amber. That's why I would like to propose this format for user-defined types
The text was updated successfully, but these errors were encountered:
We could drop the header and use it only when necessary (with a function show_header() for example). More exactly t2 will compile to "12\t43\t\10". c2 will be "40.0\t50.1\t12\t43\t\10". Using the separator \t we can convert values from Struct to String representation and vise versa. Of course there will be more tricky strings, so we can probably use some CSV parser to handle them.
also probably a duplicate of #66 and #80 as you mentioned
The dictionary mentioned in #66 doesn't take types into account, my idea is to introduce a type system that will allow for compile-type checks.
Ιnitially I've missed the #66 while looking for same issues. I see there are some problems in handling custom data structures. My idea was more about the type system rather than the actual representation
Problem description.
Bash is quite useful in sequential data processing until there are complex data structures
Solution
We can improve this in Amber by adding user-defined types that will be converted by compiler to a format compatible with tools like sort, tee and awk. For example
Converts to:
Using a list of UserTypes we can define some data processing functions that will be converted to sequence of bash commands behind the scene.
Lets find the coord with max X coordinate
Will be converted to
Alternatives
This issue suggests another way of solving the problem, though I think sequential data processing will be a more common usage in Amber. That's why I would like to propose this format for user-defined types
The text was updated successfully, but these errors were encountered: