-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add csv library support #260
Comments
We do actually have a pure-luau CSV parser of sorts as a lune script. See .lune/csv_printer.luau. Ideally this sort of thing is intended to be done as a library, I do not see much reason to include this in the runtime. |
As someone who's recently worked with 150k+ row csvs in Lune, I'd also appreciate dedicated runtime support for (fast) Rust-based My Lune-based impl. w/ string.splits took an average of 6+ seconds to parse and split the file into a 2d array-like table, whereas my string.split() + generalized character iteration approach took upwards of 15 seconds (before i ctrl Ced it) w/ the same file. Although csvs are kinda old fashioned, having a fast way to read or write to csv is a pretty important feature to have in a runtime. |
I still personally think this kind of thing should be implemented in the language itself, or if performance is really imperative, using FFI. |
This is really just an example file and is meant to be easy to read - not parse all CSV files correctly. I wouldn't mind adding CSV support to
|
I would like to be able to use Lune for manipulating my LocalizationTables. I don't really want to write my own Luau CSV parser, it's somewhat annoying.
The text was updated successfully, but these errors were encountered: