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
{{ message }}
This repository has been archived by the owner on May 29, 2018. It is now read-only.
Both in AtlasOS and now also here in Atlas2, you've decided to use null-terminated strings as the standard string format both for system constants, and in the standard API...
But what about quitting using null-terminated strings and evolve our operating system's infrastructure completely by using length-prefixed strings?
Its an interesting suggestion. I thought about that too. The only reason not to do it is the compatibility to C. A second issue is, that we waste one byte per character when using one word to save it. How about a length-prefixed compressed string?
If we're going to make our own programming language, should it be strongly typed, or weakly?
I can imagine that most of the people who are going to use it are probably the users themselves who need to write fast, imperative scripts... thus a weak typing paradgim should be the best option?
Its depends. A scripting language should be weakly typed. A precompiled language (maybe at install time or first run) should be strongly typed so we can optimize it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Both in AtlasOS and now also here in Atlas2, you've decided to use null-terminated strings as the standard string format both for system constants, and in the standard API...
But what about quitting using null-terminated strings and evolve our operating system's infrastructure completely by using length-prefixed strings?
I could write multi-dimensional arrays containing arguments for p-strings, and disadvantages of t-strings, but let me just leave a few mere hyperlinks: 😉
http://en.wikipedia.org/wiki/String_(computer_science)#Null-terminated
http://en.wikipedia.org/wiki/String_(computer_science)#Length-prefixed
http://en.wikipedia.org/wiki/Null-terminated_string#Limitations
The text was updated successfully, but these errors were encountered: