• What are you working on? v67 - March 2017
    3,527 replies, posted
[QUOTE=G4MB!T;52817894]I bet its SpaceX.[/QUOTE] well i mentioned that im my ceo's programming lackey so guess this means im reporting to elon musk daily [sp]seriously we have 60 employees, and we had 25 when i started last year lol[/sp] [editline]edited[/editline] we don't make launch vehicles, but our bread and butter is doing space mad science, mostly. last big hint: we are working on spider robots for making structures in orbit, like 120m radio telescopes that don't need to be packed into a launch vehicle.
So I accidentally took a graphics programming class expecting to learn OpenGL and stuff. It turned out to have been a little bit more low level than that. We're implementing line drawing algorithms. Mine isn't... quite right. [img]https://i.imgur.com/kPeTd8J.png[/img]
[QUOTE=Kybalt;52818216]So I accidentally took a graphics programming class expecting to learn OpenGL and stuff. It turned out to have been a little bit more low level than that. We're implementing line drawing algorithms. Mine isn't... quite right. [img]https://i.imgur.com/kPeTd8J.png[/img][/QUOTE] All it needs is a "u tryd"
[QUOTE=paindoc;52818111]well i mentioned that im my ceo's programming lackey so guess this means im reporting to elon musk daily [sp]seriously we have 60 employees, and we had 25 when i started last year lol[/sp] [editline]edited[/editline] we don't make launch vehicles, but our bread and butter is doing space mad science, mostly. last big hint: we are working on spider robots for making structures in orbit, like 120m radio telescopes that don't need to be packed into a launch vehicle.[/QUOTE] Well I mean that's not a no, so could be SpaceX. The only other place I know is NASA and we'll.. I mean you probably don't work there. I know there's probably thousands of other companies but it would be more interesting if it was NASA or SpaceX.
I've started my work on the Frostbite 2+ Map Editor powered by Rime and Unity. Rime is a Frostbite 2+ editor that loads the raw game files directly, just like Frostbite would. This means that the loading times for each bundle is close to zero, making it the fastest and most accurate Frostbite Editor available. The map editor I'm creating is currently only working on Battlefield 3, but it will work on all other frostbite titles with only minor changes. It will eventually support everything from Plants VS Zombies to Fifa, with the exception of Battlefront 1 and 2. Thanks to Venice Unleashed, we're also able to distribute these level changes to servers in the form of a Venice Extension mod, so there will be no changes to the gamefiles! The only issue so far is the hkx (Havok Physics) files that contains the transform for most of the static instances. I've almost finished reversing it, but I seem to be unable to find anything that looks remotely close to a transform, even when bruteforcing it. The file is crucial because most walls and details are stored there, and without it we'll have buildings looking like this. [t]http://powback.com/u/59efa0a416828.png[/t] [t] http://powback.com/u/59efa0b6e0acc.png[/t] If anyone wants to lend me a hand in reversing it I would more than appreciate it. Here's a low FPS flyover of MP_003, or "Tehran Highway", although it doesn't contain the highway because of Havok. [quote][vid]http://powback.com/u/59ef9fb9b7038.webm[/vid][/quote] Next up is the terran and textures. Both have been implemented, but haven't made Rime send them yet.
[QUOTE=DrDevil;52811336]Today I held a training presentation for my bachelor thesis, and some people from the institute sat in. They said they were most impressed with the resuls and that it's the first time they're actually interested in the results of a bachelor thesis. I think I don't even grasp how fucking awesome this is just yet... and I feel like a total idiot now because I could've done so much more with the topic if only I had applied myself a bit more.[/QUOTE] I just held my final presentation. It went a bit shit, as I got pretty nervous, especially because some pretty accomplished people were sitting in as well. I flunked it a bit, and went over the first half too quickly, and then had to stretch the last half out a bit. I finished in 17 minutes where 20 minutes was expected, which is a bit bad. But all in all I got a very satisfying grade, and most importantly, I got my bachelor degree!
[QUOTE=powback;52818827][...] Next up is the terran and textures. Both have been implemented, but haven't made Rime send them yet.[/QUOTE] This is probably a stupid question, but what's Rime? There's a felt 1k things with that name, so even if I limit it to software Google doesn't help much.
[QUOTE=Tamschi;52819422]This is probably a stupid question, but what's Rime? There's a felt 1k things with that name, so even if I limit it to software Google doesn't help much.[/QUOTE] [img]https://u.x64.re/f/EducatedPunyGirallon[/img] :thinking: [url]http://rime.kiwidog.me/[/url]
So this weekend we noticed our company has been breached, some BTCs were stolen; later we figured out Trojan has spread around our local network. :angry: We cleaned everything now, PCs formated, applied more secure settings to router, passwords changed. Lesson learned.
[QUOTE=Ott;52818093]Assembly fucking sucks [editline]24th October 2017[/editline] I did accidentally rig up my board to make a loud beeping noise when the next student plugs it in though.[/QUOTE] Back when I was at uni one of my mates grabbed some assembly code online (still don't know what it was meant to do) and when he started up his micro controller to run it the thing completely fried itself. Turns out in part of this code (Of which the rest actually worked once the junk was removed) there was a bit that had a bunch of junk like setting a "yomammafat" value to 1 and the like, from what we could tell it didn't actually do anything aside from randomly throw some stuff around but it was when that bit of the code ran that his controller fried, no clue how it caused it but he was not happy.
I'm a bit late but I got marked way down for returning early instead of adding another nested if statement. I'm sorry that I prefer: [code] if(a){ if(something is null) return; if(something else) return; ... dothething(); } [/code] to [code] if(a){ if(something is not null) { if(not something else) { if(){ if() { if(){ if() { { { { { { { { { do the thing(); } } } } } } } } } } } } } } } [/code] [editline]26th October 2017[/editline] I also had one teacher that was amazed that I figured out how to find a number in a sequence with a for loop within a minute or so and asked me to step through it and explain it to them. Turns out they aren't even a computer science graduate, but because her postgrad involved computers she managed to get a teaching position somehow.
[QUOTE=reevezy67;52822895]I'm a bit late but I got marked way down for returning early instead of adding another nested if statement. I'm sorry that I prefer: [code] if(a){ if(something is null) return; if(something else) return; ... dothething(); } [/code] to [code] if(a){ if(something is not null) { if(not something else) { if(){ if() { if(){ if() { { { { { { { { { do the thing(); } } } } } } } } } } } } } } } [/code] [editline]26th October 2017[/editline] I also had one teacher that was amazed that I figured out how to find a number in a sequence with a for loop within a minute or so and asked me to step through it and explain it to them. Turns out they aren't even a computer science graduate, but because her postgrad involved computers she managed to get a teaching position somehow.[/QUOTE] Teacher here(private school). Assuming this is a public school, yes they are often like this. They all have different opinions and their opinions are set in stone because you should be graded based on some rules saying that you should "Match the course work as much as possible". You should complain to the higher ups providing information on why you are doing it the way you are doing compared to the way the teacher is doing. Gather information about the advantages of returning early vs nested if statements. In the end you should be able to argue that it all comes down to preference and you shouldn't be marked down for it. There are a lot of books and online articles about the subject. Really. Do make a fuss about it. Staying quiet won't help you. It is the only way to punch through these bad teachers teaching bad habits at public schools. But do talk to the teacher about it first.
It's a university. It happened two years ago now, I just took the grade. I complained to multiple people and they all sided with the teacher. If things happened now in my final year I'd take things a bit further now that I know how it works.
They said the same thing when i took the intro to programming course, the explanation was that you could follow the logic more easily if there is only one return statement. In practice it really doesn't matter, and it often easier to read the early returns, but somewhere along the line it's mandated to teach it like that.
Slowly I'm starting to think my uni is a serious outlier in terms of quality. So far I haven't seen any inanity that wasn't specifically pointed out as being there for a reason in the course text.
[QUOTE=Tamschi;52823169]Slowly I'm starting to think my uni is a serious outlier in terms of quality. So far I haven't seen any inanity that wasn't specifically pointed out as being there for a reason in the course text.[/QUOTE] You are in EU, I'd suggest you visit other Universities through Europe, there should be many good UNIs.
[QUOTE=Tamschi;52823169]Slowly I'm starting to think my uni is a serious outlier in terms of quality. So far I haven't seen any inanity that wasn't specifically pointed out as being there for a reason in the course text.[/QUOTE] Either that or you are not enlightened enough to notice the inanities.
[QUOTE=AtomiCal;52822972]Teacher here(private school). Assuming this is a public school, yes they are often like this. They all have different opinions and their opinions are set in stone because you should be graded based on some rules saying that you should "Match the course work as much as possible". You should complain to the higher ups providing information on why you are doing it the way you are doing compared to the way the teacher is doing. Gather information about the advantages of returning early vs nested if statements. In the end you should be able to argue that it all comes down to preference and you shouldn't be marked down for it. There are a lot of books and online articles about the subject. Really. Do make a fuss about it. Staying quiet won't help you. It is the only way to punch through these bad teachers teaching bad habits at public schools. But do talk to the teacher about it first.[/QUOTE] I got marked down in university for having a either a DFS or BFS use the right node instead of the left node to traverse first... This was coming from a computer scientist who teaches AI and a class on algorithms...
[QUOTE=Tamschi;52823169]Slowly I'm starting to think my uni is a serious outlier in terms of quality. So far I haven't seen any inanity that wasn't specifically pointed out as being there for a reason in the course text.[/QUOTE] I went to a research uni that has like 1.2bil USD of yearly research income... so the teaching could fall by the wayside. that and there were 65k students in the system, total iirc. Its easy to fall between the cracks, or to get chewed up by the machine part of the system [QUOTE=DroppingPOCD;52823457]Either that or you are not enlightened enough to notice the inanities.[/QUOTE] ughhhhhh even if this is 100% a joke it hurts because people like this exist. they spent a lot of time looking down their noses at me too, because of my grades lol apparently my CEO thinks I'm super smart, fairly clever, and is impressed with what I've done thus far? (he also knows I don't have a degree) I'm having a hard time believing he said this, it was relayed to me by my previous boss who is the right-hand woman of our CEO in many ways. She'd lie if only to boost my morale, but even this seems unlikely for her and offhand comments like this from our CEO wouldn't surprise me. Feels nice to know that he likes what I'm doing at least, and I'm trying to not let it go to my head: just appreciating that a man who has his PhD and has received tons and tons of NASA grants thinks I'm clever. Never would've guessed I'd be here or have someone thinking that of me a few years ago, when I was in a really bad place on the topic of programming though, I keep getting ahead on my work then falling behind because I find things I can't leave alone. The latest were these golden functions: [cpp] void f_Plus (Vect &A, Vect &B, Vect &C); void f_Minus (Vect &A, Vect &B, Vect &C); void f_Times (Vect &A, Vect &B, Number c); void f_Times (Vect &A, Number c); void f_NormalizeVect (Vect &A); // calculates a unit vector from the vector A void f_SetVect (Vect &A, Number x, Number y, Number z); void f_SetVect (Vect &A, Vect &B); [/cpp] because who the fuck needs operators, amirite? copy/assignment operator? fuck it! math operators? fake news. also, const references are fake news and so is returning a value. everyone knows functions taking non-const references and using those as the return values are WAY clearer and easier to maintain, ofc. my solution was just to nuke this header and it's source, and 21 commits later (ohgod) I've removed all that math finally. there are so many subtle improvements to be made to this codebase, and I've hardly had the chance to scratch the surface (I've been really itching to start trying SIMD acceleration of key math routines). on another note though, I keep finding out new ways variadic templates are useful. my new array class is just really a wrapper over std::array with operators and some member math functions (in hindsight, I should've used std::valarray I think), but I was trying to figure out how to make a constructor that could accept the correct amount of variables to set it's internal array in full. I then felt dumb when I remembered that you can template member functions of a templated class (though it ups the template grossness and insanity another level, lol): [cpp] template<typename T, size_t ArraySize> template<typename...Args> simulation_array_t<T,ArraySize>::simulation_array_t(Args...args) : data(args...) {} // data just being std::array<T,ArraySize> [/cpp] and that's it. it's still so weird to me that this just [I]works[/I], and it's not even the strangest thing I've done with parameter packs. I feel like combining stuff like this with concepts and the upcoming reflexpr stuff is going to make template metaprogramming in C++ so much more powerful, maybe even as much of a generational leap as C++03 to C++11. [editline]edited[/editline] also, i wish i had better ideas on how to test whether or not __vectorcall is working. i can't find any difference between using that and __cdecl on godbolt
[QUOTE=paindoc;52823935]I went to a research uni that has like 1.2bil USD of yearly research income... so the teaching could fall by the wayside. that and there were 65k students in the system, total iirc. Its easy to fall between the cracks, or to get chewed up by the machine part of the system [...][/QUOTE] Mine is the exact opposite I think. I'm studying remotely and so far everything I've run into has been explicitly about teaching. Even one of the two research focuses listed on the website is purely about university teaching. I'm sure they do a few other things, but it feels like they put a lot more weight towards education than the unis I went to before. [editline]27th October 2017[/editline] [QUOTE=Fourier;52823446]You are in EU, I'd suggest you visit other Universities through Europe, there should be many good UNIs.[/QUOTE] To be fair, the two programming courses I started/took outside of what I do now didn't seem bad either. The material wasn't quite as convenient, but it's hard to beat a university that ships out scripts that look more like complete self-study books (which I guess they [I]are[/I] in this case :thinking:) and gives you the PDF version too. In my experience, most places are really strict on the copyright of their lectures to the point where it negatively affects students (or just outright don't care whether the material is available to students who don't do well with lectures, like that one [B]completely[/B] analogue chemistry course I didn't take in favour of a(n auxiliary) programming course I didn't learn much from). With this one I can load the lectures onto my phone and [URL="https://play.google.com/store/apps/details?id=com.flyersoft.moonreaderp"]read through them with TTS on[/URL], which really helps my retention rate. Some courses even provide versions without the border notes (in order to not confuse reading programs for blind students I think, but it helps me a lot too if I don't have to mentally skip parts of a sentence a few times per page).
[QUOTE=paindoc;52823935][cpp]data(args...)[/cpp][/QUOTE] Forward... [cpp]data(std::forward<Args>(args)...)[/cpp] Please...
[vid]https://my.mixtape.moe/bvnpvt.webm[/vid] [url=https://www.shadertoy.com/view/ll2yzy]Dobby is free![/url]
[QUOTE=G4MB!T;52824989]Forward... [cpp]data(std::forward<Args>(args)...)[/cpp] Please...[/QUOTE] fug, I always forget about this stuff
Well actually it should be [cpp] simulation_array_t<T,ArraySize>::simulation_array_t(Args&&...args) : data(std::forward<Args>(args)...) {}[/cpp] But since you are doing a copy of all of the arguments, only adding forward is pretty pointless. Anyways an easy way to remember it is if you have `T&&` its a [b]forwarding[/b] reference, so use `std::forward` on it.
[QUOTE=DrDevil;52825086][vid]https://my.mixtape.moe/bvnpvt.webm[/vid] [url=https://www.shadertoy.com/view/ll2yzy]Dobby is free![/url][/QUOTE] is it me or is that site horribly broken in every browser? [url]https://i.imgur.com/GRq9NDu.png[/url]
[QUOTE=Mega1mpact;52826427]is it me or is that site horribly broken in every browser? [url]https://i.imgur.com/GRq9NDu.png[/url][/QUOTE] Nope, broken here aswell. It was fine yesterday though.
[QUOTE=AtomiCal;52822972] Really. Do make a fuss about it. Staying quiet won't help you. It is the only way to punch through these bad teachers teaching bad habits at public schools. But do talk to the teacher about it first.[/QUOTE] Good luck - teachers protect their own from my own experience, no matter how wrong they are. I also know a teacher who confirmed that this - teachers can never publicly admit another teacher was wrong (even if they are).
Has anyone actually managed to make a living freelancing here? Working from home is my dream but it doesn't seem realistic. How do you find outsourced jobs without already being in a location where you are able to meet with clients and such? Also making more than just peanuts.
[QUOTE=reevezy67;52826674]Has anyone actually managed to make a living freelancing here? Working from home is my dream but it doesn't seem realistic. How do you find outsourced jobs without already being in a location where you are able to meet with clients and such? Also making more than just peanuts.[/QUOTE] Your best bet is to become very knowledgeable in a niche area and offer consultation.
[QUOTE=reevezy67;52826674]Has anyone actually managed to make a living freelancing here? Working from home is my dream but it doesn't seem realistic. How do you find outsourced jobs without already being in a location where you are able to meet with clients and such? Also making more than just peanuts.[/QUOTE] What DrDevil wrote aside, supposedly there are those mythical jobs that can be [URL="https://workplace.stackexchange.com/questions/93696/is-it-unethical-for-me-to-not-tell-my-employer-i-ve-automated-my-job"]automated employee-side[/URL][URL="https://archive.is/YWCRB"].[/URL] If you can somehow find two of those, you should be pretty well off. I haven't ever actually seen something like this non-anonymously, though.
Sorry, you need to Log In to post a reply to this thread.