/dpt/ - Daily Programming Thread

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

Attached: 1556551303738.jpg (765x1080, 119K)

Other urls found in this thread:

github.com/glenn-brown/golang-pkg-pcre
stackoverflow.com/questions/45085938/tensorflow-is-there-a-way-to-measure-flops-for-a-model
youtube.com/watch?v=Z4oYSByyRak
godbolt.org/z/FPAlVs
beginners.re/RE4B-EN.pdf
youtube.com/watch?v=hwlczQpLU_s
twitter.com/AnonBabble

What are some libraries for Go for making complex regex?

Why do so many programmers have such a low IQ and such trouble understanding basic abstract reasoning? Isn't this profession supposed to require basic reasoning skills?

Attached: 1556595726959.jpg (547x612, 101K)

What makes you think this is the programming thread

github.com/glenn-brown/golang-pkg-pcre

im trying break free from being a dumb webdev and write a flappy bird clone for my dad's commodore 64 using cc65

Attached: MMvKwNFU3bc.jpg (1077x1080, 93K)

Is there a method of predicting the runtime of a neural network algorithm?
Images 512x 512
5 layers
5 Epochs

yes, another neural network

You need help with JavaScript? That's fine, I can do that.

Attached: 2af01a016f639e792ef4a76d6c78646e.jpg (683x1024, 73K)

How the fuck do you get Meson or CMake to find dependencies on Windows?

Is there no formula or website to predict it?

well it obviously depends on the neural network and what your algorithm does, if it's just a general "learn until it's this accurate" then no

Thanks.
Would you recommend one long regex pattern to check input against, or break it up into pieces and check each part?

there's a command line argument you can pass to cmake which tells you where it's looked
if you desired locations aren't there, add them

Image recognition
U-Net configuration.

Go to your containment thread.

unironically thanks
I don't use Jow Forums at all so thanks for pointing me in the right direction

only good for 2D games.

You mean the time for a forward inference?

To train the network.
I want to know how long it will take before I run it so I can plan my day.

>neural network
We discuss programming here, not science fiction.

How the fuck can they do this? I know I'm being extremely autistic about something inconsequential but it's driving me crazy. The popup border actually stops when the menu item title begins.
I know they're using WPF for Visual Studio, but WPF doesn't seem to have any property that you can toggle to have your borders work like this. Anyone here with any experience using WPF? Or maybe a language agnostic answer?

Attached: menu.jpg (702x340, 175K)

How do I create a symbolic link to run a Python script? Something amongst the lines of,
ln -sf python $PWD/script.py /usr/bin/script

Or should I create a bash script that runs the Python script, and create a symbolic link to that bash script?

Attached: brainletcastle.jpg (645x1000, 107K)

>wojak image
Didn't even bother reading your post.

based and cawfeepilled

I always just hide them the moment I see them. I never bother reading them either.

>Close Goland project
>Open it back up later
>All build/run configurations gone
Haha, I LOVE jetbrains :))

