Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Third case, dealing with raw data from networks, from devices, from flash memory etc. where you actually need to manipulate every bit accurately.

I just started working on this kind of application (well, USB protocols, but same issues) in Nimrod.

First of all: just do "import unsigned" and you can work with unsigned just fine. I don't see why this is an issue, any more than that you have to do "import libusb".

Second: I found that, knowing that unsigned types are a second-class citizen lead me towards writing a much better library. It encourages you to expose only signed integers to the next level up in the app. The next thing I realized is that this will very quickly cause Nimrod programmers to write and adopt a "Protocol Buffers"-like library for dealing with network protocols, binary files and similar things. And that will be a much better solution than dealing with things like unsigned integers and endianess in manual code.



Sorry, wasn't saying it was an issue with the language, just another case where unsigned, raw data was useful.

I don't really see how unsigned are that much of a problem that they have to be dealt with specially...




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

Search: