Cannot implicitly convert type ComputingTopic to type ProgrammingLanguage.
Cannot implicitly convert type ComputingTopic to type ProgrammingLanguage.
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.
Albert Einstein is alive.
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)
where sensor_right = probability of sensor being correct.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
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
the results go more murky, but still obvious:sensor_right = 0.7 p_move = 0.8
[[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.
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.
What?
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.
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?
No, I'm working on...
uh
shit
i'm not working on anything
I was going to make the same question.
Once I can find a minor bug in the move function of my localization program, I will have finished my homework for this weekend.
Those procedural textures from earlier + my planet shader from a while ago + a new atmosphere shader:
EDIT: Where can I host webm files?
I want to nominate you for a "Best pixels in thread" award.
I've noticed that some people in WAYWO just make random pretty shit.
I should learn how to make pretty shit.
mmm, sweet glow
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.
using a paticular library for this, or all homegrown?
This doesn't help me make pretty shit.
At first I thought I had a stroke when I saw it moving
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.
Got VGA output from my FPGA, finally!
![]()
why don't you go work on something and actually make shit rather than slagging off other morons
nice comments lol
there's documenting your code...
...and then there's this shit
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:
![]()
rated artistic because I don't know what's going on
or why people are giving you programming kings
I now have IDE:
![]()
He's writing an operating system. However, he's writing the majority of it in Javascript.
I think the latter is implied by the former.
That's freaking ridiculously awesome.
I think you have a bright future ahead of you
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
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.
I use puush for my videos since you don't run our of bandwidth :)
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.