/dpt/ - Daily Programming Thread

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

Attached: dpt_flat.png (1000x1071, 102K)

Other urls found in this thread:

gigamonkeys.com/book/
github.com/norvig/paip-lisp
paulgraham.com/onlisp.html
inf.ed.ac.uk/teaching/courses/os/slides/04-thread17.pdf
my.mixtape.moe/jhbynn.py
twitter.com/SFWRedditVideos

Is go ever acceptable or does Jow Forums unanimously hate it?

Go is a jokelang

Go is an esolang

Go is a brainletlang

Is clojure even relevant?
I want to learn lispy stuff, but I'm not sure if it's even worth it

Both. Go is pretty good if it suits your purpose. It's not great fit for everything, but if you have use for goroutines and channels then it will fill that niche nicely.

I'm a lispfag so take this for whatever it's worth.
But I think a lisp works best when it is very paradigm-agonstic and allows you to build the language up in terms of what makes sense for the problem at hand. Clojure is not like this. Clojure is opinionated as shit.
So I think Clojure is a fine language, but a bad lisp. I'm sure others disagree.
thanks for reading, please like and subscribe

Just learn Common Lisp
Beginner
gigamonkeys.com/book/
Medium
github.com/norvig/paip-lisp
Macros advance
paulgraham.com/onlisp.html

Stupid question: What is so wrong with OS threads? Why all the modern concurrent languages (Go, Elixir..) multiplex their own thread implementation green/light/whatever threads on OS threads?

OS thread are heavy on ram,process and get hard limits on concurrency.

Go,erlang need massive cheap threads to use actor model with millons messages.

I already know this. But why are they designed to be heavy on RAM?

>Maple is 2GB
>Matlab is 6GB
>Mathematica is 5GB
>Boost is 3GB
>Octave is 2GB
>Intel's C++/Fortran Compiler is 11GB
>WinPython is 2GB
>Visual Studio is 2GB~6GB

Why are these so huge?

liked and subbed
Thanks, I think I'll switch for CLisp. Might as well learn the real thing while at it.

Read this
inf.ed.ac.uk/teaching/courses/os/slides/04-thread17.pdf

guys can you show me some super basic gooye app example in haskell please

>side effects
YIKES

Thanks. :)

oh heck yea, no lecture on thursday, dude

Made a model viewer to create training material for my aimbot. Just need to do animation and shading and I'll be able to create aimbot to any game with minimal effort.

Attached: test0000001.png (1600x900, 413K)

Since there are lispfags in the thread,
what does /dpt/ think of racket ?

i'm not a lawyer, but i'm pretty sure that shit is illegal

Attached: 1499632939706.gif (444x250, 974K)

They are botnets

The creators put all their love in it.

Attached: 1515639104230.gif (600x338, 1.54M)

I want to put a lot of love in you.

In C++, structs, unions and classes are automatically typedeffed. Is there a way to disable this behaviour?

2k lines of macro lines plus 3k constexprs that successfully... hide the issue

Anybody knows how to do atributed N -M relationship in JDO?

Is scheme the haskell of lisps?

Yes.

Maybe

no

Racket is great.
I use CL and I'm constantly on the fence with moving more into Racket.

>In C++, structs, unions and classes are automatically typedeffed.
That's not exactly true. In the interest of backward compatibility, structs/unions/classes and other identifiers (variables, typedefs) continue to share different namespaces. If a lookup in the typedef namespace fails, then it automatically checks the struct/union namespace instead.
struct foo;
int foo; // allowed, no collision
typedef struct foo foo; // disallowed, collision in variable/typedef namespace
>Is there a way to disable this behaviour?
Not as far as I'm aware, but you can continue to use the struct/class/union keywords if you like.

gcc 7.3.1+20180312-2
Package Size: 31.2 MB
Installed Size: 123.9 MB

:)

Gee that sure will enhance your productivity big time, user. Go make those high quality calculators!

Productive people don't post in /dpt/.

leave, wage slave.

No, but seriously , what's the deal with scheme and why do many lispers like it?
Is it because it is minimal?

yes

the C of lisps

it's bleeding edge lisp with a slightly different way of doing things.

>C of anything
>a good thing

Tried asking in sqt, but perhaps it's more fit to ask here.
In Android programming, do onPause() activities draw power? Should I, to maximize my phone's battery, close all apps after I've done using it?

Attached: 1486217569732.png (266x214, 14K)

Are you that neural network based on image recognition aimbot dude?

Why would you want to?

For the sake of readability. It pisses me off to no end when people hide implementation details with some stupid typedef.

No,
After some time, or if other apps need more resources, it goes to a deeper state (onStop iirc).
Next time you open, it will have to go through onStart or onCreate.

