{"id":335,"date":"2009-05-02T21:06:23","date_gmt":"2009-05-03T05:06:23","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=335"},"modified":"2009-05-02T21:06:23","modified_gmt":"2009-05-03T05:06:23","slug":"trouble-with-strong-type-language","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2009\/05\/02\/trouble-with-strong-type-language\/","title":{"rendered":"Trouble with strong type language"},"content":{"rendered":"

I believe I just had spent too much time on languages like C and Perl (though I’m not good at Perl at all), so I got enough trouble with strong type language, like Ada, as you can imagine.<\/p>\n

I would like to say the problem comes from programming with mixed languages – I’m doing my PPCam project on Windows platform, all APIs, no wonder, are in C format, and I believe things will be the same on Linux though Ada may have better binding for non-GUI libraries. I have all sort of pointers passed to\/returned from APIs and get to convert them to corresponding arrays, and this becomes boring due to Ada is a strong type language thus even for similiar types you have to do the same thing again, even as simple as to instantiate a new Unchecked_Conversion. Let me say it again, BORING.<\/p>\n

I don’t know what happens to OS X, I got impression that most API there were in Object Pascal format but I never did serious programming on Mac (maybe time to take a try?), but it doesn’t matter at all now as I will spend at least 2\/3 of my time on Windows and Linux programming, as best case for OS X is I can take it as 1st tier platform as Windows and Linux.<\/p>\n

So using Ada with C is still my destiny, have to live with it, I think I just need to accumulate enough convertors to make things work.<\/p>\n","protected":false},"excerpt":{"rendered":"

I believe I just had spent too much time on languages like C and Perl (though I’m not good at Perl at all), so I got enough trouble with strong type language, like Ada, as you can imagine. I would like to say the problem comes from programming with mixed languages – I’m doing my […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/335"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":1,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions\/336"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}