News for hackers. Stuff that matters.

TheCams

Re:Lua 5.4.0 beta on Thursday October 03, 2019 @10:13AM (#21147162)
I use it as a scripting language for my game engine, but also for all the tooling around it. Premake for generating the VS solution/makefiles, but also my own tools using IUPLua [1] and a few other modules (lfs, sqlite etc). Pretty much my whole ecosystem is C++/Lua.

[1] - https://www.tecgraf.puc-rio.br/iup/en/iuplua.html

Re:Poll: How many characters per line do you prefer? on Tuesday April 26, 2016 @09:13AM (#11571527)
I'm working on a 1920 pixels wide screen with a font of size 10. With the toolboxes on the side of my IDE, I can have around 170 characters on a single line without having to scroll horizontally.

As long as I dont have to scroll I'm happy.

Thanks :)
Sorry if that's a stupid question, but does that mean he was running his script as root?
Re:HP's Spectre 13.3 laptop is as thin as an AAA battery on Tuesday April 05, 2016 @12:18PM (#11431668)
Ahah, yes of course :) But this also applies to smartphones, and it seems like the trend nowadays is only to make them thinner.
Re:HP's Spectre 13.3 laptop is as thin as an AAA battery on Tuesday April 05, 2016 @11:40AM (#11431257)
I agree. And I'd rather have a laptop a few millimeters thicker and have a bigger battery inside.
If you're referring to a bounding box, it's called AABB (axis aligned bounding box). So I guess AA rectangle would be ok.
I think there's a difference between the files layout on a disc/install folder and a repository. The layout on the disk can be optimized for loading (even duplicating the assets sometimes). OP is asking for a repository hierarchy I think, since he's talking about sources files too.
Re:Coders,do you still have problem naming things? on Wednesday January 13, 2016 @09:30AM (#10894469)
Since nowadays we all have autocompletion and good refactoring tools (to rename a variable), I usually give a pretty explicit name, even if it's sometimes more than 40 characters long. At least there's no ambiguity on the variable meaning, even if it makes the code a bit hard to read sometimes.
Why not use the 2.5 jack connector?
I think the purpose of this kind of exercise is not to have the developer implement the whole class, but rather see how far he can go, how he can prioritize the subtasks and how he deals with pressure. Of course the result also gives an idea of its programming skills. Not that I agree with the method though.
Re:Show HN: Lightweight C++ editor that understands your code on Wednesday November 04, 2015 @02:09PM (#10508779)
I'm in the office so I wont download the beta now, but I think you should add more info on the website about the project (features, platforms supported etc)

What do you mean by "understand C++"? Does it offer features similar to Intellisense/Visual Assist?

Is the ratio price/hours of gameplay really relevant here? A long and boring game for cheap is not more interesting than a short but amazing experience for a higher price.
Re:DIY control pedal on Linux on Tuesday September 08, 2015 @10:31AM (#10185879)
I'm not using Vim or Emacs but still doing intensive use of ctrl and shift in Visual Studio so I might give it a try :) Thanks for your replies
Re:DIY control pedal on Linux on Tuesday September 08, 2015 @09:39AM (#10185564)
Is anyone using a pedal in addition of a keyboard on a daily basis? Do you really think this could be a significant help when typing code?
Re:Ask HN: Should i put online courses in my resume? on Friday September 04, 2015 @05:31AM (#10169437)
I would only put courses that lead to a degree on my resume under the Education section. If you have extra knowledge that you want to mention, a Qualification section would be the best place to add a line about it in my opinion.
Re:Video game hacking on Thursday September 03, 2015 @10:54AM (#10165252)
Interesting, I had no idea how these devices worked :)
Re:Ask HN: Does anyone use “I'm Feeling Lucky” on Google? on Thursday September 03, 2015 @06:21AM (#10164127)
Never used it, except for the easter egg with Chuck Norris etc. Actually I was about to try and noticed that I can't click the button, as Google starts the search as soon as I start typing in ...
Re:Introducing the World’s First Electronic Ink Tattoo on Friday August 21, 2015 @12:12PM (#10098441)
Definitely a fake, but the idea is good though.
Re:Stingray: 3D Game Engine and Design Visualization on Thursday August 20, 2015 @09:16AM (#10091600)
I can't find the info on the website, is it possible to code in C++? All I see is the LUA scripting. The engine look really artist oriented, but I think the first people you want to attract for a commercial product are the programmers.
A recruiter contacted me on LinkedIn with a job offer. The interview went well and I got the position, so I quit my previous job and moved to the UK.
Re:Do you feel that golang is ugly? on Friday August 14, 2015 @10:42AM (#10060327)
One of the thing that annoyed me is that the language forces you to put your opening braces on the same line as your condition/loop. I like to have them on the same vertical line, I find it easier to see the blocks.
Re:Ask HN: Premature optimization – when to use? on Tuesday August 11, 2015 @01:00PM (#10042585)
I think what could be considered an early optimization (but not premature) is the architecture design of your software.

I dont know how you did your application, but in this example, you could have made the design choice of a heavily multithreaded application to fetch and process multiple pages at the same time.

It could be an early optimization that saves you a lot of refactoring later.

Re:Ask HN: Any movies that changed your life? on Tuesday August 11, 2015 @12:17PM (#10042213)
I think you meant "Stand by me" instead of Lean on me :) Great movie btw, I have the same childhood nostalgia when I watch it.
Re:The Next Penelope Post-Mortem on Monday August 10, 2015 @12:36PM (#10035687)
Really interesting, thanks for sharing.
Re:Ask HN: Best Android phone for developer? on Thursday August 06, 2015 @12:18PM (#10017506)
Might sound like a stupid answer, but probably using the most widespread model as a development platform is the best way to start with. Then you'll have to test your app on different models anyway.
Re:Why debugging is all about understanding on Thursday August 06, 2015 @11:39AM (#10017198)
Totally agree with that. In my previous company we were always working with dumps for asserts/crashes and when I started working in my current company I was confused that they mainly use logs. Now I can't go back to debugging without logs. Using dumps is like looking at the consequences, looking at logs is looking at the causes.
Anyone used one of these as a scripting system for a game engine? I'm still wondering if I should use duktape/MuJS or simply LUA.
Re:Torque3d game engine became more reliable on Monday July 27, 2015 @10:17AM (#9955307)
I don't want to divert the thread, but reading this surprised me:

"If using new ever fails to return an object, you're out of memory or some other critical corruption and your program isn't long for this world, wether you catch the null-pointer or not."

Is that the usual reaction to "out of memory" issues? I think that video games, having to deal with console memory constraints, should handle this. You can sometimes delay an allocation from a few frames if you know that you'll free some memory from another place soon.

Re:Recurrent neural network handwriting generation demo on Wednesday July 22, 2015 @07:08AM (#9928847)
I wonder what a graphology expert would think about this. I imagine that it would be confusing.

Older »