Is programming an art form? What programs can be considered great works of art.
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed
return y;
}
is a piece of art.
>>60801362
making a constant for threehalfs and then throwing 0x5f3759df at you fours lines later makes me kek every time
>>60801362
does this offer any performance gain?
does it even work nowadays?
It is located at wibr.me. Please try it out and give me feedback. If you want to submit a page to it, I'd appreciate it.
Spent the last few weeks trying to get more pages. It is not easy because most pages these days are ad filled, bloated with scripts, very polished pages but they contain little content, so they cannot be indexed.
I want to rebuild the web to be like it was in the early days, where mostly personal and hobbyist type pages existed, that were lightweight and easy to read. Only these pages can exist on my search engine, with few exceptions.
>>60801292
Holy shit, this is the best search engine to date... I can actually find what I'm looking for!
>>60801292
poop only comes up with 2 results
>>60801337
>... between sentences
nice try pajeet
>>60801380
>poop only comes up with 2 results
eh, google poop results are shit
So I just graduated with a CS degree and I recently and I plan to buy an SSD for my laptop and clean out all the gunk and academic bloatware from the past 4 years.
I feel stupid for asking this but what is the best Linux Distro to install that is as stable as possible but also and contains the latest possible components (e.g Python 3.xx and stuff like that. Unlike with Ubuntu where you have to have both python 2 and 3 install in order for it to work)
I know there is a meme thread about this nearly everyday but I really need to know this time.
>inb4 typical gentoo meme
Also, should I actually even buy an SSD especially with forthcoming Intel X-point technology getting so much hype?
inb4 gentoo meme
>>60801231
Xpoint meme will be expensive, and might drive regular ssd's up
>>60801231
>Unlike with Ubuntu where you have to have both python 2 and 3 install in order for it to work
>>60801266
Wait what?
As far as I know is very messy if not impossible to install Python 3 into Ubuntu and completely remove Python 2 without some component failing. You'd have to completely deflower your OS in order to do so. There is a bunch of tangled wires under the hood.
Quick question:
So, Elon Musk has been building these rockets that can land themself right? So, it looks like it shoots fire out of the bottom to slow its decent, probably controlled explosions? (Like a car!)
But he also wants to turn everything into batteries. Once everything is solar, how is he going to create the explosion energy without rocket fuel?
>>60801173
>>>/g/sqt
>>>/sci/
Fucks sake anon, 2/10 because you made me reply.
>>60801205
...pardon my ignorance...is this really that stupid of a question? I know I'm not up on all my jargon
>>60801173
You're retarded
Made a custom Speccy snapshot theme, you like?
Apply with tampermonkey extension:
https://openuserjs.org/scripts/jessexd/SpeccySnapshotSolarized
Example speccy snapshot link:
http://speccy.piriform.com/results/etQUMcp5ztk1SJgivISRUuT
>>60800568
Yes I like the modern looking interface very esthetic.
>>60800622
thanks
>>60800568
> light grey text on white
> anything on teal
.
this is the future they're trying to sell you, cradle to grave
Welcome to the Experience machine
> Dumb fucks
They deserve to be humiliated like this for being submissive to a walking cunt.
>ISO / MPEG standard
>half the size of equivalent JPEG quality files
>supports lossy and lossless compression
>flexible container format with built-in support for animation, alpha, non-destructive editing, and other media types like synchronized audio and text
>open-source codec implementation available from Nokia
>full support from Apple (and most likely everyone else but Google and Mozilla)
Will HEIF + HEVC be the next-generation web image format that finally liberates us from the enduring mediocrity of JPEG / GIF / PNG?
Yes goy, this patented technology is the future.
>>60800537
With the exception of PNG, patented industry media formats have always been the status quo. Deal with it.
PNG is just fine, unless you have a 200GB drive
Do you have a discrete internal or external soundcard, /g/? Or are the internal sound chips provided by the motherboard "good enough"?
Is there even a point in getting one of those external AMP/DAC devices?
>>60800420
I use pic related. Lovely Midi synthesis.
>>60800420
thatsaman.jpg
ten bucks says she uses the transition card to try and get out of jail
>>60800504
I bought that for $1. Is it worth the trouble of setting it up Anon?
has apple become literally retarded. replacing the top row of the key board for a touchscreen is the dumbest of their hipster gimmicks yet
worst part is now probably every other manufacturer is going to try to copy it because that's basically their whole strategy, but of course it's going to be a half-assed piece of shit that needs their shitty drivers to work and even when it does work it will be even more useless and shitty than applel's
>>60800270
>poorfag
lolz
>>60800270
Alright /g/s
I'm a fucking old school programmer. Not AS400 old but write your own java and style sheets in text. Hell when I started there was no such thing as CSS.
Anyway I want to into apps. The problem is I cannot for the fucking life of me figure out how to into database. Not the database, not the SQL code, but how the fuck do I make my game/app/whatever talk to a website or database. I just want the most simple thing:
>user downloads app
>user enters [name]
>name goes into my database
>user come back
>"Hi [name]"
Am I missing something simple or completely obvious or - seriously how the fuck do you do this? I mean I used to write .asp pages and microsoft SQL dbs for a living but went off the grid and did php/mySQL for years before then dropping off the grid and just jerking it to 4chan webms all day.
Seriously I'm rusty but why the fuck can't I figure this out and what the fuck is the answer?
thanks /g/ents
>old school programmer
>java
>>60800227
What programming language and which database? There's probably a library out there that makes this very easy.
>>60800227
well what fucking language are you using?
I hope you're not so oldschool you're creating sockets to send tcp to a db
He's not wrong.
FYI, no one "updates" their computer down the line, especially laptops. Most people buy new laptops every few years.
What is the point of this thread? There is absolutely nothing to discuss you blogger.
>>60800268
The point is about soldered removable items like RAM or SSDs.
The less moving parts, the better.
>Macs having soldered ram is okay because Mac users aren't smart enough to open a computer anyways
>media doesn't know monkey dongs
even 2017, fawkes is still the best haxor
You mean you don't wear a hoodie and use a holographic projector to fill your room up with 1's and 0's while tapping furiously on your keyboard?
mfw i just stole you're are identity and used it to buy a shipping container full of underage asian sex slaves
Seriously, who the hell does RAID on m.2? Do you need to backup your trap porn at 6,000MB/sec?
>he backsup his trap porn slower than 6GB/sec
On the floor fucko - take you're time, we've got all day with your shit backups
>>60800009
If you're buying HEDT, you should be able to backup whatever the fuck you want at 6,000 MB/sec.
I suppose for gaymur shit it'd effectively eliminate load times.
Might be useful for workstations? If you're doing something insanely memory intensive that requires virtual paging, this could be huge.
old thread: >>60793579
What's your favorite programming beverage?
I just made a latte with instant coffee and frothed whole milk.
What is it about C that that scares stupid webdev kids?
>>60799803
>>60799893
>>60799931
why does go come with a http server? i seriously don't know why programming languages would come with libraries that make it easy to host http servers
Anyone here use a standing desk?
If so, would you say you're more/equally/less productive/effective with it than a normal desk?
Another week, another AMD stock rally based on absolutely fucking nothing.
God I love this crazy stock.
It's a rollercoaster.
Also don't tell me you didn't buy the dip, faggot.
Actually from looking around it seems it has something to do with the Tesla rumor, Apple design win and mining.
>>60800114
>>60800114
>Tesla rumor
Sauce
is /d/ prepared for this?
http://wccftech.com/asus-teases-5ghz-overclocks-amds-ryzen-threadripper-cpus/