/dpt/ - Daily Programming Thread

Old thread: What are you working on, Jow Forums?

Attached: 1551037650548.jpg (1920x1080, 325K)

Other urls found in this thread:

youtube.com/watch?v=IGlBwyXMlqI
twitter.com/SFWRedditVideos

I need some new programming socks, got any recommendations?

I don't take people who like anime seriously

I don't take people who hate C seriously

I don't take people who don't like anime seriously

It's a well known fact that weebs make the best programmers.

the three general ways to load assets are
load them all at once, load them during a loading screen, or stream them in at runtime
third is obviously the most complicated, if you are making something with a low memory footprint (less than a gigabyte) go for the first
if you are loading/unloading assets at runtime use some sort of tag or classification system so you can specify what ones should be loaded at all times, or per level, etc

You’re only a good programmer if you like anime and hate C.

Attached: CF182333-2361-4BB9-8FBB-467ED3C3CE3D.jpg (938x720, 95K)

You sound like a pothead defending pot.
Anime is actually just bad for you.

How do I convert my addiction of masturbation to programming, guys?

Attached: 60d30_2256.jpg (1024x768, 191K)

Disgusting. True animefag qt programmers are soft on the outside and hardcore logicians on the inside. A true animefag would only program in C, Assembly or even by manually plugging the CPU in and out an power plug.

Fucking get the fucking out.

Become a tranny so you stop fapping and program in Haskell so you can jerk off your ego instead.

Not jerking off is pretty easy, did it for like a month and received no enlightenment.

Making a vim plugin for Jira. Just finished "Learning Vimscrip the Hard Way" and currently writing a design doc for my plugin. Does anyone know about good, efficient designs for "form-like" data in vim (e.g. a jira issue)?

Attached: fren.png (700x700, 113K)

>did it for like a month and received no enlightenment.
How dare you question magical solutions?

>comparing C to Assembly
C is just a stripped down Java with a nice Assembly interface and a machine code target. The language itself is at least six layers of abstraction above Assembly.

every time you want to masturbate, program instead.

Attached: failed.jpg (191x126, 7K)

If I am working on making myself a 2D/3D engine that at its most, could do something like Quake II, would I be fine with the first option?

I did look at the dudes code he was posting and it seems like what I am trying to do.

with modern SSDs you could load all of quake2 in a heartbeat.

yes, you could probably fit Quake2 into memory a hundred times over in modern computers
Just have a system that iterates through a folder, detects the type of resource in the files and loads it into a map/dictionary which you can access at your leisure

f = lambda a, b, fn: fn([os.stat(a).st_size, os.stat(b).st_size])
f(a, b, min)
f(a, b, max)

that's pretty clean dude, thanks

actually that doesn't work for what I need, but it did answer the initial question, so thanks anyway.

next level, how about combining these two lambdas?:

lambda a, b: a if os.stat(a).st_size > os.stat(b).st_size else b
lambda a, b: a if os.stat(a).st_size < os.stat(b).st_size else b

[/code]

need to return the larger/smaller file itself based its size, not its actual size.

f = lambda a, f, cmp: a if cmp(os.stat(a).st_size, os.stat(b).st_size) else b


Then:
r = f(a, b, lambda a, b: a < b)

Or:
import operator

r = f(a, b, operator.gt)
r = f(a, b, operator.lt)

What about the Dreamcast or Raspberry Pi?

I've probably been doing things the hard way. I had a lua script calling a function for every single image. I did that because I looked at duke 3D's script file.

>friend tells me about go
>research and read some code snippets
>half of every fucking program is jimmying error handling into functions

we could have had easy modern C and we got this garbage
webcucks were a mistake

Attached: into the trash.gif (580x433, 1.96M)

It's Google bike shedding Java.

should I get a job working in ruby?

no

That depends... What's your experience with Ruby? I assume you're at least familiar with it.

Do you enjoy programming in Ruby?

fuck no

bare underage shoulders!

There's nothing sexual about shoulders.

I made another exhentai scraper.

Your fortune: Average Luck

UI programming is a mistake, we should have kept it all terminal based.

more like poorara

A TUI is still a UI, user.

What's your point?

Haven't tried to do a project yet, just toy programs. It is neat, but I'm coming from mostly some years of bog-standard C++.

I've got a good chance of landing a job with a Ruby shop that pays fairly well. But I can't get a feel for whether it's a "fun for the first week, hell for the next 50" kind of language or not.

fuck yeah we got likes and perks now

...

Rolled 3 (1d6)

reminder that this is an anime website and Nim is /ourlang/

Attached: 1550885097585.jpg (720x723, 173K)

>reminder that this is an anime website
true
>and Nim is /ourlang/
false

Man, April 1st is such a fucking hassle.
All of these companies trying to be hip with their le funnay jokes and maymays. It's so fucking old.

Attached: 1543088326562.jpg (168x58, 5K)

I was going to like your post but you mentioned nim

wow how do i dislike this post

Stackoverflow is basically unusable

Edit: have an upvote

Anti anime tards btfo!

Attached: 1530513665355.png (534x318, 33K)

