nevalang / neva

🌊 Dataflow programming language with static types and implicit parallelism. Compiles to machine code and Go
https://nevalang.org
MIT License
124 stars 7 forks source link

Bytes data type #28

Open emil14 opened 2 years ago

emil14 commented 2 years ago

There should be bytes type to work with stuff like JSON

emil14 commented 2 years ago

String solution

Just use string like javascript does

Problems

emil14 commented 2 years ago

New data type solution

Just add bytes as a wrapper around Go's []byte type

Problems


26

emil14 commented 1 month ago

why was it closed? anyway I think about adding byte (uint8) now

emil14 commented 1 month ago

Performance Overhread

if we will use list<byte> instead of bytes (with Go's []byte under the hood), there will be huge overhead - it's a []Msg where each Msg is an interface, all this for each small uint8!