I mean, the number of FLOPs that needs to be performed can be calculated without necessarily running the model (although that doesn't mean a framework in practice is capable of it). stackoverflow.com/questions/45085938/tensorflow-is-there-a-way-to-measure-flops-for-a-model

>jetbrains
Let's not pretend it isn't your own fault for using it.

more like jetforbrains

wtf

from random import randint

print ([randint(1,12),...])
#[10, Ellipsis]

Alright in case anyone's wondering I've outlined a solution. I'll see if I implement this later, I'm a hundred percent sure it'll work. The idea is to add a new border to the menu header, which sits on top of the two other borders. This border has the same background color as the popup, and by being on top it will give off the illusion of there being no border.

So my solution doesn't involve removing the border, but instead creating a new border to bamboozle the user.

>the volume of a heightfield depends on how its triangulated
oh fuck

what's the problem?

How do I create a symbolic link to run a Python script? Something amongst the lines of,
ln -sf python $PWD/script.py /usr/bin/script

Or should I create a bash script that runs the Python script, and create a symbolic link to that bash script?

Attached: serveimage.jpg (400x400, 40K)

Anyone here use test-driven dev? Where am I meant to start? Should I just write down my assumptions for what could basically go wrong with the program?

>Ellipsis

Start with the greeks

it's a an object.

I know who you are, dumb wojackposter. At least you posted anime, but it could've been a better one.
A symbolic link simply references a file, not a command. You can't put python /path/to/whatever/script.py in a symbolic link.
What you're meant to do is put #!/usr/bin/python3 at the top of your script, and create like link like ln -s $PWD/script.py /usr/bin/script

Attached: 1557099473206.jpg (497x656, 38K)

Cute bunny

how should i test main code in go?
should i just do something like:
package main

func foo() {
//Do main stuff
}

func main() {
foo()
}

and then just have tests call foo()?

>serveimage.jpg
Probably just got it off google images too

Writing a poor man's Anki in Haskell.

Writing a rich man's Anki in C++.

I promised to do work today
I don't think it's gonna happen

Attached: 1494800626199.jpg (482x549, 57K)

What are some cuter alternatives to C if I'm writing a simple runtime for my language (allocating memory, eventually doing GC, etc)?

Attached: 2f87da87d86978bd24bec7047eb7df58.jpg (468x468, 90K)

Writing a middle class man's Anki in Forth.

C++

template
using Id = T;

struct
{
template
constexpr
operator Id() const noexcept
{
return *[](T &&t, U &&u) -> bool
{
return ((T&&) t) == ((U&&) u);
};
}
}
equals;

bool foo()
{
return equals(1, 1);
}
The power of sepples.

>cuter alternatives to C
Zig looks cool, though I haven't used it.
youtube.com/watch?v=Z4oYSByyRak

middle class doesn't exist in today's world

He said "cuter", not "uglier".

not programming related pic

C++ is cute! Cute!

Attached: herroworrd.jpg (1112x778, 57K)

Just like my program.

nice desu

nigga

Yes it is, idiot. Cute anime girls are one of the most programming related things you could get.

Attached: 1557809803317.jpg (2000x2829, 2.61M)

trying to figure this out but can't. you're overloading a typecast, right? but foo() makes it look like you overloaded then function operator.

Yup it works

Attached: menu border.jpg (191x125, 20K)

equals is cast to a function

In my book, cute anime girls absolutely MUST hold programming related books.

in my book, anime girls do not exist and if they did they would be getting fucked hard every weekend while you sit alone like a retard "programming", masturbating and feeling sorry for yourself lmaooooooooooo

We've been over this before. Nobody cares that you autistically spent hours finding bland images of anime girls holding books and edited SICP into them.

Attached: 1554335430730.jpg (1854x1500, 831K)

I care

>in my book
No one gives a shit

godbolt.org/z/FPAlVs

If you're testing a program which checks if it has the correct number of arguments in an array, would you test if it succeeds when it has enough or that it fails when it doesn't? Or both?

is this the right thread to ask how to swap models in games?
or how to learn it?

Attached: ngvgn.png (1002x592, 1.44M)

you should start by not doing ttd

Both. So in your case:
- too few arguments
- enough arguments
- too many arguments

tdd more like adhd lmao

>checks if it has the correct number of arguments in an array
What lang? In some languages this problem is literally undecidable.

based

Any examples of Autism Driven Development?

Anything written in Haskell

some dude here was making a translator for japanese porn game dialogs, I think that counts. also templeOS

Any recommendations on a python textbook that has the reader write a series of practice programs at the end of each chapter like pic related? Its been years since I last programmed and it seems I'm too dumb for project euler...

Attached: c programming.jpg (407x500, 24K)

Using machine learning to sort porn.

every single game engine handles assets in a different way
>figure out the archive file format
>figure out the file format of the asset files
>figure out which model is which
>rip out the old model and replace the new one
i hope you have experience with reverse engineering

That's something I'd like to do.

>i hope you have experience with reverse engineering
i started being an it apprentice but i learn nothing at work
the best thing i can is ip config in cmd
help
where do i start
is model swap hard if i never done it?

Bruh ist use python for scripting projects and Google
Tots not a lang that needs your hand held for it
Unless if your brainlet

cawfee

Attached: 1545101899444.jpg (1920x1080, 591K)

Type driven dev gets awfully close. I'd say you master that first and then become the pioneer in the style

TempleOS was driven by divine intellect and orders from the big man himself, nothing to do with autism

can I do something like this in omp:

>start a new thread until a certain maximum is reach
>if the maximum is reached the new thread should wait until another has finished

>can I
no

>i started being an it apprentice but i learn nothing at work
>the best thing i can is ip config in cmd
>help
>where do i start
First learn to program, preferably in a lang like C++ or C so you understand some of how memory works.
Then you're ready to actually start
beginners.re/RE4B-EN.pdf
This is reverse engineering for beginners, it's pretty detailed and very thorough.
Chapter 9 is examples of what you're probably going to have to do.
>is model swap hard if i never done it?
yes, very
you have got no idea what you're dipping your toes into
the only way it isn't extremely fucking hard is if either
>someone else has already figured out how the game engine handles asset processing
>the game doesn't use a custom archive file format, and uses publicly documented file formats for all of its asset files

Attached: 1536488175174.png (914x269, 13K)

don't provoke drew, even if he chooses a crappy image. he has mental problems

there is this dude but he has only a programm on c++ base where you can change into 3 characters
youtube.com/watch?v=hwlczQpLU_s

>drew
who?

I'm also writing an anki in a functional language. Are you trying to steal all of my future customers?

more like sanki

eh?

What do you have so far?

stop doing this to people you tards

Attached: 1545705555780.jpg (400x300, 20K)

where are you getting all these shitty memes? this one is almost as bad as the d**do

i'm working on free code camp.