News for hackers. Stuff that matters.
Re:I Do Not Like Go by i_phish_cats on Friday December 21, 2018 @04:25AM (#18732249)
My first Go project was a PDF parser. Rewrote it in C a similar number of lines because Go's capacity for polymorphism is as primitive as in C.
Re:I Do Not Like Go by martingxx on Friday December 21, 2018 @04:57AM (#18732377)
Can you explain more about why you re-wrote?

You seem to have said you rewrote from Go because it has poor polymorphism, into C which is equally bad in this regard.

If you find some language feature important, surely you would not rewrite into a language that doesn't have that feature?

Re:I Do Not Like Go by i_phish_cats on Friday December 21, 2018 @03:35PM (#18736391)
C is equally bad, but it can be used anywhere -- it can be compiled into a dynamic lib and used in any language/framework, which is exactly what we did.
Re:I Do Not Like Go by IshKebab on Friday December 21, 2018 @04:58AM (#18732382)
True, though that doesn't seem like a good reason to rewrite it in C. A PDF parser in C sounds like a security nightmare, and now you have to deal with C's archaic build systems.