What programming language should I use

Discussion in 'Offtopic Discussions' started by netcat, Sep 6, 2017.

  1. netcat

    netcat Member

    Joined:
    May 3, 2016
    Messages:
    72
    um..
    java is the second worst language to code on the pyra
    the worst is c++
     
    Tags:
  2. tarator

    tarator Very Active Member

    Joined:
    Jun 4, 2016
    Messages:
    150
    Location:
    Vienna
    Why is that?
     
  3. netcat

    netcat Member

    Joined:
    May 3, 2016
    Messages:
    72
    ok fine it's a bold statement
    but on my zaurus back in my youth
    java sucked because of memory greed
    c++ took ages to compile
    the interpreted work flow suits such a device
     
    Alberto likes this.
  4. Peixinho

    Peixinho Still Fresh

    Joined:
    Mar 28, 2014
    Messages:
    9
    Location:
    Portugal
    I use a raspberry pi to compile my c++ projects and I think its good enough, so the pyra should be much better on that, Im pretty sure
     
    netcat likes this.
  5. elvissteinjr

    elvissteinjr Very Active Member

    Joined:
    Aug 23, 2013
    Messages:
    428
    Location:
    Germany
    The compile time negligible if the resulting code runs fast. C++ is fine, imo.
     
    rygD likes this.
  6. netcat

    netcat Member

    Joined:
    May 3, 2016
    Messages:
    72
    code::blocks?
    I prefer little overlap between portables and desktops
    so you don't compare the two as much
    and don't develope a preference
    on pyra I'll do only scripty hacks
    and games that don't work well on the rpi
    --- Double Post Merged, Sep 6, 2017, Original Post Date: Sep 6, 2017 ---
    are you by any chance not a developer?
    :cool:
     
  7. slaeshjag

    slaeshjag ¯\_(ツ)_/¯

    Joined:
    Apr 8, 2010
    Messages:
    2,687
    Location:
    ~Stockholm, Sweden
    I prefer my code to not run like garbage :p
     
    rygD likes this.
  8. Peixinho

    Peixinho Still Fresh

    Joined:
    Mar 28, 2014
    Messages:
    9
    Location:
    Portugal
    I use make directly, so its compilation only
     
  9. rygD

    rygD Nihilistic Mystic

    Joined:
    Feb 28, 2014
    Messages:
    7,351
    Location:
    Everywhere
    So I should start off with C then?
     
    Haraldur likes this.
  10. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    11,100
    Location:
    Somewhere off the coast of the EU
    If you want to go all the way back in the C++ line, you should probably start with BCPL (the 'Before C Programming Language'). I just found and compiled a BCPL compiler on Linux while writing this comment, so it should be possible to do that on Pandora, Pyra or whatever too.
     
    rygD likes this.
  11. elvissteinjr

    elvissteinjr Very Active Member

    Joined:
    Aug 23, 2013
    Messages:
    428
    Location:
    Germany
    I am a developer, though it may depend on what you think a real developer is. I'm not a doing it as a job, if that's what you're after.
    I've already compiled and run my code on the Pyra and it runs just fine.

    I'm still genuinely curious what you'd recommend everyone to use instead. Some actual arguments instead of a cool smiley face would be great.
     
    xnopasaranx likes this.
  12. Dark Pulse

    Dark Pulse Retreaux

    Joined:
    Jun 12, 2013
    Messages:
    189
    Come on, guys. We all know the best programing language on the Pyra will be Brainfuck.

    How can you beat a "Hello World" program of:
    Code:
    ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
    Only competition, IMO, would be LOLCODE.

    Code:
    HAI 1.0
    CAN HAS STDIO?
    I HAS A VAR
    IM IN YR LOOP
       UP VAR!!1
       VISIBLE VAR
       IZ VAR BIGGER THAN 10? KTHX
    IM OUTTA YR LOOP
    KTHXBYE
    
     
    rygD, elwing, spud42 and 2 others like this.
  13. Djoga'Ro

    Djoga'Ro moonstruck

    Joined:
    Apr 3, 2016
    Messages:
    848
    If you don't write your highly optimized code in Brainfuck, something's wrong with you.
     
    Dark Pulse and jparish1977 like this.
  14. Caine

    Caine Hardcore Member

    Joined:
    Jun 5, 2008
    Messages:
    4,081
    Location:
    Netherlands
    There can be only LISP.
     
  15. netcat

    netcat Member

    Joined:
    May 3, 2016
    Messages:
    72
    yes
    c is an excellent choice if your objective is to learn about computers at a low level.
    if you just want to build things maybe a high level language with a lot of libraries might be better.
    --- Double Post Merged, Sep 7, 2017, Original Post Date: Sep 7, 2017 ---

    sorry for being unclear:
    in experience on the zaurus (another clamshell) I much preferred coding interpreted (ie: scripting) languages.
    reason is compilation took too long.
    I taught myself ruby on the train to my parents house.
    also hacked perl and c (which compiles fast).
    if you want a first language suggestion from me it would be python for sure.
    --- Double Post Merged, Sep 7, 2017 ---
    I had a scheme interpreter too!
    --- Double Post Merged, Sep 7, 2017 ---
    explicit deallocation ftw
     
  16. sebt3

    sebt3 homebrew player (P. & C.)

    Joined:
    Sep 9, 2008
    Messages:
    4,747
    Location:
    France
    On the pandora/pyra :
    C for everything low-level, C++ for everything else :)

    And so you prefered to put the slowness on your users ? "cool bro"
    Cross-compilation or distcc anyone ?
     
    pmprog and rygD like this.
  17. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,394
    Location:
    France, near Lyon
    C++ is slower than C to compile, sure. But you only feel it on large, multi-dev project. You don't feel any slowiness on single-man project size. And that on Pandora, so on Pyra, you just wont feel it...
     
    rygD and ClockworkCoder like this.
  18. netcat

    netcat Member

    Joined:
    May 3, 2016
    Messages:
    72
    the question was: which language to use to learn programming on the pyra.
    on the pyra
    I felt it on small toy projects.
    iirc c++ was ~10x slower than c, probably due in no small part to my use of stl.
    and yes, i tried a bunch of tricks: -0, -pipe, many compilation units..
     
  19. _jr_

    _jr_ Advanced Member

    Joined:
    May 5, 2013
    Messages:
    1,170
    While I agree there are very small files in freeorion (ironically the script parser files) that literally take gigs of RAM and minutes to compile. I haven't checked whether that is the fault of boost or the fault of the boost user, but obviously it is very easy even for a single person to create code that isn't fun to compile in C++ compared to other C like dialects.
     
    netcat likes this.
  20. Letalis Sonus

    Letalis Sonus Advanced Member

    Joined:
    Mar 5, 2009
    Messages:
    1,049
    Welcome to the dependency hell, there's enough libs for everyone! You want some IO helper functions for your console program? Let me smash the Qt Framework into you face!
     
    FBnil, rygD and netcat like this.

Share This Page

Loading...