1. Post #1161
    q3k
    Gold Member
    q3k's Avatar
    October 2009
    921 Posts

    welcome to perl
    This actually makes sense... kind of. It's mostly some regexp magic.
    Reply With Quote Edit / Delete Linux Poland Show Events Agree Agree x 4 (list)

  2. Post #1162
    Mikolah's Avatar
    May 2011
    519 Posts
    Perl is like brainfuck, but taken seriously.
    Reply With Quote Edit / Delete Windows 7 Ukraine Show Events Agree Agree x 7Disagree Disagree x 1 (list)

  3. Post #1163
    calzoneman's Avatar
    February 2008
    460 Posts
    cant speak for how ass backwards it is because ive only written one script but yeah its really unpleasant to look at imo

    i can glance at lua and even unrealscript (get it together python jesus christ) and get an idea of what is going on, python just seems so weird and foreign, it feels like a low level language that functions as high level
    I sense a lot of Lua fanboyism in this thread. The man likes Python, who's to stop him from using it? I personally don't like Lua, but I wouldn't waste posts criticizing it just because someone decided to implement it in their program.
    Reply With Quote Edit / Delete Linux United States Show Events Agree Agree x 6Disagree Disagree x 1 (list)

  4. Post #1164
    dajoh's Avatar
    March 2011
    625 Posts
    I wouldn't call it "complex" though. You're just doing things at a lower level. Besides, there's tons of higher level wrappers available, just like there are with Python.
    Show me some code to expose a C++ class to Lua, then tell me it's not complex or tedious.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events

  5. Post #1165
    q3k
    Gold Member
    q3k's Avatar
    October 2009
    921 Posts
    The man likes Python, who's to stop him from using it?
    ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble whitespace ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble versioning hell ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble weird syntax ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble ramble cpython is slow ramble
    Reply With Quote Edit / Delete Linux Poland Show Events Agree Agree x 1Funny Funny x 1 (list)

  6. Post #1166
    dajoh's Avatar
    March 2011
    625 Posts
    I sense a lot of Lua fanboyism in this thread.
    This is true for all of Facepunch.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Agree Agree x 9Disagree Disagree x 3Funny Funny x 1 (list)

  7. Post #1167
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    The man likes Python, who's to stop him from using it?
    it seems like his first preference was Ruby but he couldn't get it to link.

    Edited:

    Not that I blame him - MRI's API might be better than most other languages' APIs, but the whole thing is still a pain in the ass to embed
    Reply With Quote Edit / Delete Australia Show Events Agree Agree x 1 (list)

  8. Post #1168

    welcome to perl
    =~ wat
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Dumb Dumb x 2 (list)

  9. Post #1169
    LobsterMts's Avatar
    July 2011
    84 Posts

    welcome to perl
    Still not as bad as Malbolge.
    Reply With Quote Edit / Delete Windows 8 Brazil Show Events Agree Agree x 2Dumb Dumb x 1 (list)

  10. Post #1170
    Gold Member
    ryandaniels's Avatar
    December 2006
    3,942 Posts
    My experience with python has been a bunch of syntax "gotcha"s whenever I pick it back up for a script of some sort (I don't use it a ton), but other than that, I've found it a fine, and even at times, a fairly nice language for doing huge variety of tasks without the hassle most languages have.

    I mostly use it for automation. My favorite script I wrote was this script that would pull all the images from a an fp thread, while simultaneously playing the set that had been downloaded in a slideshow. I also wrote one that mirrored all the assets in my release and debug folders. Oh, and I wrote a script that made my laptop beep at me when it became unplugged (the battery only had like a 10 second life after unplugged)
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative Informative x 1 (list)

  11. Post #1171
    Gold Member
    Lexic's Avatar
    March 2009
    6,123 Posts
    I sense a lot of Lua fanboyism in this thread. The man likes Python, who's to stop him from using it? I personally don't like Lua, but I wouldn't waste posts criticizing it just because someone decided to implement it in their program.
    It makes about as much sense as embedding perl, only slightly less because I can't see how you could have an inline console for a language which relies on whitespace to function.
    I've got nothing against Python, it's a great language. But as an in-game scripting language?
    Reply With Quote Edit / Delete Linux United Kingdom Show Events

  12. Post #1172
    q3k
    Gold Member
    q3k's Avatar
    October 2009
    921 Posts
    I can't see how you could have an inline console for a language which relies on whitespace to function.
    I use Python from the command line (as in using its the interactive python) all the freaking time, even to write complex code. Never ran into a problem with whitespace.
    Reply With Quote Edit / Delete Linux Poland Show Events

  13. Post #1173
    Gold Member
    Chandler's Avatar
    February 2006
    1,406 Posts
    I use Python from the command line (as in using its the interactive python) all the freaking time, even to write complex code. Never ran into a problem with whitespace.
    Seriously, unless you're mixing tabs and spaces (WHY WOULD YOU DO THIS?), you'd have to go out of your way to mess that up.
    Reply With Quote Edit / Delete Mac United States Show Events

  14. Post #1174
    Crescent fresh
    Perl's Avatar
    January 2011
    1,028 Posts
    Well, apparently you haven't read much Perl code

    Code:
     for ( split /\n/, $return ) {
        print "$_ boom\n";
        push( @a2, $_ );
        $_ =~ m#:(.+)#;
        my ( $a, $b, $c ) = split / /, $1;
    :'(

    Edited:

    inline regex
    Reply With Quote Edit / Delete Windows 7 Estonia Show Events Agree Agree x 1 (list)

  15. Post #1175
    Gold Member
    Lexic's Avatar
    March 2009
    6,123 Posts
    I use Python from the command line (as in using its the interactive python) all the freaking time, even to write complex code. Never ran into a problem with whitespace.
    There's quite a big difference between the python interactive interpreter and a typical game console.
    Reply With Quote Edit / Delete United Kingdom Show Events

  16. Post #1176


    "Randomly" generated (from a seed)

    Edited:



    Looks a bit nicer with 8x8 tiles
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Programming King Programming King x 5Winner Winner x 1Artistic Artistic x 1 (list)

  17. Post #1177
    This title has been removed due to a copyright claim from Viacom Inc.
    neos300's Avatar
    July 2008
    3,489 Posts
    it seems like his first preference was Ruby but he couldn't get it to link.

    Edited:

    Not that I blame him - MRI's API might be better than most other languages' APIs, but the whole thing is still a pain in the ass to embed
    This is true. I would have much rather have used ruby but embedding ruby was impossible due to lack of documentation.
    Reply With Quote Edit / Delete United States Show Events Agree Agree x 1 (list)

  18. Post #1178
    Gold Member
    danharibo's Avatar
    July 2006
    4,498 Posts
    This is true. I would have much rather have used ruby but embedding ruby was impossible due to lack of documentation.
    Did you look at V8? It's API is nice.
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Dumb Dumb x 3Disagree Disagree x 2Funny Funny x 1 (list)

  19. Post #1179
    Gold Member
    DoctorSalt's Avatar
    January 2009
    2,649 Posts
    Regarding Udacity, I haven't taken Python before (I've learned the basics of C++ and I've gotten pretty far into C#). Do you think I can skip the 101 course and take CS212 and CS262?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1 (list)

  20. Post #1180
    Fabulous!
    Jack Trades's Avatar
    April 2010
    6,483 Posts
    Finished Zombie model. IMO, looks damn great in-game. Time to animate it.
    Reply With Quote Edit / Delete Mac United States Show Events Optimistic Optimistic x 3Dumb Dumb x 1 (list)

  21. Post #1181
    Dotmister's Avatar
    May 2008
    898 Posts
    Did you look at V8? It's API is nice.
    The Google V8 API is horrendous. I've looked at a few scripting languages and it's by far the biggest and messy to implement.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 3 (list)

  22. Post #1182
    This title has been removed due to a copyright claim from Viacom Inc.
    neos300's Avatar
    July 2008
    3,489 Posts
    Did you look at V8? It's API is nice.
    I don't like javascript any more than python, unless I can get ruby working I'm not going to switch
    Reply With Quote Edit / Delete United States Show Events Agree Agree x 1 (list)

  23. Post #1183
    Gold Member
    danharibo's Avatar
    July 2006
    4,498 Posts
    The Google V8 API is horrendous. I've looked at a few scripting languages and it's by far the biggest and messy to implement.
    Oh? What others have you used?
    Reply With Quote Edit / Delete Linux United Kingdom Show Events

  24. Post #1184
    origamiguy's Avatar
    September 2011
    181 Posts
    Hello, moving blocks.

    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Programming King Programming King x 4Disagree Disagree x 1Winner Winner x 1 (list)

  25. Post #1185
    Moderator Illuminati
    Hexxeh's Avatar
    June 2006
    5,091 Posts
    What's better than a Raspberry Pi? Two Raspberry Pis, of course!



    Hoping to have Chromium running within a few days, getting screwed by toolchain issues at the moment.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Winner Winner x 24Friendly Friendly x 1 (list)

  26. Post #1186
    Gold Member
    The freeman's Avatar
    October 2007
    6,612 Posts
    Oh you bastard
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 12 (list)

  27. Post #1187
    Dotmister's Avatar
    May 2008
    898 Posts
    What's better than a Raspberry Pi? Two Raspberry Pis, of course!



    Hoping to have Chromium running within a few days, getting screwed by toolchain issues at the moment.
    I read your last post a bit too late to reply - but isn't 200MB of RAM waaay too low for chrome? My chrome is currently using 320MB for 1 Facepunch tab and 1 Stackoverflow tab (-8MB for one extension, and -10MB for the about:memory tab).
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  28. Post #1188
    Moderator Illuminati
    Hexxeh's Avatar
    June 2006
    5,091 Posts
    I read your last post a bit too late to reply - but isn't 200MB of RAM waaay too low for chrome? My chrome is currently using 320MB for 1 Facepunch tab and 1 Stackoverflow tab (-8MB for one extension, and -10MB for the about:memory tab).
    It'll eat memory if you have it to speed things up, but it can do surprisingly well on less memory. It'll just keep less tabs in memory, so when you switch to them, it has to reload them.
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Informative Informative x 7Agree Agree x 1 (list)

  29. Post #1189
    Icedshot's Avatar
    April 2010
    2,359 Posts
    It'll eat memory if you have it to speed things up, but it can do surprisingly well on less memory. It'll just keep less tabs in memory, so when you switch to them, it has to reload them.
    I seem to remember that you can change the memory model chrome uses, which can make it use substantially less memory (at the expense of speed and reliability)
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events Late Late x 1Agree Agree x 1Informative Informative x 1 (list)

  30. Post #1190
    Gold Member
    Lexic's Avatar
    March 2009
    6,123 Posts
    What's better than a Raspberry Pi? Two Raspberry Pis, of course!



    Hoping to have Chromium running within a few days, getting screwed by toolchain issues at the moment.

    >:(
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Friendly Friendly x 13Agree Agree x 2 (list)

  31. Post #1191
    I made WAYWO a better place
    OldFusion's Avatar
    September 2011
    1,311 Posts
    i used to run Chromium(the browser) on a 128mb tablet(SmartQ 5) (kinda from the before the tablet hype) it ran a ripped down version of Ubuntu and ran stable up to 5/6 tabs performing better then the browsers specifically made for low ram usage.

    I Also ran the Chrome beta under windows XP at 512 MB for a few months being the most efficient browser scaling perfectly with the amount of ram you have available.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 1Agree Agree x 1 (list)

  32. Post #1192
    Procedural terrain generation is more difficult than I thought so I'll just learn the basics of normal terrain generation for my Ludum Dare entry.
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Friendly Friendly x 1 (list)

  33. Post #1193
    Gold Member
    ace13's Avatar
    August 2006
    957 Posts
    At least you've gotten a delivery date estimate :|
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Agree Agree x 9Funny Funny x 2Friendly Friendly x 1 (list)

  34. Post #1194
    Icedshot's Avatar
    April 2010
    2,359 Posts
    Turns out, my graphics card was running in 2d mode for the entire duration that i've been running the particle simulator

    It really runs at 30 ms/frame for me with 2000 particles
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events Informative Informative x 1 (list)

  35. Post #1195
    Gold Member
    Matte's Avatar
    July 2009
    424 Posts
    Just made a huge leap in the development of our voxel engine by adding octree optimalization to the ray tracer. Still kind of unoptimized code, though, so I believe we can still gain some performance.


    Worldsize 13x13x13 chunks (each 32^3 blocks). Don't mind the landscape artifacts. Still got some data-fetching bugs to iron out in the ray tracer.


    Worldsize 5x5x5 chunks.

    And don't mind the huge grass walls either. They currently just signify the end of the known universe.
    Reply With Quote Edit / Delete Windows 7 Norway Show Events Programming King Programming King x 9 (list)

  36. Post #1196
    Gold Member
    jack5500's Avatar
    November 2007
    106 Posts
    Where did you get that from anyways?
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  37. Post #1197
    HQRSE FUCKER
    ief014's Avatar
    September 2009
    3,068 Posts
    I'm guessing you got the second batch.

    If you have an order from the first batch... (This should go for those who bought from Farnell/E14 or RS Components)
    The first batch is only being shipped out today. Estimated deliveries should be updated soon if it hasn't been already.

    So, if one lives in the UK, they may have already received it or going to receive shortly in the next few days.
    If one does not live in the UK, such as USA or something, they're being shipped from UK over to the distributors in the various countries by air, which then are ground shipped to you, so you can expect your pi in the mail during this week or the coming week.

    http://www.element14.com/community/docs/DOC-43262
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Informative Informative x 1 (list)

  38. Post #1198
    Andrew McWatters
    Dennab
    March 2011
    4,658 Posts
    wake up, see scripting language api discusssion

    yes

    Edited:

    If you want your scripts to be able to do more than just print to the console and read console input (i.e. you want them to be able to modify the behaviour of your application), then things get a lot more complex as you have to use the rest of the API to get/set Lua variables, add/edit metadata for your custom types and so on. None of that can be done with just lua_dofile unfortunately.
    if you're having problems, toss me a message on steam and we'll work out your issues

    Edited:

    Well, apparently you haven't read much Perl code

    -code-
    any language can look confusing if you intentionally make your code unreadable

    Edited:

    from what i've seen, api complexity amongst a few choice scripting languages is some what like this:

    in order of high-level to low-level oriented complexity:
    Code:
    Lua C API  /- (Fast production, high turn out rate level)
    Ruby C API \- (Fast production, high turn out rate level)
    
    
    
    Python C API
    
    
    
    
    
    
    
    
    
    
    
    
    V8 API (Why-would-you-ever-consider-using-it level)
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1Funny Funny x 1 (list)

  39. Post #1199
    Icedshot's Avatar
    April 2010
    2,359 Posts
    Turns out with 3000 particles, 10 ms is spent processing particles on the graphics card and 40ms is SFML playing with itself compiling circles. I'm going to have to swap to opengl at some point

    Edit:
    Fixed it, now 6000 particles runs at 40 ms/frame. A large time of that though is still spent with sfml not doing anything
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events

  40. Post #1200
    quality poster
    Dennab
    August 2009
    12,242 Posts
    I sense a lot of Lua fanboyism in this thread. The man likes Python, who's to stop him from using it? I personally don't like Lua, but I wouldn't waste posts criticizing it just because someone decided to implement it in their program.
    i never said he shouldn't use python i was just saying i don't like the way it looks
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1 (list)