Hacker News new | past | comments | ask | show | jobs | submit login

> Should be titled "without using malloc" or something. It's pretty much impossible to do anything with user input strings unless you have some sort of memory management

Title says "without dynamic memory allocation" == what means without malloc in this context, so static memory allocation ... where you do your own kind of memory management in fixed size arrays or more sophisticated if you want. It didn't say without memory management? (And article explains also why no strings or other unknown/arbitrary length stuff..)




Also, the article mentions the only entities are two fixed size types: accounts and transfers.

There are no user strings in TigerBeetle. :)

If anyone wants to see what you can store in accounts and transfers, check out the reference docs!

https://docs.tigerbeetle.com/reference/accounts

https://docs.tigerbeetle.com/reference/transfers


That's wild. So every column is fixed width?

Is anything nullable, or for like the user_data column, do you just use 0x0 to indicate no record?


Yep, every field is fixed width. Nullable would just be zero but N zeroe for the width of the field.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: