/dpt/ - Daily Programming Thread

What are you working on Jow Forums?

Previous

Attached: Lisa.jpg (564x762, 60K)

Other urls found in this thread:

cloud.google.com/solutions/gaming/
nvidia.com/en-us/shield/games/geforce-now/
github.com/google/wwwbasic
google.github.io/wwwbasic/examples/donkey.html
twitter.com/NSFWRedditVideo

hackerchan when!

Attached: 1535985889731.jpg (750x1334, 210K)

I'm not sure if artificial intelligence will wipe out cybersecurity jobs through automation, or if it's a big hype bubble that's about to burst. So I'm covering my ass and researching artificial intelligence application to cybersecurity problems.

Third for Haskell

>cybersecurity jobs
No, but proofs checker like coq will. Do you realize that pirate exist only because dev have not yet figured a correct security scheme?

So fun to use tbqh

Ah fuck. Guess I'll go back to staring at this code. Thanks anyway.

>dev have not yet figured a correct security scheme?
What about full online games like Diablo 3?

This
Also this
This too

Why are you talking about video games?

>proofs checker
model checkers have been around forever. the problem occurs when the person formalizing the protocol makes incorrect assumptions or leaves something out. the human factor

fuck humans

What is stopping people from building other full online software?

>What is stopping people from building other full online software?
Out of topic.

I’m not saying that AI won’t play a role in security but it’s pretty unlikely to be as big as the manual security market. People want people to tell them they are safe
Crypto algorithms are already capable of creating provable security that cannot be cracked within the heat death of the university

>Do you realize that pirate exist only because dev have not yet figured a correct security scheme?
is pirate some zoomer slang then that is not related to digital piracy?

waay ahead of ya, bud.
LOL

Attached: RQ-170_art_impression.jpg (1041x692, 332K)

those work well tbhh, xaaS stuff

as web gets more powerful, hopefully we get morey

X as a Service triggers the fuck out of me
Die.

You can obviously still explicitly define it, but for scripts it saves you some time.

the name? or whats come of it?

both
it's not a "service" it's the same product except with the owner trying to fuck you even harder than usual

nothing, Video Game as a Service (VGaaS) is now a viable market.

Attached: 1513706389719.jpg (633x758, 72K)

I think VGEaaS (Video Game Engine as a Service) could be a viable money making method/company. Since Unreal Engine/Unity games can now run smoothly thanks to WASM, so would a game engine. No need to download anything anymore, or keep everything in 1 pc

>keep everything in the cloud
>no need to keep the video game you're making on your computer
>pay a subscription fee to build a video game
fuck this gay earth and fuck you

Attached: 1538927036123.jpg (1600x1495, 602K)

jfgi

Shouldn't have pirated it when it was Software as a Product then.

if vale doesn't react fast, it will lost its supremacy on pc quickly.

cloud.google.com/solutions/gaming/
nvidia.com/en-us/shield/games/geforce-now/

being able to play 2k games by just plugging your mobile phone on your tv is the greatest thing that will happens to video games in the next years.

This is what rob pike and the plan9 dreamed about.

oh shit you're right, I'm so behind the times

There is no point though, since its easy to tell that some game developed with your engine and you can sue the fuck out.

Thanks, Watson.
>needs new bucket

>bought it when it was software as a product
>now have to pay the same price EVERY MONTH to use the software
fuck you

The good thing about videogames as a service is that when it becomes a reality I'll stop playing games and focus entirely on programming.

And anime too I guess.

>I'll stop pirating games
ftfy

Yeah but I don't play games unless I can pirate them so I just won't play them.

Sudoku android app, all apps on the market are shit and im kind of addicted to the game. Not gonna publish it, its just for my own entertainment.

Having trouble with the grid generating algorithm tho, its not as easy as i thought it would be

Anime as a Service

That won't work since someone can just record it.

So crunchyroll then? Was the only way I could enjoy Re:Zero

myth: tru fak

So who here only programs as a hobby and not as a job?

I do both tbhh

Python + JS at work so I can reserve brainpower for my hobby, and make mad stacks
C at home for emulators, compilers, and some prog challenges

>>So who here only programs as a hobby and not as a job?
>I do both tbhh

So why do you answer? Ar you idiot?

ask me that again and I will bully you

I wanna do some some simple math operation that consumes a lot of power to test out my cpu. I just tried to do a simple x = x*x on an endless while loop but it ends up maxing out because of variable size limitations. What should I use instead?

So why do you answer? Ar you idiot?

try modulo

what did you think was gonna happen?
you could do x=x*x; x=5; in your loop and it would just compute 25 over and over, and you could time it from the command line and stop after like 10 seconds and see how many multiplications you got in 10 seconds.

pls bully me senpai

Attached: 1534846234872.jpg (561x603, 85K)

>C
Why

can someone else bully these guys? I've never bullied before tbqh

1 of the first langs I picked up about 13 or so years ago, so even if I pick up other langs, I still love doing stuff in C. Most of the time, it's the only thing I need, and it's always satisfying working with other C libs

old news, but WWWBasic is pretty cool tbhh
github.com/google/wwwbasic
it's just JS interpreting Basic
google.github.io/wwwbasic/examples/donkey.html
looks like it's more a toy than anything, but bretty cool imo

Hey, I am doing k&r exercises and currently got stuck at 3-3 which is "a-z & 0-9" notation expander. Can anyone explain why it stops (outputs) at "abcde" with "a-z" input?
void expand (char s1[], char s2[]){
int i, k, inc;
for (i = 0; s1[i] != '\0'; ++i) {
/* if a letter is followed by a minus and the minus is follow by a letter which is greater than the first one */
if ((s1[i] >= 'a' && s1[i] = 'b' && s1[i+2]

>broken CSS
looks like it's that time of year again

>&& (s1[i+1] = '-' )

JavaScript rocks!

Attached: js-rocks.png (1000x494, 369K)

Unironically this

>javascript running basic
>can't even increment the values in the graphics
>stops functioning when you hit a donkey
2018 state of the art

oh damn lol, thought it worked properly, but yeah I think it was always like that

Redpill me on lua

use js

Variables are global by default and arrays start at 1.

Not that guy, but that's absolutely disgusting.

Who's dat qt?

queen of kpop, Lisa from Blackpink

Wow

What's going wrong here? It's seg faulting when I try to assign lesser->data = original->data;

Attached: 44help.png (754x677, 21K)

hi Jow Forums

how do you stop yourself from putting your password into the username field?

node* original
and not
node *original

You seriously lack understanding.

Ask Lisa

>if (lesser == NULL)
>{ lesser->data = original->data;
Dunno, that's a real mystery you got there.

doesn't that mean the exact same thing?

The parser sees the same thing. But what I see is someone who fail to understand basic pointer in C.

Is it possible to solve this one with anything less than O(n^2)

Attached: jews and shekels.png (1671x561, 51K)

TOP KEK

Attached: 6453463.png (703x157, 9K)

Yes

I call j size of J and s size of S.
Sort J, j*ln(j)
Asking if a char is in J is now ln(j) (dichotomy in a sorted array).
So you ask for each char of S, ie s*ln(j).
So we have (s+j)*ln(j) which is less that O(n^2).

that's because I just started using pointers last week you dingus, It works now thanks senpai!

Attached: 44h.png (803x704, 22K)

You can do that with a regex

>What are you working on Jow Forums?

O(s+j) is pretty easy to achieve.

>doing regex in Java
bit of a joke tbqh

Attached: regexbenchmark.png (504x688, 80K)

Wanna see that.

ai will never not make mistakes so you’ll always need teams of people tweaking them for every case. plus ai is useless at pen testing

>Sort J
Considering the elements of J are just chars, it wouldn't take much space to build a lookup table in O(n). Lookup O(1), then O(n).

Apparently Chapel doesn't scale that well. What meme tool should I use to implement my ML algorithms instead?

Ha yes, I forgot that.

ohhhh shit im retarded
thanks

But it didn't help, it still stopped after 5 letters Q_Q

>wasted one night then one day because I accessed a temporary by reference
>all of that because I'm too retarded to know what I'm doing
Fuck it, I'll use Rust instead.

Lisp is the most powerful programming language.

Is making classes with only static methods a good thing or retarded?

It's retarded, use a namespace for that instead. Classes are meant to create instances from.

Why doesn't Leetcode permit explicit casting? This triggers my autism

Attached: REEEEEE.png (829x695, 21K)

>classes
nope

absolutely down syndrome. Read more what static really does

That's true.
But you can't friend namespaces. Can you?

Just realize there are only 52 different possible stones, so you can just set up a 64-bit int as a bitfield to look up which stones are jewels with. (or an array of bools if you're allergic to bit twiddling)

Do this instead
a[i] = (char) (str.charAt(i) + 32);