My memory is a bit fuzzy here, so take what I say with a grain of salt.

Any good recommendations for studying for C# ASP.NET interviews?

I mean what's the point in C++? Struct and class are essentially the same thing save for a minor detail so you're not missing out on the fact that there's no explicit "struct" spelled out.

Learn more about static routing, kestrel, the server startup, using mainstream js crap with asp, EF and sql connections.

Yes. Linux build is basically ready if anyone is interested

Attached: Hayha_0_0_9.webm (960x540, 2.62M)

Your problem is other people, then.

that's incredibly slow, mang.

It can snap to target in ~20ms from appearing on screen. How is that slow?

>What are you working on, Jow Forums?
A script to find random wallpapers on /w/ and /wg/ and change my background periodically.

Attached: scrot.png (1920x1080, 346K)

For what purpose? Wallpapers are useless since you're supposed to use your desktop in which case the programs will cover the pape.

Your point?

It was trained by someone that needs an aimbot. The results speak for themselves.

Source please

No, I'm asking what YOUR point is with the script.

Make it work on any board.
I am definitely going to use /b/ images

learning prolog for school
why this works:
cnt(0, []).
cnt(X, [_|T]) :- cnt(X1, T), X is X1 + 1.

but this doesn't?
cnt(0, []).
cnt(X, [_|T]) :- X is X1 + 1, cnt(X1, T).

Attached: thinkpad pantsu.jpg (1936x2592, 1.16M)

>How is that slow?
you really thing that aiming speed is competitive even in the casual world?

my.mixtape.moe/jhbynn.py

Requires feh (won't work on windows or machine without feh unless you modify the script heavily), python3 and requests and maybe some other pip stuff

You can rename it whatever you want.py

It can do that, it has arguments or you can modify the defaults.

Just a fun little project that was fun to do. I am terrible at finding papes so I figured I'd automate it.

You sound asspained. It is just a program that targets 4chin neckbeards.

You really think it is impossible to make it move mouse faster?

>to make it move mouse faster?
then make it happen.

Ignore the retard. Are you trying to make the bot harder to detect?

people developing aimbot are the trash of programming.

REAL programmers develop electron

mad /v/ermin detected

Theres a bunch of configurable settings for it. Why don't you try them and see for yourself ;^)
It has zero interactions with the game so as of now it should be hard to detect by conventional methods. I'm currently working on automating dataset generation and detection accuracy. Later I will try it on other games and see how it performs

what if i "hide" in front of a special spray that will make me invisible to your image recognition

people using javascript are the trash of programming.

>Why don't you try them and see for yourself ;^)
I'm not installing your botnet buttcoin miner.

Everything this user said is right.

That said, employers have heard of Clojure. Don't underestimate that.

It shouldn't matter as long as you are visible but I haven't tried it so I can't say for sure.

C++

Attached: 1492315399865.png (424x470, 139K)

Learn vau instead. Everything is a fexpr (the strongest kind of expr). Reject the false quote code.

i am a reverse engineer actually and i can tell you that cheat devs are at the lowest step of the knowledge ladder in that field.
the educational value from making cheats is none.

How do I get into reverse engineering? I know C.

maybe in lisp which is SHIT

Lol you actually fell for it?

What you actually need to learn is assembly.

But this aimbot is not reverse engineering. Are you stupid user-kun?

>C++/Fortran compiler is larger than Visual studio

Wasn't expecting that one.

and?

and what does optic recognition and AI training have to do with RE lol

target a specific isa (eg: x64) and learn by doing crack me. cmu bomb lab is a famous one intended for beginners.

Your comment doesn't even make any sense. Vau is the future. Vau is the golden lisp. Vau encodes notions more basic than variables, abstractions and application. Vau is the ultimate language. Vau is power, freedom, redefinability.

>when people hide implementation details with some stupid typedef.

We learnt this extensively at university and it was annoying to no end.
typedef int age

Let's use "age" everywhere and force me to go back and look at whether it was signed or not when I try to do a "substract five form age".

>What is so wrong with OS threads?
most people are too stupid to understand them
>Why all the modern concurrent languages
so the retards can be sheltered

obviously you missed the point of the lecture

Fucking this. zlib is so cancerous

because of overhead

there's no overhead

The actual lecture discussed a "print my number" function where we typedefed a "mynum" just so we could printf it. Then I had to go look whether I was supposed to use %d or %f because "mynum" isn't clear.

there is when you need a lot of threads dynamically then there's the overhead of spawning and destroying OS threads and if you use a pool or something then you're still limited to a certain threshold even if you want to wait for I/O because of context switch overhead

shit uni then