I need a compiled language that has built-in compound data structures like lists and maps, excellent libraries like ncurses and SQLite out of the box. Imperative, has a concept of modules and easy c interface.
I don't like c, too barebones. I don't like pascal's syntax. Golang's libraries are too immature. Help /prog/
I don't like pascal's syntax.
That rules out roughly half of the "trying to be serious" languages in existence.
Golang's libraries are too immature.
The standard packages that comes with Go is pretty damn big considering that it seems they only pack in building blocks a C programmer would want, that is written in Go, and uses their BSD license. That cat-v site that gets posted every few days has a list of bindings to external projects.
I need a compiled language that has built-in compound data structures like lists and maps, excellent libraries like ncurses and SQLite out of the box. Imperative, has a concept of modules and easy c interface.
OpenCOBOL
Name:
Anonymous2012-09-30 20:41
I need a compiled language that has built-in compound data structures like lists and maps
C++ STL, C++ Boost (practically part of the language)
excellent libraries like ncurses and SQLite out of the box
Why does it have to be OOB? Is it so hard to install a couple libraries?
Imperative, has a concept of modules and easy c interface.
C++ doesn't have modules, but the C interface is obviously a given.
I don't like c, too barebones.
That's why you should use C++.
I don't like pascal's syntax. Golang's libraries are too immature. Help /prog/
Use fucking C++.
boost
the PHP of C++ that brings the Perl syntax out of C++
Name:
Anonymous2012-09-30 23:47
I'm guessing you want a compiled language for type safety (if this is not the case, just use Python or Ruby ffs).
I have to suggest C++ as well. The STL solves a fuckton of common programming problems and boost covers whatever else you might need. Pretty much any respectable library has C/C++ bindings. It has the effective properties of modules via namespaces. It is about as imperative a language as you'll find.
Also, C is very bare bones. That's sort of the point, and no serious developer would design a real world piece of software in C without a context-specific impetus to do so. Lacking objects, it has a pretty limited modern use case.
>>24
How about the fact that C has no generics. I could live without ``objects'' honestly, but having to re-write a million different versions of the same data structure is shitty. Also C has no namespaces.
>>24 Lacking objects
C++'s objects hardly go farther than the preprocessor they were birthed in. They are, on their own, a mere syntactic convenience. C++ doesn't have the good kind of objects.
Name:
Anonymous2012-10-01 0:40
>>15
The only reason I don't like Pascal is how frail its semicolon rules are. Other than that, no problem.
>>24
Yes, type safety is my concern, as well as built-in ADTs since it's going to be used to build ncurses-y business app for retails. Boring maybe but that's where the money is right now for me.
I figure I throw this out for /prog/ in case there's actually is an industry super secret productive silver bullet :p
Name:
Anonymous2012-10-01 0:42
>>28
I forgot to mention, clients actually abhors GUIs in favor of console UIs like Curses/Turbo Vision provides. Clicking around with your mouse gets old after awhile, even for non-programmers.
>>25 C has no namespaces
So don't generate collisions then. foo_x is not so much more to type than just x, and I see sepples programmers constantly using std:: all over the place anyway. It's just not that big of an issue.
Name:
Anonymous2012-10-01 6:18
Are people actually seriously suggesting Sepples? /prog/ what has happened to you? >>25,32
C has a couple of namespaces, one being for regular identifiers and another for identifiers preceded with struct, enum, etc. There may be more but they're not user-definable.
>>33
Oh hey there. Remember when it was just you, me and the Sußman? Well, Sußman doesn't come 'round here no more, but he has a lot of annoying friends who do.
Name:
Anonymous2012-10-02 7:27
There are no jews. Please continue with this programming-related discussion.