• What are you working on? v19
    6,590 replies, posted
[QUOTE=ROBO_DONUT;31914629]The main advantage is you wouldn't have to flip everything before sending it over the network, as network byte-order is big-endian also.[/url][/QUOTE] Except that really only is a standard concerning lower-layer protocols like IP or TCP. You are free to implement a little-endian protocol over that - and it is often the case. [QUOTE=ROBO_DONUT;31914629]Seriously, x86 is the only thing ruining a sort of standardization.[/QUOTE] ARM is by default little-endian. :v: [QUOTE=Jookia;31914407]I dunno, I guess I find it better to write memory forwards instead of backwards, having the most significant bit at the start of memory.[/QUOTE] There is no forward or backward way.
[QUOTE=q3k;31914719]There is no forward or backward way.[/QUOTE] UNIX vs NUXI
[QUOTE=Jookia;31915052]UNIX vs NUXI[/QUOTE] I've gotten used to writing my magic numbers in little-endian. 0x50534249 ftw!
Seems like the dumbest thing to have a discussion about.
[QUOTE=garry;31915303]Seems like the dumbest thing to have a discussion about.[/QUOTE] It is, I didn't actually mean to derail the thread, I just responded to [quote]Sometimes I wish I had more RAM and VRAM[/quote] with something equally as useless.
-fuck this isnt the lua section-
[QUOTE=garry;31915303]Seems like the dumbest thing to have a discussion about.[/QUOTE] Heck, the name "endianness" was taken from a meaningless quarrel (which resulted in a war) in [url=http://en.wikipedia.org/wiki/Lilliput_and_Blefuscu]Lilliput and Blefuscu[/url] over the practice of breaking eggs. Still better than vi vs. emacs (since everyone knows vi is superior :v:).
[QUOTE=garry;31915303]Seems like the dumbest thing to have a discussion about.[/QUOTE] At least there's some practical significance to it. We could be arguing tabs vs spaces, opening brackets on same line or new line, or the acceptable limit for levels of indentation.
[QUOTE=jalb;31905789]Just finishing up my final project in artificial intelligence. I have criminals trying to reach a hideout outside of the city. There are cops equipped with laser beams placed throughout the city. They start out using A* to find the quickest path to the end, however the quickest path is very dangerous. They use genetic algorithms to learn overtime which is the safest path. [media]http://www.youtube.com/watch?v=ewf0jLMV3AM[/media] This is before I made it so they died if their health is below 0, so ignore that. Also, what does everyone around here use to record their videos? I'm using camstudio but I couldn't get the lossless codec to work on this pc so the video came out pretty crappy.[/QUOTE] This is awesome. Although I have a feeling you could achieve the same thing in a much simpler way just by adjusting the weights of the path nodes based on how far they are from officers. But yeah wouldn't be as fun as also implementing a GA, just wondering if you had thought about this.
[QUOTE=ROBO_DONUT;31915704]At least there's some practical significance to it. We could be arguing tabs vs spaces, opening brackets on same line or new line, or the acceptable limit for levels of indentation.[/QUOTE] 2-4 spaces, k&r, whatever
[QUOTE=ROBO_DONUT;31915704]At least there's some practical significance to it. We could be arguing tabs vs spaces, opening brackets on same line or new line, or the acceptable limit for levels of indentation.[/QUOTE] Tabs, allman style (bracket on new line), 4.
[QUOTE=ROBO_DONUT;31915704]At least there's some practical significance to it. We could be arguing tabs vs spaces, opening brackets on same line or new line, or the acceptable limit for levels of indentation.[/QUOTE] 2 spaces, allman style, common sense
[QUOTE=ROBO_DONUT;31915704]At least there's some practical significance to it. We could be arguing tabs vs spaces, opening brackets on same line or new line, or the acceptable limit for levels of indentation.[/QUOTE] 4 spaces / Allman / ∞ (=common sense)
tabs, depends, as many as you need.
[QUOTE=q3k;31915414]Still better than vi vs. emacs (since everyone knows vi is superior :v:).[/QUOTE] Nah, ed is the best text editor.
6 spaces, whitesmiths, 4 levels max
[QUOTE=GranPC;31916317]Nah, ed is the best text editor.[/QUOTE] [quote="Ed Is The Standard Text Editor"] ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!! [...] Ed is for those who can *remember* what they are working on. If you are an idiot, you should use Emacs. If you are an Emacs, you should not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE SO-CALLED "VISUAL" EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!![/quote]
[QUOTE=CheeseMan;31916333]6 spaces, whitesmiths, 4 levels max[/QUOTE] [cpp] if (data != NULL && res > 0) { if (!JS_DefineProperty(cx, o, "data", STRING_TO_JSVAL(JS_NewStringCopyN(cx, data, res)), NULL, NULL, JSPROP_ENUMERATE)) { QUEUE_EXCEPTION("Internal error!"); goto err; } PQfreemem(data); } else if (!JS_DefineProperty(cx, o, "data", OBJECT_TO_JSVAL(NULL), NULL, NULL, JSPROP_ENUMERATE)) { QUEUE_EXCEPTION("Internal error!"); goto err; } [/cpp] Whitesmiths style master race [img]http://www.blogcdn.com/www.urlesque.com/media/2010/01/rk.png[/img]
[QUOTE=ROBO_DONUT;31915704]At least there's some practical significance to it. We could be arguing tabs vs spaces, opening brackets on same line or new line, or the acceptable limit for levels of indentation.[/QUOTE] 4 spaces, allman style, the indented line must fit on screen without word-warp EDIT: Dotmister rating everybody dumb whose coding style he doesn't like.
oh god what have i done
[QUOTE=r4nk_;31915819]This is awesome. Although I have a feeling you could achieve the same thing in a much simpler way just by adjusting the weights of the path nodes based on how far they are from officers. But yeah wouldn't be as fun as also implementing a GA, just wondering if you had thought about this.[/QUOTE] What if the positions of the police officers are unknown, as they would be given the example?
// indent wars }
[QUOTE=ROBO_DONUT;31916632]oh god what have i done[/QUOTE] Hey atleast you didnt bring up revision control systems
[QUOTE=Dr Magnusson;31916733]What if the positions of the police officers are unknown, as they would be given the example?[/QUOTE] Nothing is stopping you dynamically querying the position of the officers each frame, or each time their positions change (for moving officers). [editline]24th August 2011[/editline] Or wait, did you mean that semantically, the AI shouldn't be able to know where exactly the officers are? Yeah good question.
[QUOTE=danharibo;31916296]tabs, depends, as many as you need.[/QUOTE]If you aren't doing it this way then you shouldn't be doing it.
How about, every time an agent dies travelling a link, those two nodes are given an increased risk (calculated by how many times the link has been traveled vs. deaths on that link) and the paths then take the risk factor of each node into account? [editline]24th August 2011[/editline] [QUOTE=bootv2;31916858]maybe he did this to learn how to use artificial intelligence? the easiest way isn't always the best way to go.[/QUOTE] I know, that's what I said in my original post. Are we not allowed to discuss different methods of things now?
[QUOTE=danharibo;31916873]If you aren't doing it this way then you shouldn't be doing it.[/QUOTE] In case you didn't notice, we were all being ironic.
[QUOTE=Richy19;31916741]Hey atleast you didnt bring up revision control systems[/QUOTE] Mercurial master race
[QUOTE=Icedshot;31917139]Mercurial master race[/QUOTE] Use what you think is the best master race
[QUOTE=sim642;31917172]Use what you think is the best master race[/QUOTE]So git
Sorry, you need to Log In to post a reply to this thread.