Sea Dev Log - Episode 4: Adding Arrays and Removing Imaginaries
This episode is a bit wild. I discuss my planned implementation for arrays in Sea. I discuss a potential improvement for nullable types that doesn't actually work, and I remove Imaginary types from my language to drastically simplify my code.
I didn't discuss it in this video (since I'm all over the place in this one), but the primary reason I want sizes of arrays stored at runtime is for heap allocated arrays. If I don't know the size of a 2D array on the heap, I cannot automatically free it. I don't want my heap and stack array implementation to differ either. The main issue is just how pointers work in functions in C.
Sea’s Repo: https://github.com/DavidMacDonald11/Sea-Compiler
Thumbnail Background - Wave Ocean Sea by Elias from Pixabay: https://pixabay.com/photos/wave-ocean-sea-storm-tsunami-1913559/
Endcard Image by 200 Degrees from Pixabay https://pixabay.com/vectors/programmer-programming-code-work-1653351/
End Card Song - Password Infinity by Evgeny Bardyuzha from Pixabay: https://pixabay.com/music/beats-password-infinity-123276/