1. Post #2761
    Rayjingstorm's Avatar
    June 2010
    1,536 Posts
    Binary is not a programming language.
    Cannot implicitly convert type ComputingTopic to type ProgrammingLanguage.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 11Agree Agree x 2Disagree Disagree x 1 (list)

  2. Post #2762
    I am a moderator.
    Swebonny's Avatar
    August 2006
    13,007 Posts

    Quicksort speeds
    Either using a random pivot or a pivot in the middle. Still no match to Java's own sort though...
    Oh, and with insertion means that the quicksort halts and switches to insertionsort once a certain length of the subarray is reached.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Informative Informative x 5 (list)

  3. Post #2763
    LuaGuy's Avatar
    April 2011
    129 Posts
    Binary is not a programming language.
    Albert Einstein is alive.
    Reply With Quote Edit / Delete Windows 7 Turkey Show Events Funny x 5Informative x 3Agree x 1Zing x 1Disagree x 1 (list)

  4. Post #2764
    ..............
    nekosune's Avatar
    February 2009
    1,827 Posts
    Woo
    given the beginning settings
    With the robot not knowing where it is (ie each cell has a probability of 1/20 of the robot being in it)
    colors = [['red', 'green', 'green', 'red' , 'red'],
              ['red', 'red', 'green', 'red', 'red'],
              ['red', 'red', 'green', 'green', 'red'],
              ['red', 'red', 'red', 'red', 'red']]
    
    measurements = ['green', 'green', 'green' ,'green', 'green']
    
    
    motions = [[0,0],[0,1],[1,0],[1,0],[0,1]]
    
    sensor_right = 1
    
    p_move = 1
    
    where sensor_right = probability of sensor being correct.
    and p_move = probability the robot moves when it went to.
    It senses first each measurement in Measurements.
    Then moves the movement in Motions for a total of 5 different steps.
    My code returns this as the probability of the robot being in each cell:
    [[0, 0, 0, 0, 0],
     [0, 0, 0, 0, 0],
     [0, 0, 0, 1, 0],
     [0, 0, 0, 0, 0]]
    

    if I put the probabilities to somethign slightly lower, ie
    sensor_right = 0.7
    
    p_move = 0.8
    
    the results go more murky, but still obvious:

    [[0.01739584, 0.009495411, 0.03131152, 0.06291565, 0.04663561],
     [0.006167764, 0.009725268, 0.0519483, 0.1339488, 0.01248355],
     [0.006869518, 0.008857822, 0.08095415, 0.2798366, 0.07659986],
     [0.0117818, 0.006167764, 0.01600207, 0.06107029, 0.06983248]]
    

    So I now have a program, that given external data, and a map that shows that data, work out where it is as it moves.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Informative Informative x 2Funny Funny x 1 (list)

  5. Post #2765
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts

    Quicksort speeds
    Either using a random pivot or a pivot in the middle. Still no match to Java's own sort though...
    Oh, and with insertion means that the quicksort halts and switches to insertionsort once a certain length of the subarray is reached.
    There's a chance that Array.sort() is running native code, and could be applying optimizations that your code might not be able to do.
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Agree Agree x 7Informative Informative x 1 (list)

  6. Post #2766
    itty-bitty pretty kitty
    Dennab
    September 2008
    9,837 Posts
    Albert Einstein is alive.
    What?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 5Dumb Dumb x 1 (list)

  7. Post #2767
    I am a moderator.
    Swebonny's Avatar
    August 2006
    13,007 Posts
    There's a chance that Array.sort() is running native code, and could be applying optimizations that your code might not be able to do.
    Yeah, a friend told me that that the java Arrays.sort() uses different sorting algorithms depending on the array. Can't really remember which, possible quicksort, heapsort and some more.

    Programming is still a bit like magic to me. But man, it's do damn satisfying to learn new stuff and see the results in front of your eyes.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events

  8. Post #2768
    itty-bitty pretty kitty
    Dennab
    September 2008
    9,837 Posts
    Ha.
    Ha ha ha.
    Ha.
    http://www.terrariaonline.com/thread...-coders.81589/

    This is his "Main Menu":


    wait wat he says it's in C++ and he's making in in visual basic 2010 express
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 30 (list)

  9. Post #2769
    I am a moderator.
    Swebonny's Avatar
    August 2006
    13,007 Posts
    At least the single player is nice.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Agree x 16Funny x 8Zing x 2Programming King x 1Winner x 1 (list)

  10. Post #2770
    Gold Member
    synthiac's Avatar
    June 2007
    1,090 Posts
    Ha.
    Ha ha ha.
    Ha.
    http://www.terrariaonline.com/thread...-coders.81589/

    This is his "Main Menu":


    wait wat he says it's in C++ and he's making in in visual basic 2010 express
    so, this is what you're working on?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 9Zing Zing x 3Dumb Dumb x 3Agree Agree x 2 (list)

  11. Post #2771
    itty-bitty pretty kitty
    Dennab
    September 2008
    9,837 Posts
    so, this is what you're working on?
    No, I'm working on...





    uh
    shit
    i'm not working on anything
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 13Friendly Friendly x 2Dumb Dumb x 1 (list)

  12. Post #2772
    Cesar Augusto's Avatar
    January 2010
    213 Posts
    I was going to make the same question.
    Reply With Quote Edit / Delete Windows XP Brazil Show Events

  13. Post #2773
    ..............
    nekosune's Avatar
    February 2009
    1,827 Posts
    Once I can find a minor bug in the move function of my localization program, I will have finished my homework for this weekend.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  14. Post #2774
    Gold Member
    Smashmaster's Avatar
    April 2005
    1,506 Posts
    Those procedural textures from earlier + my planet shader from a while ago + a new atmosphere shader:



    EDIT: Where can I host webm files?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Artistic Artistic x 33Winner Winner x 4 (list)

  15. Post #2775
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    Those procedural textures from earlier + my planet shader from a while ago + a new atmosphere shader:

    I want to nominate you for a "Best pixels in thread" award.
    Reply With Quote Edit / Delete Linux United Kingdom Show Events Agree Agree x 19Friendly Friendly x 1 (list)

  16. Post #2776
    Person
    geel9's Avatar
    June 2008
    5,595 Posts
    I've noticed that some people in WAYWO just make random pretty shit.

    I should learn how to make pretty shit.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 12 (list)

  17. Post #2777
    Everyone has a $1 title
    Skipcast's Avatar
    November 2008
    7,049 Posts
    mmm, sweet glow

    Reply With Quote Edit / Delete Windows 7 Sweden Show Events Artistic Artistic x 9Agree Agree x 2Programming King Programming King x 2Friendly Friendly x 1 (list)

  18. Post #2778
    Gold Member
    Smashmaster's Avatar
    April 2005
    1,506 Posts
    I've noticed that some people in WAYWO just make random pretty shit.

    I should learn how to make pretty shit.
    My stuff isn't random. If you look at my content, you'll notice that it is ALL space related.

    That or it's a smaller part of something that is going to be space related.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 2 (list)

  19. Post #2779
    ..............
    nekosune's Avatar
    February 2009
    1,827 Posts
    mmm, sweet glow

    using a paticular library for this, or all homegrown?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  20. Post #2780
    Person
    geel9's Avatar
    June 2008
    5,595 Posts
    My stuff isn't random. If you look at my content, you'll notice that it is ALL space related.

    That or it's a smaller part of something that is going to be space related.
    This doesn't help me make pretty shit.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 9 (list)

  21. Post #2781
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    Those procedural textures from earlier + my planet shader from a while ago + a new atmosphere shader:



    EDIT: Where can I host webm files?

    At first I thought I had a stroke when I saw it moving
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Funny Funny x 12 (list)

  22. Post #2782
    Map in a box's Avatar
    July 2009
    7,193 Posts
    Found that guys thing interesting(whoever was doing this) so spent 5 minutes on this:

    Class"Vec2"{ Constructor=function(x,y) return {x=x or 0,y=y or 0} end, __add=function(v1,v2) return Vec2(v1.x+v2.x,v1.y+v2.y) end, __tostring=function(self) return self.x..","..self.y end, Test=function() print("yes") end } print((Vec2(10,10)+Vec2(20,20)):Test())
    It works perfectly. Wow that was easy. Thinking about giving it to the pass along thing before we get too far in development for it to be useful.
    Reply With Quote Edit / Delete Windows XP United States Show Events

  23. Post #2783
    Gold Member
    Lapsus's Avatar
    June 2006
    1,074 Posts
    Got VGA output from my FPGA, finally!

    Reply With Quote Edit / Delete Windows 7 Canada Show Events Winner Winner x 11Programming King Programming King x 2 (list)

  24. Post #2784
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    No, I'm working on...





    uh
    shit
    i'm not working on anything
    why don't you go work on something and actually make shit rather than slagging off other morons
    Reply With Quote Edit / Delete Mac Australia Show Events Agree Agree x 4 (list)

  25. Post #2785
    itty-bitty pretty kitty
    Dennab
    September 2008
    9,837 Posts
    why don't you go work on something and actually make shit rather than slagging off other morons
    fine

    have some unexplained code
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  26. Post #2786
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    nice comments lol
    Reply With Quote Edit / Delete Mac Australia Show Events Agree Agree x 3 (list)

  27. Post #2787
    Gold Member
    synthiac's Avatar
    June 2007
    1,090 Posts
    there's documenting your code...
    fine

    have some unexplained code
    ...and then there's this shit
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 13Funny Funny x 4Disagree Disagree x 1 (list)

  28. Post #2788
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    Wrote a PS2 driver and a generic keyboard driver that receives scancodes from the hardware-specific drivers and handled them accordingly.

    I also added dynamic image loading functionality. The only image that's automatically loaded and executed is /kernel/init.jmg. init is responsible for loading and running other images as it sees fit.



    Here's init.js:



    And here's drivers/ps2.js:

    Reply With Quote Edit / Delete Mac Australia Show Events Programming King Programming King x 35Artistic Artistic x 2Informative Informative x 1 (list)

  29. Post #2789
    mutated's Avatar
    October 2010
    1,514 Posts
    mysterious business
    rated artistic because I don't know what's going on

    or why people are giving you programming kings
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative x 3Agree x 2Dumb x 1Optimistic x 1Funny x 1Useful x 1 (list)

  30. Post #2790
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    I now have IDE:



    Reply With Quote Edit / Delete Mac Australia Show Events Programming King Programming King x 9 (list)

  31. Post #2791
    Gold Member
    Nipa's Avatar
    June 2006
    1,095 Posts
    rated artistic because I don't know what's going on

    or why people are giving you programming kings
    He's writing an operating system. However, he's writing the majority of it in Javascript.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Friendly Friendly x 1 (list)

  32. Post #2792
    Gold Member
    Ortzinator's Avatar
    May 2005
    1,647 Posts
    rated artistic because I don't know what's going on

    or why people are giving you programming kings
    I think the latter is implied by the former.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 1 (list)

  33. Post #2793
    Resident Beat Eater.
    wauterboi's Avatar
    August 2009
    3,786 Posts
    He's writing an operating system. However, he's writing the majority of it in Javascript.
    That's freaking ridiculously awesome.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 7 (list)

  34. Post #2794
    Gold Member
    ZenX2's Avatar
    February 2009
    4,965 Posts
    I now have IDE:



    I think you have a bright future ahead of you
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 15Friendly Friendly x 2 (list)

  35. Post #2795
    duno's Avatar
    October 2007
    437 Posts
    I couldn't help but notice all of you guys aren't posting gif image animations but real videos, uploading to YouTube doesn't seem like the kind of thing a programmer would do. how?
    Reply With Quote Edit / Delete Mac United States Show Events

  36. Post #2796
    Gold Member
    ShaunOfTheLive's Avatar
    November 2007
    9,824 Posts
    I couldn't help but notice all of you guys aren't posting gif image animations but real videos, uploading to YouTube doesn't seem like the kind of thing a programmer would do. how?
    convert to webm format, upload and share on dropbox, use [video] tags
    Reply With Quote Edit / Delete Windows 7 Canada Show Events

  37. Post #2797
    Zyx
    Guest 3855 is lost and can't find the park exit
    Zyx's Avatar
    February 2005
    2,827 Posts
    We're having game programming in school. I know that later we're going to make a game ourself for an exam, so I casually started now. Some areas I should explore is AI or multiplayer games.
    Here's what I got so far

    The small black squares be bullets yo.
    Reply With Quote Edit / Delete Windows 7 Show Events Programming King Programming King x 1 (list)

  38. Post #2798
    garry's Avatar
    September 2001
    12,376 Posts
    I use puush for my videos since you don't run our of bandwidth :)
    Reply With Quote Edit / Delete Windows 7 Show Events Informative Informative x 2 (list)

  39. Post #2799
    Paid for a title.
    Maurice's Avatar
    June 2005
    6,175 Posts

    I don't have an excuse.
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Funny Funny x 37Winner Winner x 6Disagree Disagree x 1 (list)

  40. Post #2800
    Gold Member
    ZenX2's Avatar
    February 2009
    4,965 Posts

    I don't have an excuse.
    That was one of my favorite parts of Super Paper Mario

    Edited:

    Also, I have reached my obligatory AI woes.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 6Informative Informative x 1 (list)