Viewing profile — onox
onox
HN member- Joined
- Thu, Sep 03, 2020, 5:18 PM UTC
- HN karma
- 58
- Public activity
- 25 items
- HN profile
- View on Hacker News ↗
About onox
No profile information was provided.
Recent public activity
-
comment
Comment #32891088
I do not know the exact rationale of the Alire devs, but Ada already uses (since 83) the word "package" to indicate a module or namespace, so calling dependencies a "crate" seems t…
-
comment
Comment #32890976
This website is just a community effort to modernize parts of the online resources, because many parts like the current Ada Reference Manual look like they're from the 90s.
-
comment
Comment #32890929
Title page with legal info has been added!
-
comment
Comment #32890729
The text at the bottom says "unless otherwise noted". The .md files for the AARM are autogenerated and it seems the legal + foreword pages are missing. These indeed need to be adde…
-
comment
Comment #32582700
Arrays in Ada start at the index based on the index type of the array. You can even use an enumeration type as the index: type Day is (Monday, Tuesday, Wednesday, Thursday, Friday,…
-
comment
Comment #31643527
I had a similar problem last month where I needed to compute some results on multiple datasets (with a little bit of concurrency per dataset). In the end I just ported the code to …
-
comment
Comment #30750545
In Ada you can do something similar: delay 0.3; Or with package Ada.Real_Time: delay To_Duration (Milliseconds (300)); Or use `delay until`: delay until Clock + Milliseconds (300);…
-
comment
Comment #30439599
You can use git pull with the --allow-unrelated-histories option.
-
comment
Comment #30177368
Sorry, but I disagree. Maybe in the 80s when developers were all yelling while coding :p Does this look like cobol to you? type GUID_String is new String (1 .. 32) with Dynamic_Pre…
-
comment
Comment #30167774
If you want to avoid vulnerabilities and have fun with proving that your code is functionally correct, try the Ada/SPARK interactive tutorials at [1] :) [1] https://learn.adacore.c…
-
comment
Comment #29904356
I've been using ReScript for a few months now. So far I mostly like it, but it takes some time to get used to it. The error messages can be confusing though so I try not to depend …
-
comment
Comment #29197972
I'm writing a game engine [1], including a replacement for GLFW/SDL with support for gamepad rumble/motion/battery/LED (only for Wayland/Linux atm) [1] https://github.com/onox/orka…
-
comment
Comment #29197638
You can just do `apt install gnat` or `pacman -S gcc-ada` for free :)
-
comment
Comment #29192785
Recently I've used ReScript + esbuild for a completely webpack-free experience with just a small node_modules folder
-
comment
Comment #29020810
https://web.dev/content-visibility/ has a nice blog post about "content-visibility" and "contain".
-
comment
Comment #28877664
> Are you allowed to drive around in self built vehicles in Europe? Or did they convince all countries they cross to give them a special permit? The car has been inspected by the R…
-
comment
Comment #27755138
It seems you can already write kernel modules in Ada: https://github.com/alkhimey/Ada_Kernel_Module_Framework . Obviously it comes with a boatload of restrictions [1], so no taskin…
-
comment
Comment #27754951
> * Ada has pointer arithmetic, you can overflow buffers or read out of bounds. Not true. Arrays have bounds and those are checked. However, you can do arithmetic with the type ptr…
-
comment
Comment #27317658
To anyone who has a Linux distro and wants to try Ada (2012 on some): Debian/Ubuntu: sudo apt install gnat gprbuild Arch Linux: sudo pacman -S gcc-ada (get gprbuild from the AUR) N…
-
comment
Comment #27317516
SPARK2014 is just a tool (gnatprove), which you don't distribute to others (would be rather pointless). Compiling can be done with gnat from your Linux distro, which usually has th…
-
comment
Comment #27317403
The C interoperability of Ada is very good, you can import/export functions and specify whether records (structs) and arrays must have a C convention. I use it often to access libc…
-
comment
Comment #27088789
Couldn't you add the Bit_Order and Scalar_Storage_Order attributes (or aspects in Ada 2012) to your records/arrays? Or did Scalar_Storage_Order not exist at the time?
-
comment
Comment #25806493
C libraries/applications like these, which have many memory and logic bugs, should be written in SPARK. It can fully prove that your code is correct. The latest version of the SPAR…
-
comment
Comment #24998243
What are good reasons to choose Go? If I need a language for non-scripting tasks, I would choose Ada, which is very easy to read, has a nice type system and generics, performance, …
-
comment
Comment #24366743
Ada's type system allows you to separate the high-level specification of a type (which models a problem) and its low-level representation (size, alignment, bit/byte order, etc.). T…