I'm hashing out ideas for an OS project I'll be starting this summer. I've written an RTOS before, so I have a bit of a background in this stuff, but there's still a big learning curve ahead.

>>and Nim is /ourlang/
>false
false👌

Attached: 2019-03-24-152954_1190x1774_scrot.png (1190x1774, 127K)

Who here is/is currently self-taught/self-teaching?
What are you learning?

ANIME BTFO!

can you repeat the question🐰

Attached: 3b6.jpg (600x338, 183K)

When was that site ever usable? I get more help her desu.

I'm almost entirely self-taught. Computer engineering major, so I have some programming courses but nothing I didn't already know. I've been working my ass off to push myself to the forefront of the industry before I graduate.

Attached: 2019-04-01-005431_992x272_scrot.png (992x272, 16K)

please give me likes

Attached: 3w.jpg (474x266, 18K)

>no dislike feature
dumb

that would be toxic!

>begging for likes
no

Works for Reddit desu.

C++ is the most powerful programming language on Earth.

Attached: 1544464682116.png (868x1228, 1019K)

more like her cunnie is the most powerful language amiright?

C++ is flat.

Attached: 1542523277131.png (1075x1518, 1.76M)

👌

C is for cunny

In English we say "obsolete" instead of "C" and I think that's beautiful.

C is for real programmers who changes world!

I think they should at least learn English first though

based

cringe

>who changes world!
for the worse

disliked

>disliked
disliked

disliked and sent to reddit

Nice! What are you currently learning?

FUCK (DYS)FUNCTIONAL """PROGRAMMERS"""

Attached: file.png (511x671, 148K)

(D)

>608 likes
nani

skids wasting time on pointless shit

I'm working on my Free VPN service. Using it right now and it works pretty good, also has built in adblock and just added london and singapore endpoints.

I'm also creating a twitch tv clone, and just got automatic archiving of streams to backblaze b2 working. It also has like a 2 second latency unlike twitch.

why

Instagram crawler/image downloader using Python.
I will use it to hoard pictures of cute girls!

>cute girls
So 2D

>implying

Attached: 佐藤日向_247.jpg (1200x900, 200K)

VPN service because it's cool and useful, nice to have a VPN that isn't banned everywhere and is fast cause there's only a couple of us on it.

twitch clone I have no idea. I like the technology but have no interest in streaming myself and don't like attention. I might stream movies on it.

Also i wanted to learn wireguard.

Halfway through codecademy's CS path, still not sure if I will do Data Science or Web Development next. I'm just trying to become employable as fast and cheap as possible, and figure this will give me a semi decent base to start building my own stuff for a portfolio. May try to supplement some knowledge with textbooks, but don't know where to start.

Attached: 1543558617025.png (966x662, 958K)

What would happen if I just specialized in jvm languages? Is that employable?

How much was it? I'm considering a MOOC but I'm not sure if my NEET ass can get through it.

Codecademy is pretty cheap. $40/mo for month to month and drops to $30/20 if you sign up for 6mo/1yr. It does seem fairly surface level, but I could just not know any better.

what's the point when you can audit a course on edx or coursera for free, not like the codeacademy's certificate is worth much

MOOCs are free

I'd say most online certfications don't mean shit. Still, for the price, it was worth it to me to get the introduction. I'll check out the options you mentioned as well.

Can I ask career advice type questions here?

This code is proof that compilers are shit at optimizations.
template
int GetInt(){
const __m256i const1 = _m256_set1_epi16(0x0101);
int batchCount = (T_Size / 32);
int overBatchCount = batchCount / 128;
int sum = 0;
for (int j = 0; j < overBatchCount; ++j){
__m256i var = _m256_set1_epi32(0);
for (int i = 0; i < 128; ++i){
var = _mm256_add_epi32(var,const1);
}
for (int i = 0; i < 32; ++i)
sum += _mm256_extract_epi8 (var, i);
}
__m256i var = _m256_set1_epi32(0);
for (int i = 0; i < (batchCount & (128-1)); ++i){
var = _mm256_add_epi32(var,const1);
}
for (int i = 0; i < 32; ++i)
sum += _mm256_extract_epi8 (var, i);
return sum + (T_Size & (32-1) );
}

As long as you post an anime image you can ask whatever you want

Are meme-learning fags allowed here? I recently saw youtube.com/watch?v=IGlBwyXMlqI and thought it would be dope to do something similar, but actually try to make it look nice. Like pick one artist and use that for all the textures
I know python and took a data science class at uni, but idk much about meme learning, just you need a beefy gpu and you need to let it idle for days to do this shit
Should I just have to plug in the textures and paintings into some github library and then write a script to automate the process of iterating through all the images? I have an rx 580 if that matters

Attached: hb_1993.132.jpg (1892x1500, 1.05M)

wouldn't the third option be the lowest memory user? but highest cpu user

I'm writing a scraper that checks classifieds for prostitutes in my neighbourhood as a project to learn some rust (and to find prostitutes in my neighbourhood)

No, you are brainwashed.

I mean if you have a low amount of assets to load in, not if you have a low amount of memory

>terry die
>serenity os's guy appears just after

this is divine guidance without a doubt. terry would be proud.