1,366 Results
[QUOTE=WinCat;43259129]It's to do with constructors / destructors, new only has to store size of object. while new[] stores (element size + the number of elements) then calls the constructor on all of the elements. for my memory system I just use templates on the type so t...
HubmaN Programming Reply
[QUOTE=ZeekyHBomb;43088854]What do you think about Rust? I really want to try it, but for reasons beyond my conscious mind ([sp]laziness[/sp]) I have not yet done anything but read some stuff about it.[/QUOTE] -snop-
HubmaN Programming Reply
- snop -
HubmaN Programming Reply
- snop -
HubmaN Programming Reply
[QUOTE=Chris220;43025965]I started learning Haskell at one point, I thought it might be interesting to learn since I've heard a lot about it from a lot of people. However, after I got through most of the syntax and learned something of how programming in Haskell works, I had t...
HubmaN Programming Reply
[QUOTE=MegaJohnny;42977772]Unless I'm mistaken, doesn't SFML's 2D library use OpenGL for the backend anyway? You might be fine.[/QUOTE] It does - Windows manage an OGL context each. Although it all seems to solely act as a curious implementation detail: Gomilia's done an a...
HubmaN Programming Reply
[QUOTE=Eudoxia;42842686]Is your widget something like [URL="https://code.google.com/p/cl-the/"]cl-the[/URL]?[/QUOTE] You overestimate how lucky I am - I was thinking of standard good 'ol the, declare, proclaim, and declaim, but the deeper I get go down the rabbit hole, the...
HubmaN Programming Reply
[QUOTE=Eudoxia;42842011]I've been benchmarking different Common Lisp HTTP servers. Not very impressed (From 200 to 2000 reqs/second). Then I saw [URL="https://github.com/kellabyte/Haywire"]this[/URL], and now I want to write a Common Lisp FFI to it and see what kind of reqs/se...
HubmaN Programming Reply
[QUOTE=Jookia;42752918]Partial states? I don't know how that relates well. Recently I've just been wondering where FRP fits in and I'm start to figure out how it could be helpful by looking it from the perspective of 'functions that change over time', kind of like stateful ...
HubmaN Programming Reply
[QUOTE=Dolton;42739777]I'm not sure how else to optimize my OpenGl project. I rewrote it from the ground up because the first time I was using a tutorial. Even minimizing state changes I can only have ~5,000 objects with unique transformations before I become CPU limited. ...
HubmaN Programming Reply
Yer a minor celebrity, Eudoxia!
HubmaN Programming Reply
[QUOTE=ZeekyHBomb;42530037] [editline]15th October 2013[/editline] And if you're talking about the MoveConstructible requirement as specified by ยง17.6.3.1 Table 20, note that rv is an rvalue reference.[/QUOTE] You're entirely right - I'd entirely misplaced the "in addi...
HubmaN Programming Reply
Something that hasn't quite arrived in my intuition yet - MoveConstructive requires and implies CopyConstructible; odd, because enabling move-constructibility seems to make up a valid and self-consistent policy of its own of only allowing a single copy of an instance to exist ...
HubmaN Programming Reply
[QUOTE=asantos3;42509534]Can you give me good C++ books? For begginers and for someone who already knows how to program... [editline]13th October 2013[/editline] What do you guys think about: - Accelerated C++ - C++ Primer 5th edition[/QUOTE] Soustrup's recent keyn...
HubmaN Programming Reply
[QUOTE=Cold;42491752]I think you are overestimating the amount of people who find that png/gif easily digestible.[/QUOTE] Precisely few do, in fact - I don't think the mechanics of how mathematician brain-time is allocated when you're fighting up a tenure track are going t...
HubmaN Programming Reply
[QUOTE=nomad1;42448443]Are mobile device emulators always shit? Tizen is running my donkey kong clone using webgl at 10 frames, while my ipod running canvas 2d (much slower then webgl) is running my game at 30 - 45 fps. Edit: Did I mention i'm using Intel HAXM? Wel I am and...
HubmaN Programming Reply
-snop-
HubmaN Programming Reply
[QUOTE=ZeekyHBomb;42318088] There's certainly some insight to be gained about LISPers, but I don't think that in addition to Haskell it's going to open up new ways of tackling problems.[/QUOTE] You most certainly will find novel tools for your toolkit, although you'll hav...
HubmaN Programming Reply
[QUOTE=ZeekyHBomb;42293909][url]http://www.pi-programming.org/[/url] Something like this? It's not developed anymore though..[/QUOTE] Instead of having to contort yourself around arbitrary grammars, though, a popular choice's been to design the grammar for quick de/serial...
HubmaN Programming Reply
[QUOTE=Ziks;42289420]I've been thinking about a language that defines as much of its own syntax as possible. Obviously the lowest level stuff would have to be implemented in the compiler, but I'm wondering what the minimum amount of predefined stuff would have to be to be able...
HubmaN Programming Reply
-snip, spoke just a bit too quickly for comfort-
HubmaN Programming Reply
D'oh, of [i]course[/i] the stack frame gets clobbered. I'm whacking my head for not having thought of that earlier. (Now I'm wondering how GCC did that in the Bad Old Days - did it desugar on the original AST?)
HubmaN Programming Reply
[QUOTE=Jawalt;40669700]Hacks, and the abuse of the C standard. :eng101:[/QUOTE] I'm guessing SJ/LJ, if the behavior of ce_throw suggests anything. (edit: nope - jumped the gun, apparently. Still, though, could work with that interface...)
HubmaN Programming Reply
[QUOTE=Icedshot;40436046] (Though, Its listed as a very hard task and you are a naughty boy unless you do it with two people together because it is so difficult!!)[/QUOTE] I don't think there's an accepted abstraction to hang a functional UI library around, yet - so it's mo...
HubmaN Programming Reply
I'd get a 1080p-enabled laptop if it didn't necessitate jumping through hoops to get it on something other than a 15-inch or a Retina-class display.
HubmaN Programming Reply
Oh god, love.filesystem's sandboxing makes my blood boil. Emasculate io and os in your boot code, or don't bother at all.
HubmaN Programming Reply
-snip, I'm wrong as usual-
HubmaN Programming Reply
[QUOTE=Eudoxia;39082963][CODE] Disassembly of function FIB (CONST 0) = 2 (CONST 1) = -2 1 required argument 0 optional arguments No rest parameter No keyword parameters 15 byte-code instructions: 0 L0 0 (LOAD&PUSH 1) 1 (CONST&PUSH 0) ...
HubmaN Programming Reply
[QUOTE=Eudoxia;39082914]It doesn't even have a JIT, just a bytecode VM. Very retro. SBCL took 2.8 seconds without any type annotations. [CODE] $cat /proc/cpuinfo | grep "model name" model name : AMD Athlon(tm) II X3 445 Processor model name : AMD Athlon(tm) II X3 445 ...
HubmaN Programming Reply
[QUOTE=Eudoxia;39082820]If you mean the computational complexity, the number of additions you have to do with a given n is (1/sqrt(5))*1.618^(n+1), according to [URL=http://courses.csail.mit.edu/6.01/spring07/lectures/lecture4.pdf]these[/URL] MIT lecture notes. Which is 165...
HubmaN Programming Reply
-snip, wrong thread- [editline]3rd January 2013[/editline] [QUOTE=Eudoxia;39082696]Recursive fibonacci with n=40: [IMG]http://eudoxia0.github.com/Hylas-Lisp/img/fib.jpg[/IMG] Step it up people.[/QUOTE] Which CL implementation are you using?
HubmaN Programming Reply
-snip, wrong thread-
HubmaN Programming Reply
I try rendering a single quad covering all of visible clipspace in OpenGL (yes, I know it's deprecated, but I couldn't trust my triangle vertices anymore), and what do I get? [img]http://i.cubeupload.com/SdeGVx.png[/img] Oy vey. I don't even know how you can mangle a quad li...
HubmaN Programming Reply
What an incredibly nice touch - I wonder how they got their hands on the W3C's spec generator. It seems subtly off, though... [img]http://i.imgur.com/mJptd.jpg[/img]
HubmaN Programming Reply
[QUOTE=supersnail11;39024511][img]http://24.media.tumblr.com/tumblr_lih6gbl4wG1qcdg4no1_500.png[/img][/QUOTE] [img]http://upload.wikimedia.org/wikipedia/en/thumb/a/ab/Simpsons6x13.jpg/235px-Simpsons6x13.jpg[/img]
HubmaN Programming Reply
[QUOTE=Rayjingstorm;38951740]Just finished an emulator for the fictitious 4-bit microprocessor from [URL="http://www.openlearning.com/"]www.openlearning.com/[/URL] ( the "4004" ). Gained a bit of experience in gdb (:v:) and I'm pretty happy with the results. Sample run: [c...
HubmaN Programming Reply
[QUOTE=Fuxed;38924949]Just wait, if you're trying to use the free Webpack version of ISE or the Web version of Quartus it'll start screaming that it can only compile on a single core because of the licence. At least FPGAs are fun to work with once you're up and running.[/QUOTE...
HubmaN Programming Reply
Jesus *christ* what is up with FPGA makers and their massive toolchains. Xilinx's installer's pegging all four cores on my system while extracting 19GB worth of files. Altera's stuff isn't any better.
HubmaN Programming Reply
- woah, wrong subforum -
HubmaN Programming Reply
[QUOTE=Lexic;38864154]Eh, a lack of formalised lambdas never stopped people. We've had function pointers since forever and boost made it even easier w/ bind and so forth. You don't even need those when you use callback objects.[/QUOTE] Functors never made Java more palata...
HubmaN Programming Reply
[QUOTE=Richy19;38827528]I think what he is saying is that althougt the libraries or what ever were coded in the native language, at some point these languages had to have been created from some other lower level language.[/QUOTE] If you want a fun weekend project, try writi...
HubmaN Programming Reply
The beginnings of a telemetry module for KSP, since the existing one on the forum's been misplaced or something. I think I'm going to hack up something cool in Mathematica on the other end. [img]http://i.cubeupload.com/dv9zxK.png[/img]
HubmaN Programming Reply
Replaced a few heavily hit functions with what I think GHC compiles as jump tables. Wahoo. GHC's builtin profiling for the win. I'm starting to suspect HOpenGL's capping the framerate at 100FPS, though... [img]http://i.cubeupload.com/peT2db.png[/img] Now to work on the fu...
HubmaN Programming Reply
Stress-test of a Curses clone in Haskell, implemented in mind-splittingly bad hacker's first immediate-mode OpenGL (only because I don't have the stomach to figure out all the marshalling required for the raw modern OpenGL bindings). [img]http://i.cubeupload.com/wKJzof.png[/i...
HubmaN Programming Reply
[QUOTE=Overv;37052583]Yes, but OpenGL has a special place in my heart. Now that OOGL is fairly capable of doing [i]stuff[/i], I can bring up motivation for open.gl again this weekend, but I've also reserved time for an unannounced project.[/QUOTE] Do it! Do it! You're r...
HubmaN Programming Reply
[QUOTE=esalaka;37038468]There's loads of GNU extensions for C because they implement C++ functionality, but they do also have a bunch of stuff for that language as well, I believe. Let's see... [url=http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Extensions.html]Ah[/url].[/QUOTE...
HubmaN Programming Reply
The one time the GNU feels it isn't [i]right[/i] to implement its own extensions is cpp, which is just bullshit. I'd give my left nut for a capitalizing macro builtin. (And now I kind of wish they'd extended the namespace block syntax so you can enter a nested namespace too. I...
HubmaN Programming Reply
[QUOTE=raBBish;36991667]It's old. That's a function definition without a name. Takes two ints, returns one.[/QUOTE] Thanks.
HubmaN Programming Reply
How old is the "int (int, int)" portion of the syntax? I'm not familiar with it - it seems like an awfully application-specific way to pass in a parameter pack. [code] std::function<int (int, int)> func; [/code]
HubmaN Programming Reply
[QUOTE=Lexic;36977093]It's never done that for me. What args are you passing clang?[/QUOTE] Sorry if I wasn't clear - I'm actually building clang. And I just learned about --enable-targets. How embarrassing.
HubmaN Programming Reply
A bit offtopic, but switching to Clang/LLVM would be more palatable if the build process didn't involve getting tied up in building the codegen for every known architecture in the universe. Seriously - I've just spent 10 minutes building for some random-ass arch called "Hexagon".
HubmaN Programming Reply
[QUOTE=DrLuke;36926262][thumb]http://i46.tinypic.com/xp5wci.jpg[/thumb] Shit just got real[/QUOTE] Shit still isn't shipped, because of an "11 week waiting time". Anyway, a thousand babies just spontaneously sprouted mustaches a few minutes ago: [img]http://i.cubeupl...
HubmaN Programming Reply
Don't know where this goes, but the fact that PuTTY mangles a [i]shitload[/i] of keyboard combos (it's particularly bad with Ctrl- combos) should be known.
HubmaN Programming Reply
-gah! wrong thread.-
HubmaN Programming Reply
-snip for idiocy-
HubmaN Programming Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
[QUOTE=Darkomni;36547780]the main reason i want the new source filmmaker? so i can remake this old gem of mine from 2010: [media]http://www.youtube.com/watch?v=IbmOPkMnkY4[/media][/QUOTE] Dat linear interpolation: [media]http://www.youtube.com/watch?v=59HnvNfFj04[...
HubmaN Source Filmmaker Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
Someone 720p the video and see what they've changed! [editline]27th June 2012[/editline] New VGUI? What is this magic [editline]27th June 2012[/editline] New spline editor! [editline]27th June 2012[/editline] Same record dialog! [editline]27th June 2012[/editline] And ...
HubmaN Source Filmmaker Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
While I'm here, the [url=http://www.facepunch.com/showthread.php?t=871355&page=8]first thread[/url] still makes for wonderful nostalgia.
HubmaN Source Filmmaker Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
A most vexing MSVC compile error. [img]http://i.imgur.com/6Kmoi.png[/img] The header that's erroring's #included in C++ files, so...
HubmaN Programming Reply
[QUOTE=swift and shift;34030927]In some jurisdictions, you can be held liable if your work is public domain.[/QUOTE] Ah, well - The More I Know.
HubmaN Programming Reply
[QUOTE=Lexic;34030207][url=http://www.codinghorror.com/blog/2007/04/pick-a-license-any-license.html]Always licence your code![/url] If you don't care what people do with it, simply shove a [url=http://www.opensource.org/licenses/mit-license.php]MIT licence[/url] in a LICENCE f...
HubmaN Programming Reply
[QUOTE=jalb;34014608]But oh god... my professor just sent me a message to remind him that he wants to talk to me about "a project i want to do for this years Austin and San Fran GDCs conferences." He says he's going to propose the concept and work requirements to me tomorrow....
HubmaN Programming Reply
[QUOTE=thisBrad;33748305][IMG]http://img23.imageshack.us/img23/3446/screenshot2011121601083.png[/IMG][/QUOTE] [img]http://www.facepunch.com/avatar/431348.png?garryis=awesome[/img] Boy did I read the thread.
HubmaN Programming Reply
QtCore?
HubmaN Programming Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
[QUOTE=Chandler;32911618]The only thing that has stayed consistent is my naming incremental releases after the Rush discography (minus live albums and collections). This is a bit unfortunate in that the third release is called "Fly By Night", which has negative connotations wh...
HubmaN Programming Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
[QUOTE=icantread49;31649034]oh, at the moment entities don't have access to the GUI at all. it wouldn't be very hard to give them access if necessary, though: [cpp] class GUIProvider : public IService { public: GUIControl* SomeControl; // ... }; // ... ...
HubmaN Programming Reply
[QUOTE=icantread49;31648553]wait, are you talking what i just posted or something else? can you elaborate :v: im curious[/QUOTE] I am - I've just spent ages MCP spelunking and that's exactly the approach Minecraft uses, although for some reason the Mojangles prefer to stash t...
HubmaN Programming Reply
Feels Minecrafty. I wonder if you can bodge that into your entity system.
HubmaN Programming Reply
-snip- [editline]10th August 2011[/editline] [QUOTE=Chandler;31647440]I've just got to say briefly, that your use of the phrase "There can always be the chance" is [i]also[/i] a bad way to think about problems and can most definitely cloud your design instincts. Instead of t...
HubmaN Programming Reply
[QUOTE=Downsider;31627093]I'm trying to satirize that. I know as well as you do why Windows PC's have more malicious software floating out there, and the only thing that's relevant is population.[/QUOTE] Or the fact that none of us have the knowledge required to make a thoro...
HubmaN Programming Reply
[QUOTE=Dr Magnusson;31625453]The problem I have right now is that I have too many ideas for what to add to it. There are so many things I want to include, or atleast support, like calling class functions directly, other variable types, and a billion other things. I really want...
HubmaN Programming Reply
[QUOTE=Dr Magnusson;31625297]The system needs an overhaul, no doubt about that, and I'm working on it. I just need to find out an elegant way to do it. I need to implement variable declarations on the fly, and have the parser translate variables better. But all that also depe...
HubmaN Programming Reply
[QUOTE=Dr Magnusson;31625188]Neither are true. There is no scoping at all, since variables are declared just before execution. Everything is global. Both function pointers and variables are stored in the same "varArray" variable currently. After execution of my previous scri...
HubmaN Programming Reply
[QUOTE=Dr Magnusson;31623276]The tokenizer splits everything except strings by whitespace, I saw no need to add redundant characters between arguments if the parser is perfectly fine without them. While they aren't necessary, you could still put them in there, they'd just be i...
HubmaN Programming Reply
[QUOTE=danharibo;31603648]It looks like white silly string[/QUOTE] You sound like great fun at association games.
HubmaN Programming Reply
[QUOTE=iPope;31600771]Well I suggest that you read PEP 8, your coding style now is really inconsistent and if you stick to PEP 8 then everything will be swell for you and other python programmers. Your using arrays to pass co-ords etc. to pygame. I'm pretty sure that even tho...
HubmaN Programming Reply
[QUOTE=tanraga;31599763]EC2 is ridiculously expensive.[/QUOTE] It is, unless you're trying to stay under with free instances. Then the whole spinning-up-and-down gimmick becomes quite useful in compile farms.
HubmaN Programming Reply
A summer job intervened, but I'm ready to push that quest thing for Minecraft out of the door. It's got serialization, a Journal-type shebang, the works. I had to put item-based quest proposals on ice, though, since it's the inventory and not the item that serializes, and modi...
HubmaN Programming Reply
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
You don't have permission to view this result. It's probably in a forum that your account has no access to.
Decided Minecraft would be better with a quests subsystem. In-progress - I ripped the quests semantics right off the TESCS/GECK. Quests are FSMs (those are so damned useful in games), they tick() and are notified(message). [media]http://www.youtube.com/watch?v=a3Bv1_OZ7I0[/media]
HubmaN Programming Reply
[QUOTE=Eudoxia;31059918]An example of a shape-changing dialog, translated from C++ to Lisp. [IMG]http://img29.imageshack.us/img29/7497/commonqt6.png[/IMG] 61/556 pages translated.[/QUOTE] Lisp/FFI package? (Is common-qt on QuickLisp? I've been in Clojure-land for too damn ...
HubmaN Programming Reply