Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pyjarrett
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
181.
▲
by
pyjarrett
5y ago
I added a note about how you can use the Alire 1.1 release candidate to install toolchains. > Ok, so if I download the GNAT Community Edition from Adacore, how I do switch GPS to use the FSF GNAT tool chain? Toolchains are customizable w
182.
▲
by
pyjarrett
5y ago
This isn't true. You can use GNAT (part of GCC) from the Free Software Foundation for free. I've worked in Ada for months without paying anyone anything. There are companies that offer paid support, but that's different.
183.
▲
by
pyjarrett
5y ago
I figured this was what he was referring to, but C++ is more familiar to a lot of people right now, which is why I couched my answer in those terms. Ada would still a good language to that work in.
184.
▲
by
pyjarrett
5y ago
That's a very welcome blast from the past! :) Feel free to send an email if you want to catch up.
185.
▲
by
pyjarrett
5y ago
In theory, yes, I'm vulnerable to reference cycles, but I haven't run into this in practice. The GNAT smart pointer types supports weak pointers if I need it.
186.
▲
by
pyjarrett
5y ago
I found it a lot easier than I thought it would be. Ada has RAII (controlled types) which you can use for reference counting and resource management like in C++. Septum uses a lot of dynamically allocated memory, but it's all hidden b
187.
▲
by
pyjarrett
5y ago
> if your goal is to write a (say) safe implementation of the DOM that can render real-world web pages while efficiently using memory on a general-purpose computer, Ada is probably the wrong tool for the job. Author here. Ada is actuall
188.
▲
by
pyjarrett
5y ago
Thanks for pointing this out. Fixed.
189.
▲
by
pyjarrett
5y ago
> What does the modern, idiomatic Ada programmer do about memory management? Author here. I've actually not had to do any heavy direct memory management yet. There's an RAII-based (i.e. Controlled Type) reference-counted poin
190.
▲
by
pyjarrett
5y ago
Thanks for mentioning this. Fixed.