[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

// what the fuck?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 284
Thread images: 45

File: Q_rsqrt.png (26KB, 647x478px) Image search: [Google]
Q_rsqrt.png
26KB, 647x478px
// what the fuck?
>>
>>388899829
isn't that notch's code?
>>
What was the point of repeating that first iteration?
>>
File: Q3A.jpg (18KB, 1024x768px) Image search: [Google]
Q3A.jpg
18KB, 1024x768px
>>388899829
They used a constant for a "good enough" solution to a frequently called function in the (IIRC) lighting algorithm that saved a shitload of resources.
>>
>>388899829
brainlet here, what am I looking at
>>
>>388899829
Is that what programming looks like? Man, that looks hard. Why does it have to be so hard? Why can't it just be ''press x for the character to do some crazy shit or whatever''?
>>
>>388899954
oooh this is carmack's code. I figured it was one or the other. that's his famous innovative function right?
>>
It's called approximate computing, its a thing. Square roots are expensive (typically >7 cycle operation)
>>
>>388900000
wasted
>>
>>388900000
>typical /g/tards
>>
>>388900019
lol why not just use a quantum computer and let it tell you it automatically
>>
>>388900000
Computers are basically retards, the technology just isn't there.
>>
>>388900006
people say its his but he actually got it from a book.

he may be the first person to use it professionally though
>>
>>388900006
No it's from some unknown guy from some other company, I think Bell Labs. Carmack just used it
>>
>>388900167
Isn't it just a taylor series expansion.
>>
>>388900000
computers dont know what 'x' is, or what 'pressing' is
>>
File: 1396811508299.png (108KB, 480x480px) Image search: [Google]
1396811508299.png
108KB, 480x480px
>>388900192
I thought it was the SGI crew that supplied him with a lot of GRFX hax.
>>
>>388899829
Can't read this shit. I'm a chemist so I know nothing about coding and shit. Anyone want to explain?
>>
>>388900254
you're probably right, I just know it wasn't Carmack's own code
>>
>>388900228
its an approximation only possible because of how computers represent decimals?
>>
>>388900291
Numbers are stored as bits, you probably know that much. They found a magic trick to shift around the bits to find an extremely close approximation to the square root of a number, making the calculation extremely inexpensive. It's a feat of optimization.
>>
https://en.wikipedia.org/wiki/Fast_inverse_square_root
>>
>>388899925
It's iterating towards a solution. Successive iterations would take more computational power but provide more accurate solutions.

https://en.wikipedia.org/wiki/Newton%27s_method
>>
>>388900291
>>388900405
Also if you're interested there's a ton of those wizard tricks on the book Hacker's Delight. It's pretty neat, the way good programmers can optimize code beyond belief
>>
>>388900228
The magic ix line 561. Iterative methods can take a long time to converge, if you pick a naive starting point like 0 or 1. By picking that specific starting point you can do one iteration of Newton's method and have a very accurate answer.
>>
>>388900549
It sounds pretty neat how they can condense it all and make it run quicker by getting rid of redundant functions.
>>
>>388900646
Bit level operations might as well be magic. If modern devs cared about this stuff we would have fully dynamic day night cycles by now.
>>
File: q7cjY7z.jpg (230KB, 869x1776px) Image search: [Google]
q7cjY7z.jpg
230KB, 869x1776px
Did someone say fast inverse square root?
>>
File: 1497726777319.jpg (64KB, 593x796px) Image search: [Google]
1497726777319.jpg
64KB, 593x796px
>>388899974
>// NOTE: THIS IS A HACK
>git blame
>mfw it was me two years ago
>>
File: 16055poster.jpg (55KB, 900x677px) Image search: [Google]
16055poster.jpg
55KB, 900x677px
>>388900731
my sides
>>
>>388900731
>if (a > b && b < a)

Hahaha this is definitely a troll account
>>
>>388899829
>preprocessor directives
Almost as seductively evil as the singleton. Tho that one's fine.
>>
I like how even the people that implemented the code had no fucking idea why it worked.

Makes me feel much better about all the code I steal on a regular basis.
>>
>>388900852
No she's Karlie from Koding With Karlie. She's verified and everything. She's amusing and I would fuck her
>>
>>388900881
No it shouldnt give you any reason to slip off code. That's just a very big exception
>>
File: kk.png (3MB, 1357x1710px) Image search: [Google]
kk.png
3MB, 1357x1710px
Will you buy Karlie's game?
>>
>>388900938
Then I'm now depressed and yet it's still funny
>>
>>388900960
try to stop me

I'm unemployed.
>>
>>388899829

so what exactly does this block of code do to make lighting better for video games?
>>
>>388899829
What is the "0x5f3759df"? Can someone explain for me, I don't code
>>
>>388900961
>she needs to join our startup
I don't know why but that comment cracks me up more than the actual picture
>>
>>388901276
It's a number, in hex.
>>
File: 1504229176055.jpg (31KB, 720x893px) Image search: [Google]
1504229176055.jpg
31KB, 720x893px
>>388901263
Before this snippet of code was used lighting wasn't that great. After this code it was vastly improved.
>>
>>388900000
you literally have to program the definitions and functions of those words otherwise it doesnt work you moron

fucking wasted
>>
>>388901263
light physics. don't think about it too much
>>
>>388901276
>Fast inverse square root, sometimes referred to as Fast InvSqrt() or by the hexadecimal constant 0x5F3759DF, is an algorithm that estimates 1/√x, the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number x in IEEE 754 floating-point format.
>>
>>388901360

HOW.

HOW DOES LETTERS BECOME GRAFIX?
>>
>>388901276
5f3759df is just a number in hexadecimal.

As to its function , it is almost literally magic, a constant that just works found via a fancier version of literal trial and error.
>>
>>388901276
It's an hexadecimal representation of a number
which is 1597463007
>>
>>388901263
The code calculates 1/Sqrt(x) but it's important because of this.
When a ray of light hits an object, you need to know the angle of reflection. This function is used to calculate the angle of incidence of ray lights fast enough that you can do it on real time.

>>388901276
It's a number written in hexadecimal form in C. It's the magic number making the computation very very fast
>>
>>388901364
kys
>>
>>388901263
you need to calculate vector normals constantly to know how lighting should be rendered in a game. Doing that means taking square roots, which is rather expensive computationally.
>>
>>388900167
He straight up admitted he got it from like an online IRC chat>>388900192
>>
File: xy9M9_d.jpg (45KB, 640x360px) Image search: [Google]
xy9M9_d.jpg
45KB, 640x360px
>once we can get computers to fully define and program their own solutions to problems we will become useless

gg guys we're so close
>>
File: 1386098508374.jpg (73KB, 550x893px) Image search: [Google]
1386098508374.jpg
73KB, 550x893px
>>388900961
>no such file or directory
>>
>>388900961
Does she actually know any languages at all or does she just advocate for women becoming programmers without ever doing shit?
>>
>>388900961
To be honest, after 5 years of software development I still have trouble finding some directories
>>
>>388901426
He had graffic. It was just ineffiecent and we didn't have the hardware power. They made it simpler but more inaccurate. But what you gained in simplicity, made any inaccuracy insignificant.
>>
>>388901582
They won't. Programming requires about 25% creativity in comparison to 75% logic. As long as code is needed to be programmed intuitively, computers can never do it on their own.
>>
I fucking hate coding, it makes absolutely no sense to me.
>>
>>388901684
Metaprogramming and templates already exist, although they may be primitive they will be developed further.
>>
>>388901582
And who's gonna implement those computers and those solutions? Unless it's a self aware ai that doesn't die when you yank out its power cord, the human element will still be a necessity for many many years.
>>
>>388899829
Can someone explain to me what casting a float pointer to a long pointer and dereferencing it actually does? How does that help?
>>
>>388901663
Do you have problems mispelling commands and repeating them over and over even when it's telling you you mispelled it?
>>
>>388901695
It becomes easier to make sense of it the more you understand.
>>
File: adeptus-mechanicus.jpg (108KB, 672x372px) Image search: [Google]
adeptus-mechanicus.jpg
108KB, 672x372px
>>388901437
>>388901415
>>388901360
>>388900881
>>388900728
>>388900405

>people actually don't know why shit works

Next thing you're gonna tell me is that the servers containing the world's internet is being maintained by a bunch of chanting red-robed cultists pouring blessed oil into machines.
>>
>>388901775
I can't tell from first look. Likely a specific hacking trick.
>>
>>388901582
>>once we can get computers to fully define and program their own solutions to problems we will become useless
With how buggy fucking everything is I doubt this will happen anytime soon.
>>
File: 1455072803744.gif (426KB, 500x255px) Image search: [Google]
1455072803744.gif
426KB, 500x255px
>>388901695
>pseudocode logic makes perfect sense
>get to the actual code
>there's 50 different ways to do the same thing in one library of one language
>half of the language is deprecated
>>
>>388901775
i and y store copies of the same four bytes after that line - operations on y use floating point instructions, and operations on i use integer ones
>>
File: Mechanicus_Techpriest.gif (81KB, 640x480px) Image search: [Google]
Mechanicus_Techpriest.gif
81KB, 640x480px
>>388901845
But that's exactly the case. Praise Omnissiah, brother.
>>
>>388901695
At its basic level its just a series of steps with some math here and there. If you're good at math, if you can follow a cooking recipe, or even if you can put together IKEA furniture you can learn coding.

The complications come when you simplify stuff because the steps take too much time/effort/resources to do otherwise.
>>
>>388901802
I can understand everything up to and/if statements, but after that it's just nonsense to me, I'm amazed so many people can learn that shit, even moreso that so many just become codemonkies.
>>
File: 1445411283898.gif (490KB, 245x188px) Image search: [Google]
1445411283898.gif
490KB, 245x188px
>professor gives up botched CMD code
>i have literally no idea what anything means so I can't fix the problems and I don't have my book yet
>>
>>388902053
*us
>>
>>388901845
>his servers arent blessed
>>
Anyone mystified by that code should read this article: http://h14s.p5r.org/2012/09/0x5f3759df.html
>>
>>388900000
I think GameMaker Studio would be right up your alley.
>>
Is using the hex representation of a number in C really that much faster? Is using bit shift operations instead of multiplying/dividing by 2 also that much faster?

I wish I knew hot to to time C code to actually test this
>>
>>388902179
hahahaha what the fuck?!

I NEED to know the context of this image
>>
>>388902328
probably not that much faster, but if you're writing a function this optimized you might as well do it.
>>
>>388901947
Oh okay so it is because they essentially want to do integer subtraction on y then? But how does that help when it becomes a float again? Wouldn't it just be garbage?
>>
>>388902482
>Wouldn't it just be garbage?
Not if you cast a wizard spell on it first
>>
File: Holy_Fuck.gif (1020KB, 320x212px) Image search: [Google]
Holy_Fuck.gif
1020KB, 320x212px
>>388899829
>Sophomore computer science major
>No idea what's happening in this picture
I feel like even if I'd been learning C++ for longer than I have I'd have no idea what was going on here. I see a long pointer being casted onto a float pointer for some reason, uhhhh apparently that hex number is good for calculating light reflections or some shit, that's about all I've got. What is the significance of this code snippet?
>>
>>388902328
If you don't know how to optimize your code chances are you don't need to.
>>
>>388902560
Read >>388902191 it's worth it. Also I will once again recommend the book Hacker's Delight and Programming Pearls too if you're studying CS
>>
>>388902560
>computer science
if you are anything else that a mathematician you suck a programming.
>>
>>388902560

>>388902191
>>
>>388902328
Hex is just for the human, when it is compiled to machine code there is no such thing as hex only binary. I think compilers would probably convert multiplying by 2 to bit shifting or else the machine instruction might just do that. I think multiplication basically works by shifting and subtracting if needed. Like if you want 3*7 you shift 3 times for 3*8 then subtract 3 for 3*7.
>>
File: 1503039626996.jpg (191KB, 1684x948px) Image search: [Google]
1503039626996.jpg
191KB, 1684x948px
>>388900000
A computer only knows the difference between two electrical frequencies, very quickly.
The closer you talk that kind of language to one, the more understanding is had and things get done faster.
>>
>>388902560
It's basically "magic" as in something you couldn't possibly just come up with on your own. You would have to test for it.
>>
>>388902662
>>388902715
Noted. Hacking has never been something I'm interested in, desu
>>388902704
English, Pedro.
>>
>>388902560
>computer science major
Another day another sucker
>>
>>388899829
>yfw some pajeet working for minimum wage wrote this code
>>
>>388902764
Quite a lot of hardware these days actually does mult on the chip.
>>
>>388902936
>Hacking
It's not about hacking in the modern meaning of cybersec, it's about hacking in the original sense of finding unconventional but very efficient solutions to problems.
>>
>>388903012
Ah okay, I don't know much about hardware so I wasn't sure.
>>
>>388903060
Ah.Gotcha. I'll give it a look, anon.
>>
File: zeroes.jpg (516KB, 1013x793px) Image search: [Google]
zeroes.jpg
516KB, 1013x793px
>>388902936
>>388903060
here's a screenshot, if you like stuff like the fast sqrt function you will like this book
>>
File: 1334503246505.jpg (209KB, 1280x720px) Image search: [Google]
1334503246505.jpg
209KB, 1280x720px
>>388902560
>"computer" "science" major
>>
File: 1503653204431.webm (3MB, 854x480px) Image search: [Google]
1503653204431.webm
3MB, 854x480px
>>388901582
>we will become useless
>the average human is only capable of low skilled repetitive tasks
>these are very easily automated
>implying the majority is not useless already and we're just waiting on the laws to allow self driving and other shit to pass
>>
>>388902983
Back in the day, most likely it was some autistic white guy at a college net terminal.
>>
Why does /v/ hate computer science majors? What if I like computer science?
>>
File: pp.jpg (684KB, 987x788px) Image search: [Google]
pp.jpg
684KB, 987x788px
>>388903239
And Programming Pearls is also very good.
>>
>>388903475
we hate ourselves
>>
File: 1491963739304.jpg (75KB, 420x420px) Image search: [Google]
1491963739304.jpg
75KB, 420x420px
>>388900731
>see you guys later XD
>>
>>388903475

Computer science is the Rick and Morty of college majors
>>
>>388901845
Haha, of course not, you fool
They wear blue robes
>>
>>388899829
>placing opening brackets beneath function header instead of on the same line

disgusting.
>>
>>388903648
>having the opening bracket be on the same line but the ending one be on it's own line
That is truly disgusting.
>>
>>388903648
Are you one of those autists from /g/ I keep hearing about?
>>
>>388903648
>Reddit spacing while shitting on bracket placement
I thought you people were all about readability and shit
>>
>>388903648
You know my nephew does this coding stuff. I bet he could do it for a heck of a lot less than this guy's asking for.
>>
File: girl code.jpg (205KB, 869x1776px) Image search: [Google]
girl code.jpg
205KB, 869x1776px
>>388899829
>>
File: ??.jpg (26KB, 343x354px) Image search: [Google]
??.jpg
26KB, 343x354px
>>388902854
I was wondering, how programing was achieved in the beginning of the computer science? How the scientist managed to get the first pieces of code to run on a machine?
>>
>>388903239
>>388903480
Can you share it?
>>
Could someone explain registers, oppose, and instruction sets to me?
>>
>>388903267
To be fair, whenever someone learns something in programming, it's the equivalent of standing on the shoulders of giants.

There are a lot of techniques that are simple and obvious once they're learned, but it took years of work from literal geniuses to discover. See: Quaternions, GJK algorithm, fast inverse square root, BSP trees... etc.... Things only become intuitive after you "get used to" them.
>>
>>388903927
Just look up the history of programming. They used punch tape.
>>
File: 1433478238407.jpg (13KB, 284x177px) Image search: [Google]
1433478238407.jpg
13KB, 284x177px
>>388900961
>>
>>388903927
The first stored-program computer (meaning you could reprogram it to compute different things) used switches to program it.
>>
>>388904025
http://libgen.io/
>>
>>388902328
hex isn't faster, but it's a specific "magic number" and putting it in hex both identifies that fact and emphasizes that there's bit-level fuckery going on

also, using shifts instead of multiplies/divides is loads faster, but only works on unsigned numbers (and anyway, any remotely modern compiler will automatically convert multiply/divide to shifts where appropriate -- in this code snippet though, i is signed and bit shifting is going on)

this shit's fucking magic, it looks really damn fast, it doesn't do anything remotely complicated
like, there's a CPU instruction to do it nowadays and it's faster, but it wasn't common at the time
also, there's a better constant, 0x5F375A86 (produces more accurate results)
>>
File: Noice.png (40KB, 373x318px) Image search: [Google]
Noice.png
40KB, 373x318px
>>388904331
>http://libgen.io/
>>
>>388900000
Unity made is so any retard can make a game and look what happened
>>
>>388904178
>Quaternions, GJK algorithm, fast inverse square root, BSP trees
The average computer science major hasn't heard of any of those things
>>
>>388903927
You literally had to connect/disconnect cables in a room
>>
>>388904547
I've heard of quaternions but I have no idea what they are or how they work.
>>
>>388904540
AA devs went bankrupt left and right?
>>
>>388900000
How would you expect just saying "do crazy shit" would work without something behind it? Dumb af
>>
>>388904350
i see, thanks
>>
>>388904547
So you're saying the average CS major hasn't finished their first year?
>>
>>388904694
CS programs are a sham. They don't teach kids anything past a Wikipedia article's depth.
>>
File: humu.png (246KB, 529x630px) Image search: [Google]
humu.png
246KB, 529x630px
>>388904552
>>388904539
>>388904280
Interesting...
>>
>>388904694
Not him but aren't most of those things only/mostly relevant to game design and 3D graphics?
>>
>>388904547
True, but up the chain someone seemed almost sad that they couldn't understand the fast inverse square root algorithm on sight, which is a totally unrealistic expectation to have. Learning this shit isn't a walk in the park, and it's probably harder if one thinks that there's something wrong with them if they can't grasp these concepts at a glance.
>>
I think I'll just go into car mechanics.

I don't have the brain function for CS.
>>
File: IMG_0850.jpg (108KB, 499x468px) Image search: [Google]
IMG_0850.jpg
108KB, 499x468px
>>388900000
>wasting good quints like this
>>
>>388904952
Read the thread.
read the article that explains it all
>>
>>388899829
Why did they do
i = * (long *) &y;
instead of just
i = (long)y;
>>
>>388904998
actually fixing up engines isn't all that different from debugging programs, engines and software are very similar systems of small pieces working together
>>
>>388904694
Don't know how it is in Europe but in the US, the average 4 year graduate in CS doesn't even know what the fuck O(n^2) means.
>>
>Look through someone's code
>See how they're updating entities
>Each entity has an update() function
>Each entity inherits from Entity, a pure virtual base class
>Each entity inherits from multiple other classes (Render-able, Physical, Static)
>The entire groupings of entities are literally placed into a vector, no handles or IDs just the whole structure
>An iterator is used through in for loop to traverse entity in the contain

Game did game programming come to this?
>>
>>388903927
I think a good way to think about this is to not look at modern PCs but more look to shit like redstone in Minecraft and what people can do with simple switch systems. You start to be able to do things like simple calculations and timings... and then you invent ways to store positions via "memory" which can be recalled and used. From there the world opens up. I mean, you have to take things incrementally. First you're inventing say, a program that counts. Then you are programming a way to light up a simple display to show the counting. Fast forward and you have something like DOS, then windows, etc etc. The mind-boggling part is how many of those little switches are needed for you to shitpost.
>>
>>388905174
I'm in the US and I learned that my second year
>>
>>388904851
Quaternions and GJK are. Fast inverse square root is a historical curiosity now, though it is something a programmer should be able to understand once explained to them.
But BSP trees are something any idiot past their first year should know.
>>
>>388905105
There just much more math involved and I don't know if my brainlet mind can handle it all.
>>
>>388905204
Seems like a standard "game programming" code, what is wrong?
>>
>>388904851
>>388905250
Or pardon, I'm getting BSP trees confused with AVL trees. BSP trees are indeed graphics shit.
>>
>>388904952
>>388905085
I don't know if this is true or not but I would say it is probably because i = (long) y will just truncate the "decimal" part of the floating point number. Where as
i = * (long *) &y;
Will convert only the address to a different type and leave the data alone so when it is dereferenced it will be read as if it was an integer. Basically it lets you manipulate the bit representation of the float instead of converting it to an int.
>>
>>388905250
BSP trees aren't the same thing as normal binary trees
>>
>>388905229
Then why can't you retards demonstrate that knowledge in a job interview?
>>
>>388904952
the second code turns (float)1.5 into (int)1
the first turns (float)1.5 into (int)1069547520
>>
>>388905085
>i = (long)y;
This causes the VALUE of y to truncate to an integer, and be stored in i. If y was 1.95, i would round up to 2.

>i = * (long *) &y;
This interprets the already existing bits of y as an integer value. Nothing is rounded, data isn't transformed from one type to another, it's simply reading the already existing memory as if it were a long;

>>388905450
Actually, you explained it perfectly before I finished this post
>>
>>388905439
Ah okay, yes we learned AVL at my school and red-black trees, I forget exactly how they work but if I were to read a summary I would probably remember. I'm familiar with the problem of needing to keep a tree balanced or else it is basically a glorified linked list.
>>
>>388905508
I have no fucking clue what those morons are doing. Fizzbuzz shouldn't be necessary, yet somehow is.
>>
>>388905353
hating on OOP is a trendy meme these days
>>
>>388905336
Computer Science degrees have way more math than you'll ever need in actual programming, depending on what you end up doing. As a web developer I haven't used math more complicated than multiplication and division since I left college.
>>
>>388905508
Because human resources managers know fuck all about code and are not interested in it. You think they have a guy who does coding interview you there? It's the kind of guy that thinks bigger = better as far as coding is concerned that will be asking you questions about your "references" and "experiences".
>>
>>388905508
I can.
Interviews aren't a good representation of how knowledgeable graduates are since the shitty candidates are going to have to do more interviews than the good candidates.
>>
>>388905649
>You think they have a guy who does coding interview you there?
Yes, at any decent tech company.
>>
File: ffffffffffff.jpg (123KB, 1318x741px) Image search: [Google]
ffffffffffff.jpg
123KB, 1318x741px
>>388905598
Actually, I just realized that 1.95 would round down to 1. I should commit sudoku.
>>
>>388905782
Good luck getting into a decent tech company as a coder. The amount of codemonkeys out there is fucking staggering, the job market is oversaturated by "programmers" of all kinds, that's not to mention the fucking indians.
>>
>>388905636
OOP please leave, onegai.
>>
>>388905798
You could've said nothing about it and the whole thread would've been none the wiser
>>
>>388905617
>>388905508
And yet if I do their fizzbuzz correctly they might still reject my application on a whim with no explanation, like maybe they thought I looked like a fag, so this "woa no one can do fizzbuzz" shit is a meme
Kys interviewfags
>>
>>388905798
>>388905959
fun fact: the quake 3 virtual machine ignores much of the ieee floating point standard - 1.95 actually WOULD be rounded to 2. that's one of the many reasons the quake games' movement handling is so famously generous.
>>
>>388905895
Or you could just be like me -- get a low-teir job and revel in the fact that you're the most over-qualified person in the history of that position. Job security has never been easier.
>>
File: Cugk5I1VYAAR7CM.png (882KB, 1000x1000px) Image search: [Google]
Cugk5I1VYAAR7CM.png
882KB, 1000x1000px
>/v/ brainlets try to understand programming
>it's actually kinda cute to see how the general populace grasps programming as someone who's been doing low and high level programming work for over 12 years
>>
>>388906204
Oh shut up you smug fuck. Nothing wrong with people trying to learn something new.
>>
>>388905959
Not worth the risk of being called out hours later when some autist reading the middle of the thread decides to one-up me. I had to fix it quickly, you must surely understand this.
>>
>>388905895
Real talk look into biotech. I work in biotech/genomics on the science side in the Bay Area and every company I know is desperate for programmers and data scientists who can understand biology on a basic level.
>>
>>388906204
It's just applied math. I can say the same about you regarding things like finding a lagrangian. Being smug about programming is pretty sad considering all programmers I know are creeps or weirdos
>>
>>388906308
Whats up with the boom of biotech startups? What the fuck are they working on?
>>
File: file.png (18KB, 719x247px) Image search: [Google]
file.png
18KB, 719x247px
>>388900731
>>388900938
>google who that girl is
>go to her website
>reach the bottom
>pic related

what a fucking joke
>>
>tfw CS major
>tfw I'll probably unemployed when I finish college
Kill me
>>
File: 1326425219471.png (45KB, 384x221px) Image search: [Google]
1326425219471.png
45KB, 384x221px
>>388899829
>halfs
>>
>>388906482
Biology has been making massive advances lately. There's so much shit going on that logistics have become a prime concern. And not just biology, medicine in general, proshetics too. We've got shit so advanced it can make your head spin. Artificial eyes, the cunts that bruteforced brain signals to realize what impulse corresponds to what letter in order to enable paralyzed people to literally type with their minds, artificial feet that can work as well if not better than your legs and so forth.
>>
>>388906586
>wix

holy shit that is still around? Exists solely to rip off people who cant into computers
>>
>>388906758
You are fucked unless you are genius level which I doubt.
>>
>>388906636
I'm graduating this semester. I should probably start looking for a job.
>tfw no internship experience
>tfw suck at interviews for even basic jobs
>>
>>388906701
Damn sounds like the hottest shit
>>
File: 1337297144418.jpg (126KB, 288x499px) Image search: [Google]
1337297144418.jpg
126KB, 288x499px
>>388906636
>can't code when people are staring at me typing
>can't even get an internship position because I have to write code on paper without making any mistakes and I have to know every single fucking c++ and java function by memory apparently
>spill my spaghetti every time and make silly mistakes
>can never get true job experience because I need to know things before I can be taught them
>>
>>388906863
Really? My GPA is 3.6 is that good?
>>
>>388906962
Recruitors don't give a shit.
>>
>>388906998
I can't live with my parents anymore they make me miserable. I need a job or I'm fucked.
>>
>>388906903
>write code on paper without making any mistakes
Anyone who forces another human being to do this needs to beta test some gas chambers.
>>
>>388906482
So for a while there have been tons of ideas in biotech floating around that fall into the "that would be cool but there's no efficient process to figure that out". In the last few years, there have been major advances in several key areas. High throughput sequencing of whole genomes has gotten fast and dirt cheap. Sequencing a genome costs about $1000 now, compared to a round billion a decade ago. Sequencing and other tools are allowing biotech to screen massive amounts of information and generate huge data sets. We're also at a point where we've gotten real good at analyzing big data. Automation has significantly increased workflow.

So now tons of ideas that people have been thinking about for years are actually feasible because of all these new tech tools.
>>
>>388907050
Drink yourself to death like the rest of us.
>>
File: NormalVector_700.gif (17KB, 500x209px) Image search: [Google]
NormalVector_700.gif
17KB, 500x209px
>>388901263
You need to calculate these little arrows all over objects. To get them you need to do an inverse square root (1/sqrt) and this makes it faster.
>>
>>388907053
well, there's at least six people that you'd like to Zyklon B to death, then.

Man, I don't want a godly intership position on a massive company with billion dollar prospects and a guaranteed job after finishing college. I just want to work. But in the rare event I get an answer at all after submitting my curriculum I get fucked by shit like that.
>>
>>388907053
All my teachers do this.
>>
>>388900961
wait wait, hold the fucking phone

who took that picture if the girl was using her hands to "code" ??
>>
>>388907310
anyone?
>>
>>388906636

>CS Major

lol

I didn't even go to school and I landed a job as a database tech consultant making 55k a year. CS majors are a waste
>>
>>388907425
>not having a camera taped to your forehead at all times recording
>>
>>388902328
You wouldn't do this now, it would actually be slower. The logic is built into hardware these days.
>>
>>388907104
That's really crazy, those fuckers who studied biotech without expecting these advances must be feeling like they struck gold
>>
>>388907442
Do you have certifications and shit?
>>
>>388907193
to clarify, you need to calculate square root of x^2 + y^2, but if the inverse square root is faster to calculate than the real square root then its easier to do 1/(inverse square root).
>>
File: images (2).jpg (6KB, 208x243px) Image search: [Google]
images (2).jpg
6KB, 208x243px
>mfw I work with Python in an environment where we don't need to care about optimization at all
>>
>>388907442
CS majors make 65-70k average out of college, a few years and it can reach 100k

I dont think thats a waste
>>
>>388907567
Web development?
>>
>>388907536

Yes. And I did a lot of self learning. Had to learn SQL, HTML, javascript and some java. They tested me before hiring me

But hey, no student loans to speak of
>>
>>388907567
You should worry, you just can't do much about it.
>>
>>388907442
I only got a BS in CS and make 92K a year.
I don't know if it was really worth it because I don't like the job.
>>
>>388907683
>student loans
>>
>>388907803
At least America has jobs
>>
>>388907647
>CS majors make 65-70k average out of college

No, they don't. The vast majority of CS majors are people who cannot actually handle a job in IT or CS.
>>
Why don't we just get the computers smart enough so they can program themselves? Surely this won't go wrong in any way.
>>
>>388907803

Yeap, that's how it works here. Even midrange colleges cost a good 1.5-2k a class, and that's assuming you don't do the whole living on campus thing which most people seem to do for whatever reason

Assuming you don't have scholarships and such of course
>>
>>388900000
>/g/ stealing our gets
fuck off
>>
>making an android app for a small company
>doing it for free because I'm friends with the owner and I know he's pretty much broke
>hoping to use it as a nice portfolio piece for my resume for when I actually apply for a legit career

It's a real fucking bitch though. I'm spending more time debugging than anything else.
>>
>>388907937
>what is deep learning
>>
>>388907937
Because AI is a meme.
You will never see AI anything.
>>
>>388907917
What kind of degree or certification do I need to be the guy that installs Adobe Acrobat updates and occasionally restarts the modem in an air conditioned office for 8 hours a day?
>>
>>388908008
>doing work for a company for free
You're fucking retarded. Stop now and demand compensation.
>>
>>388906204
that's one hell of a superiority complex you got there.
>>
>>388908008
>Android

Do you hate it as much as I do? I think it's just one of the worst APIs ever alongside Android Studio.
>>
>>388908107
a degree in time machines
>>
>>388907567
After doing a lot of low-level c programming, I had to learn a little Python to write a Blender plugin... It made me feel dirty, in a good way.
>>
File: download.jpg (8KB, 224x225px) Image search: [Google]
download.jpg
8KB, 224x225px
>>388908008
dropped your photo
>>
>>388906204
>being smug on an anonymous message board
>>
>>388908143
I love how every time you open android studio there's a 50/50 chance it will refuse to compile anything you do for incredibly arbitrary reasons
>>
>>388908008
>>doing it for free because I'm friends with the owner and I know he's pretty much broke
Retard. At least get some sort of contract for the work you do, in case it makes any money.
>>
27 year old here. I literally went into CS and networking as a career because of this video:

https://www.youtube.com/watch?v=W8_Kfjo3VjU

I wonder if anyone here remembers this
>>
>>388907556
1/sqrt(x^2 + y^2 + z^2) because 3D

you need the inverse always because you need to divide the x,y,z components by that sqrt(x^2 + y^2 + z^2) so you just do x,y,x * 1/sqrt(x^2 + y^2 + z^2) instead.
>>
>>388908008
>I'm spending more time debugging than anything else
That's called coding.
10% design
30% implement
60% debug and test
>>
File: 1484766143824.jpg (38KB, 1200x569px) Image search: [Google]
1484766143824.jpg
38KB, 1200x569px
>>388903927
So you have a basic computer. The only thing it does at that point is process electrical signals using logic gates. Logic gate are used for binary math, pic related. If you want to do an AND operation you manually send electric signals using punchcards. Since you don't want to enter a long sequence every time you want to calculate some stupid crap you write an even longer sequence to calculate the stuff you need. Think of it as "Computer, please send bits 10101010 to gate A, send bits 01010101 to gate B then XOR them" to "10101010 XOR 01010101". After that you either write a fucken compiler or become a Chad.
>>
>>388907532
It's going to be a massive industry in the next 10 years. Once these new small companies start building some serious infrastructure and making returns, they're going to take off.

Some of the stuff people are trying to do is insane. Guys are trying to figure out liquid biopsies for cancer, where they take a blood draw and analyze it for tiny fragments of tumor DNA to detect cancer way before any symptoms emerge. And at the same time, they need a massive data set with known outcomes to determine what those DNA fragments mean, so they're doing long range studies of 200,000+ people to generate that data set.

Guys are generating peptide libraries or other molecule type libraries with 10^15+ unique molecules, which they screen in an automated production line to find the ones that can act as a drug through a specific mechanism.

Guys are figuring out the genetic pathways that create natural products, coding them into cells and figuring out how to mass produce them. Shit's crazy.
>>
>>388908124
I'm serious about him being broke. We're real close buds, but he's just got no way to pay me. It's a favor, and I thought it be a great way to really test what I know.

>>388908143
Fucking sucks man. I've got most of the shit done, but it's an ugly looking app. Constraints are a bitch to use but are too useful for me not to use them. Goddamn Twitter API is giving me such hassle over nothing; just trying to get a listview of a timeline with particular queries and it just flat out refuses to display anything. Android Studio is the worst though; sometimes there's an error that has to be fixed by a simple gradle sync, and sometimes it wants to just not work period. I've fixed to many errors by simply restarting the IDE and it shouldn't be that way.
>>
>>388908531
This stuff blows my mind. I wonder if they felt like this when the internet was beginning to take shape
>>
>>388900291
hard to tell without seeing the entire program.

all this does is change y to a certain value using i, x2, and threehalfs (im a programming noob dont know if thats just a name for a variable or something else)

at the bottom are libraries i dont know
>>
>>388908890
Did you even read the thread lmao
>>
>>388902389
>I NEED to know the context of this image
Russia.
>>
>>388908890
>needing to see all the code to know what one function does

come on man
>>
>>388907050
shoulda worked on those internships/connections brah. Those mean way more than some piece of paper.
>>
File: Kung_pow_betty_laugh.jpg (84KB, 491x414px) Image search: [Google]
Kung_pow_betty_laugh.jpg
84KB, 491x414px
>>388901845
>>388903590
I AM A GREAT MAGICIAN
YOURCLOTHESARERED
cy dot tube/r/AtrusBullshit
streaming in ~7.5 mins
>>
File: 1474158266919.gif (517KB, 528x297px) Image search: [Google]
1474158266919.gif
517KB, 528x297px
>on 4th year of Computer Science degree
>can't remember entirely how classes work
>can't remember how to compile code in C++
>forgetting some basic rules of Python coding
Help me /v/. I have to take Programming Languages next semester and am currently taking Data Comm, which requires me to have some level of handle on C++.

My school is terrible. They made us use only Python for Intro and Intermediate Programming and once we made it to Data Structures they forced us to start programming in C++ and gave us basically 2 weeks to learn it. I never got a handle on C++.
>>
>>388907762
what do you do?
>>
>>388908985
then whats it do?

i understand the computations but since the variables arent clear, and the comments are useless, and its a language im not familiar with idk what this function is for
>>
>>388909371
idk you could read the fucking thread or the wikipedia article but that might be too hard for you
>>
>>388909240
Read code complete from cover to cover and find an open source project in C++ that you really like, if you use it all the time all the better. Get the source code and learn how it works, then start contributing to it. C++ is painful to learn but surprisingly comfy once you get used to it
>>
File: 262738.jpg (49KB, 1280x720px) Image search: [Google]
262738.jpg
49KB, 1280x720px
>>388909240
The more I read this thread, the more obvious it becomes that the modern education system doesn't actually teach you things, it merely teaches you ABOUT things.
>>
>>388909175
T-minus 2 minutes
>>
>>388909240

That's normal. Even the biggest hot-shot programmers google stuff all the time and spent a reasonable amount of time reading stack overflow.
>>
>>388909240
Also, use visual studio and don't let g cucks tell you otherwise. Install Virtual Assist even if you have to pirate it, VS sucks without it but that plugin changes everything.
>>
>>388909175
>>388909582
Kung Pow now playing.
>>
>float Q_rsqrt

why didn't he name it something readable? why Q_rsqrt?
>>
File: wait a sec.png (34KB, 206x200px) Image search: [Google]
wait a sec.png
34KB, 206x200px
>>388909575

It's almost as if you are meant to apply what you learn in the real world. Crazy.
>>
>>388908647
>>388908143

You should really look into alternates to Android Studio for mobile apps

Ionic framework looks really good for example
>>
>>388909703
https://stackoverflow.com/questions/7448262/why-are-c-names-shortened
>>
>>388909703
>why didn't he name it something readable?

>sqrt
squareroot
>rsqrt
reverse squareroot
>Q_rsqrt
quick reverse squareroot
>>
>>388909703
Q is just a prefix, rsqrt is reverse square root.
>>
>>388909703

It was written by John Carmark in the early 90s IIRC, coding conventions weren't as developed back then.
>>
>>388909679
Thanks
I'll try that plugin out. I've been using Visual Studio without it
>>
>>388909240
>gave us basically 2 weeks to learn it

what the FUCK?

also I'm assuming Data Comm is a networking course (data communications), why would you need c++ knowledge for that?

at least, when I took it it was pretty much just a class that showed how networks work from the bare wire to applications
>>
>>388909728
I have never taken a CS course, but it seems as if it's a total meme. Simply not taking the course and skipping directly to doing things in real life seems like a much better use of time.
>>
>>388900067
/g/ here, I knew what the image was from the thumbnail. You are talking to a typical ``gaymer''.
>>
>>388909921
It's called Visual assist actually, my bad. Either way it's pretty much the industry standard for C++
>>
>>388909728
but how are you supposed to apply what you learn in the real world if you aren't actually being taught anything

all you learn in the modern classroom is vocabulary on whatever subject the class is about
>>
>>388910031
>not programming in emacs through a console while blindfolded
>>
>>388910068
You can't genuinely teach things to a class of 50 kids. Shit's impossible, they have to teach themselves.
>>
File: data comm.png (37KB, 763x353px) Image search: [Google]
data comm.png
37KB, 763x353px
>>388909950
Yeah, it was pretty shitty. Had to take the class twice and still never really learned enough about C++.

Also I don't know the details but something about using socket programming to connect to a server.
>>
>>388909982

Just doing stuff willy nilly without knowing the architecture under the hood will lead you to writing inefficient code.

Knowing how stuff works at a low level allows you to write fast and memory efficient solutions.
>>
File: 539d0b3ec90e8c71b6000065.gif (842KB, 500x540px) Image search: [Google]
539d0b3ec90e8c71b6000065.gif
842KB, 500x540px
>>388906636
>When into programming because I was discouraged from art but supposedly 'good with computers'
>Fail because I'm retarded and can't into math
>Take art like I always wanted to
>Actually improving, making connections and going into animation in a week
It might be a risky avenue, but at least it can't be outsourced to pajeets.
>>
>>388910337
Anon, I'm not sure if I should tell you this...
>>
>>388910337
>but at least it can't be outsourced to pajeets.
>>
>>388910427
It really can't. its outsourced to gooks and eastern yurops
>>
>>388910386
>>388910427
I'm aware animation is outsourced to south korean studios but that's only for television productions, there are still lots of other domestic avenues for animation/applicable art.
>>
>>388910337
Good luck anon. I have two friends that tried animation. One does projection mapping for EDM shows and loves his job. The other worked on the Peanuts Movie for 6 months, hated everything, ragequit animation and now does other shit.
>>
>>388910580
I know that I might have to work on some real blunders (I thought the Peanuts Movie was good though), if I have to work on Emoji Movie 2: Emoji Harder and Boss Baby Number 2 then so be it.
>>
>>388901426
picture a computer moniter as a huge grid of lights.
the letters tell the moniter what color to make each light on the grid, and it does this 60 times a second, or whatever the refresh rate it

how that works is thanks to the bios
and how that works is basically by using electricity and magnetic switches. picture a really tiny rube golberg machine and you start to get the idea
>>
>>388910231
Can someone translate this image into English for me?
>>
File: 20170821_160210.png (137KB, 259x306px) Image search: [Google]
20170821_160210.png
137KB, 259x306px
>>388900731
>return 5 because I'm so random yay :D
>>
>>388910847
why we wasting times with polygons and particle effects when we could just make a .png for every single possible frame the game could ever need and play them in succession, any machine could run beautiful games
>>
>>388910890
the assignment wants him to create a program that can transfer a file between a server and client over the network
>>
>>388910938
this is how all those anime VNs are made
>>
>>388910890
The assignment is to gain experience using two different protocols to transfer files between a client and a server.
>>
>>388899829
You might laugh at this silly video game but this is exactly how Windows is being developed nowadays - with people who have no idea what they're doing.
>>
>>388911056
Don't VNs have character sprites and text tools to work on it with?
>>
>>388910938
Mostly memory constraints.
>>
>>388911098
depends on the VN, some have character sprites that can vary based on the scene, some literally just use jpgs
>>
>>388910240
I agree that understanding things on a low-level is the way to go.

On the other hand, I'm self taught, and I go full autism mode with optimization and memory usage. One VirtualAlloc at program start, memory is then mapped out to custom allocators and buffers.(None of this generic malloc shit) All data is designed with the knowledge that the cpu has to take time to actually touch and manipulate that data, etc....

Maybe I'm biased against school because I didn't go, but a lot of this stuff can be learned/pickup up on by simply hanging around online communities of people who value these things.
Thread posts: 284
Thread images: 45


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.