Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jaked122

Pages: 1 ... 17 18 [19] 20 21 ... 73
271
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: October 16, 2015, 01:23:49 am »
Really? I love the Java graphics primitives, very simple to use for a lot of things. Just doesn't scale to animations very well, no tweening, difficult clipping, etc. Also Java is just too pedantic for that IMHO.

That solution for representing animations though... I'm not sure about the need for bound function objects, that seems a bit less efficient to me, but I've never read the documents in the standard(I'd assume c++), but despite the efficiency of your templates, bound functions aren't necessarily optimized very well.

I might very well be wrong, especially if the template parameters include the bound function, that would be very nice.

272
General Discussion / Re: Things that made you sad today thread.
« on: October 10, 2015, 04:31:12 pm »
I especially wish English had words for gender-nonspecific third person.  Language shapes thought, after all.  Gender shouldn't matter so much, that it needs to be included in every fricken pronoun.
As best as I can tell, nearly every language is like that though. Gender does seem to be a big part of history, and most languages were created during the course of history, therefore they have gendered words for no reason beyond "It seemed important at the time".

273
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: October 09, 2015, 04:04:19 pm »
--snip--
As for the variadic templates: I haven't picked up much from C++11 yet. I learned my lesson a while ago, wait and see which language features "stick" and which ones get forgotten. But I took a quick look at the variadic templates just now
That doesn't compile for me, but I realized that compiler errors would show up if they weren't something that was at least implicitly converted to double due to adding arguments to a vector of doubles.

Therefore, even bools work correctly(and are necessary). Still something that I wonder about, assigning all numbers other than zero to be true. That seems like a questionable decision typewise, but it does make error codes easy.

Another wonderous feature in the rollercoaster of intention of C and C++ design.

274
General Discussion / Re: Original Story/Movie ideas
« on: October 09, 2015, 12:51:50 pm »
I lost it at the Terminator movie critic idea. I would see that because my opinion of the Terminator series is about low enough to be that movie critic.

I would honestly like to see a tutorial on painting in the spirit of The Joy of Painting with Mike Tyson playing the part of the instructor. You know, so that after putting yourself into a calm with The Joy of Painting, you have an antidote that makes you really agitated.

All the while your skill in painting is increasing...

275
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: October 09, 2015, 12:45:48 pm »
--snip--
http://gameprogrammingpatterns.com/flyweight.html
--snip--

I would recommend looking at the wikipedia page on flyweight as well. I liked the use cases on your link, but there are more details on the wikipedia page, and those are important details too.

Have you worked recently with variadic templates? Those are fun, especially for something like working with svg path command arguments in c++, though I'm not sure that this is good style, practice, etc.

So most svg path commands take several arguments of double precision floating points. Some of them take 2, others 4, and some six or more. Writing a function to generate the commands in the structure either requires cumbersome wrapping into various array types, or using what (to me) appears to be an abomination. It looks something like this
Code: [Select]
class path:public element{
  void lineTo(double x,double y)//this is one of a large number of commands.
  {
     addc(FORWARD,true,x,y);
     //update the endpoint of the path.
     position[0]=x;
     position[1]=y;
  }
  void addc(int c,bool starting){}//this is the empty add function
  template<typename T, typename... Args> void addc(int c,bool starting, T value, Args... rest){
     if(starting){
       commands.push_back(c);
     }
     arguments.push_back(value);
     addc(c,false,rest...);
     path_needs_update=true;
   }
};
Now my problem is that I can't figure out if I can limit the types added to double or not using this method.

Also there's the matter that this is written recursively, and I try to avoid that because stack space is an unnecessary expense in most cases. I also don't want to do the C-style variadic parameters because they are... Not safe... in addition to quite a few other issues.

So, do you have any suggestions? Or is this actually okay, since it's not in the visible part of the path class?

276
Life Advice / Re: What to do with Raspberry Pi?
« on: October 08, 2015, 05:43:28 pm »
Buy crt tv. Remove screen. insert raspberry pi. Remove power supplies and components of tv. Have a small computer inside a very large box.

Feel like a big man.

Alternatively, attach it to a bunch of random motors, don't do anything useful with them, just attach them so that they can run.

277
Opera actually will fix this though. It automagically compresses pages to between 1/2 and 1/8ish (mostly through NOT loading hd pictures as full hd and such). I've tested and can verify, Opera's Turbo feature is both neat (doesn't load ads, so that's a plus) and highly effective. Fast browser speed + compresses pages = it works quick, even on slow networks.
Yeah, but my opinion is that opera is cancer. Though saying so on a Windows 10 thread seems to be unhelpful to the purpose of the thread.

I like windows 10, definitely better than 8, 8.1, or 7.

Fuck xp though. That operating system received way too much praise in my opinion.

278
Life Advice / Re: Am I to be alone forever?
« on: October 07, 2015, 10:18:47 pm »
I know that feeling. If you can find a guy at your job to go drinking with, there's a good chance of finding someone out there who you might just like.

Just don't drink too heavily. Buzzed is where you want to stay. Drinking more than that isn't going to reduce your shyness further, at least, not in a helpful way, and of course, there are the side effects from drinking heavily.

It's not easy finding a group of friends without some kind of introduction, as people tend to associate in cliques, small groups. These groups commingle and share members. You can spider along these connections and find people who you are looking for. The larger your initial circle, the less intermediate steps.

Small world networks and the such. In principle, you can find anyone with six jumps along the social groups, but most people don't have the stamina for that. At least not leafs like me.

279
It lacks addons and has silverlight? Two things I do not care about.
When do you use java, or anything that isn't flash or javascript?

How about nearly complete html5 support and fast rendering and fantastic integration. Oh yeah,I forgot to mention the annotation mode, which allows you to draw annotations on any webpage which are persistent. Not important if you aren't used to taking notes on the internet, but if you are, it's a godsend.

280
Life Advice / Re: "Midlife Crisis" - at 23!
« on: October 07, 2015, 10:03:44 pm »
What is love, Bay 12?  :(
Now what is love? Chemically speaking, oxytocin, throw in some pepsine argenine vasopressin and sprinkle liberally with dopamine. Now given that you aren't trying to create a pair bond with a wall, you probably want to do those things with another person(s). And hanging out with other people who aren't doing the same regimen would likely lead to undesirable outcomes on your part.

More seriously, if your friend can't accept a single fuckup and see past it, then generally they aren't suitable for long term friendship. Given the chaotic nature of life, it is only a matter of time until such a specimen runs out of people that they call friends; the move onto things they call friends is sad though.

Guilt isn't productive. Feeling guilty certainly so.

The best way to deal with it is to apologize and maybe do something nice for him, go a little out of your way as some kind of consolation. If you can get him to see it that way, it'll be fine. Unless of course the trip your friend wanted was more important than you guessed or were lead to believe. In which case the communication issue lies on his side, and you can have that little nugget of consolation.

Loyalty cannot be perfect  in a chaotic world, in a life powered by neurons and electrons, there's little space for loyalty to dwell, mix that with a society bubbling with entropy and complexity, and the last vestiges of its refuge collapse.

It's the thought that counts.

281
Edge is very quick actually. It has flash and silverlight. It doesn't have many additional features, and because of that, it runs very quickly, and tends to not open any more security holes than any other browser running javascript, flash, or silverlight.

I like it, and once they decide to have addons, adblock plus will work on it, which will make it more attractive for me than it is at the moment.

282
General Discussion / Re: Bay12's Desktops
« on: October 07, 2015, 09:45:49 am »
How many times did you have to Deep Dream that mofo?
15 I think.
Thats... surprisingly coherent looking for a deep dream image. :P

Here's my current desktop
Spoiler: Warning: Ponies (click to show/hide)
(Also WTF imgur! I give you a perfect PNG and if it's over 756 KB you convert it to a horribly compressed jpg image. If, on the other hand, I take my 2MB png and first convert it over to a 1.8MB best quality jpg then you store it just fine that way! This is idiotic! >:()


If you continue iterating over an image with deepdream, the hints become more and more concrete as deepdream is able to find more details it can impose upon the preexisting image.


I might actually take that desktop. It's coherent and sane compared to the one I'm using.

283
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: October 07, 2015, 09:42:32 am »
Has anyone used the Box2D library in C++. I need to get this hooked up in an SFML demo by tomorrow, and nothings actually moving so I don't know where to start. I made a body, added the stuff listed in the tutes, apply a force and step forward in the world each frame, but there's no visible effect on the object I'm trying to move.
This sounds like a silly issue.


After each step do you update the coordinates of the sfml objects that are represented in the box2d objects, those don't seem to be coupled normally, so perhaps you ought to update the positions of your drawing primitives to the positions of your physics primitives.


Sorry that I can't be more specific, but that sounds like the sort of problem I would have. Is that it?

284
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: October 06, 2015, 11:21:51 am »
Besides, you can do non-oop in java. It just results in static classes, methods, attributes, etc. Make them public and they are very nearly the same as declaring a global variable or function. It's just less convenient to call them. More text.

285
General Discussion / Re: What are you reading?
« on: October 05, 2015, 10:24:37 pm »
I'm rereading accelerando fun. The end is such a downer.

Pages: 1 ... 17 18 [19] 20 21 ... 73