New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Results 1 to 7 of 7
  1. - Top - End - #1
    Ogre in the Playground
     
    gomipile's Avatar

    Join Date
    Jul 2010

    Default Best true compiled programming languages for language processing?

    Basically, what true compiled (not JIT) languages are the closest to Python for ease and capability of programming parsers and language processing?

    I'm not asking for any speed increase. I'd just use Julia for that. This is for the capability of making a truly closed source software product, and to make runtime binaries that do not depend on an interpreter or JIT compiler on the target system at all.
    Quote Originally Posted by Harnel View Post
    where is the atropal? and does it have a listed LA?

  2. - Top - End - #2
    Ettin in the Playground
     
    Griffon

    Join Date
    Jun 2013
    Location
    Bristol, UK

    Default Re: Best true compiled programming languages for language processing?

    How long is a piece of string?

    On the other hand, I'm interested in seeing what answers you get. I've looked at Python, and on the whole I don't get it, it's just too different from c or Basic, for me, not that it's probably that different. There are complied Basics, and c is usually compiled, but I suspect they aren't what you want, and somebody probably knows something better. Pascal is something like c or Basic I've heard, but it's as old as they are.

    On a third hand, if you really want whacky out there languages, there's Forth, Prolog and Lisp.
    Last edited by halfeye; 2024-02-05 at 04:17 AM.
    The end of what Son? The story? There is no end. There's just the point where the storytellers stop talking.

  3. - Top - End - #3
    Ettin in the Playground
     
    Amidus Drexel's Avatar

    Join Date
    May 2012
    Location
    The Algol System
    Gender
    Male

    Default Re: Best true compiled programming languages for language processing?

    Quote Originally Posted by halfeye View Post
    How long is a piece of string?
    Or, in other words, what colour of string parser would goimpile like?

    Quote Originally Posted by gomipile View Post
    Basically, what true compiled (not JIT) languages are the closest to Python for ease and capability of programming parsers and language processing?

    This is for the capability of making a truly closed source software product, and to make runtime binaries that do not depend on an interpreter or JIT compiler on the target system at all.
    Sounds like the requirements are:

    1) At least a little bit like Python because you value Python's "easy" string processing. Maybe this would be more accurately stated as "The language must be decent enough at parsing text and sorting things into data structures", but that's basically every programming language. Even most assembly languages are pretty good at that, and assembly is pretty far from user-friendly in a modern context.

    2) Decent, publicly-available tools for parsing text that don't have copyleft licenses (so your software can be closed-source).

    A lot of the best tools for older compiled languages are open-source (and often with copy-left licenses that require you to also open-source your code), so closed-source means you're going to be building a lot of the tools yourself (or just not using those languages).

    -----------------
    My thoughts on the languages I know well enough to talk about:

    I'm a big fan of C (it's a classic!), but the things C shares with Python (potential for treating data types as fuzzy, heaps of GPL2-licensed libraries, very simple syntax and few base-language features) probably make what you're trying to do harder instead of easier.

    If you're okay with a bit of learning overhead, I'd recommend C++. Modern C++ is a weird beast, but it's decent enough at organizing data and offers several tools for string parsing that aren't available in C - it's definitely more "like Python" in that way. C++ also has some tools in its standard library to make memory management less manual (e.g. smart pointers), which is much friendlier to someone who isn't used to managing memory themselves.
    Avatar by FinnLassie
    A few odds and ends.

  4. - Top - End - #4
    Ogre in the Playground
     
    gomipile's Avatar

    Join Date
    Jul 2010

    Default Re: Best true compiled programming languages for language processing?

    Well, here's the problem. I know how to do these things in C, C++, Lisp, Forth, and Basic. I used to use all of those languages for language processing. But, I got a lot less work done in those languages(in NLP, specifically) than I can do in Python or Julia.

    The problem is that Python and Julia's builtins are amazing for this sort of thing. But, in all the compiled languages I used to use or am aware of, often what would be a 2 line function in Python or Julia becomes 2 or 3 screens of code and/or requires researching and including some library or header that is not a standard library.
    Quote Originally Posted by Harnel View Post
    where is the atropal? and does it have a listed LA?

  5. - Top - End - #5
    Orc in the Playground
     
    SwashbucklerGuy

    Join Date
    Aug 2011

    Default Re: Best true compiled programming languages for language processing?

    "Ease" and "compiled" don't really go together, but I'd probably suggest Rust. Of the compiled languages I've played with, it feels the most "pythonic", which isn't saying much but still.
    Quote Originally Posted by crayzz
    That a given person is known for his sex appeal does not mean that he is only known for his sex appeal.
    Quote Originally Posted by jere7my
    For instance, I am also known for my humility.

  6. - Top - End - #6
    Ogre in the Playground
    Join Date
    Aug 2022

    Default Re: Best true compiled programming languages for language processing?

    Quote Originally Posted by gomipile View Post
    Well, here's the problem. I know how to do these things in C, C++, Lisp, Forth, and Basic. I used to use all of those languages for language processing. But, I got a lot less work done in those languages(in NLP, specifically) than I can do in Python or Julia.

    The problem is that Python and Julia's builtins are amazing for this sort of thing. But, in all the compiled languages I used to use or am aware of, often what would be a 2 line function in Python or Julia becomes 2 or 3 screens of code and/or requires researching and including some library or header that is not a standard library.
    If you are really going for a closed license system though, you kinda have to do this. You must build your own libraries/headers/functions/whatever using base code rules, and then construct your code from that point. I guess it all really depends on how truely "in house" this is supposed to be. I'm not an actual coder professionally (I just play one sometimes), so I can't comment on specific languages (though you've listed off a pretty comprehensive set already). I'm honestly the idiot who will go off and write a whole code base of functions in some language I'm not super familiar with, only to have someone say "why didn't you just include <some available library>?", so... maybe not the best source. I actually sometimes struggle with newer languages precisely because they are so dependent on adding in modules or libraries to do anything.

    Then again, I once made a perl programmer cry by replacing his hundredsomething line script with a single command line once, so there is that. He was *so proud* of his work...

  7. - Top - End - #7
    Barbarian in the Playground
     
    Synesthesy's Avatar

    Join Date
    Aug 2013
    Location
    Italy, Turin

    Default Re: Best true compiled programming languages for language processing?

    Isn't there some kind of compiled version of Python? Something like Cython or whatever? I don't remember, my research about this are at least 7 years old... But I'm almost sure that something exists...
    Quote Originally Posted by Peelee View Post
    New suggestion: the MitD is an Italian Protean. Mamma mia!
    Quote Originally Posted by Ruck View Post
    Eyyy, I'm-a shiftin' da shapes and-a helping my amico Signore Stiffliano escape! Easyducio! Bada bing!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •