/dpt/ - Daily Programming Thread

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

Attached: 1556322531414.jpg (1200x1501, 157K)

Other urls found in this thread:

projecteuler.net/problem=422
pbrt.org/
twitter.com/SFWRedditVideos

>tfw summer break

Attached: 11012093881.jpg (1920x1080, 301K)

Attached: EllipticGroup.gif (350x350, 298K)

Lisp is the most powerful programming language.

Thats a weird way of writing APL

Attached: 1445980986397s.jpg (124x125, 4K)

There are many geometric groups, the circle group [U(1)] being the most well known one. Problem 422 projecteuler.net/problem=422 on project euler is about the hyperbolic group, and about efficient calculations in that group.

The gif shows the group law for elliptic curves with the given curve. These are the laws used in the one way algorithm in elliptic curve cryptography

I'm going to write a renderer from scratch!

Yeah I know, I've just never seen it visualized in such a...titillating way.

And then you will build your game engine?

You should try drawing it for the other groups

you can only reply to this post if you graduated with a GPA higher than 3.0

Attached: 1520829688737.jpg (1200x1600, 474K)

redpill me on smokonh weed and programming
Hotz does it and he is like a genius

Attached: 1559360423715.png (1069x699, 355K)

Learn Lisp.

>meme language for pedants
no thanks but i'm glad you enjoy it

Attached: 1538242893922.png (250x244, 80K)

Hotz already spent 3 years doing rigorous CMU courses and he spent the majority of his highschool hand rolling assembly to break into iThings so he's allowed to just sit around getting stoned since he can just program on autopilot.

Weed is really bad for engineering anything. You might think outside the box or get some inspiration, but you weed makes it really hard to think linearly and follow a train of thought to its completion.

>he spent the majority of his highschool hand rolling

Attached: 1557706830603.jpg (395x395, 34K)

Its free
pbrt.org/

Maybe if you're a fucking brainlet

Do you seriously think you're more productive stoned than sober?

Yay

if (condition) {
statements;
} else {
statements;
}


or

if (condition) {
statement;
}
else {
statements;
}


or

if (condition) { statements; } else { statements; }

First one.

Why don't you ask reddit?

Nothing. I gave up on doing anything that requires effort. I'm a brainlet. I fold. I will only make subpar Python scripts for myself. I guess I drank too much when I was in my 20s

They eat the poopoo.

im lookin more into spring webflux.
i like it so far

Leave my thread, failure.

i wish m*crosoft would just give up and support the itanium ABI already
it's just obstinance at this point

>failure
I don't think you get to use that word after you post anime

if
( condition
)
{ statements
;
} else
{ statements
;
}

condition ? statements: statements

Needs more Polish notation.
? condition statements statements

if condition:
statements
else:
statements

if(pred)
goto TRUE;
goto FALSE;
TRUE:
statements;
goto DONE;
FALSE:
statements;
DONE:

if is obsolete

match x, y with
| (value) -> (statement)
| (condition) -> (statement)
| (statement) -> (statement)

>simple
>human readable
finally a non-retarded answer.

That's a switch, you nigger licker.

No, but if you can't follow a coherent train of thought (even if it's only coherent while high) then you're stupid as fuck

Polish notation will defeat the communists.
factorial n = ? n * n factorial - n 1 1

Rethink your workflow and eliminate the conditional entirely.

conditionals are an antipattern

you should be using polymorphism

It's not that you can't, it's that it's harder to do it as opposed to doing it sober.

if (condition)
{ statements; }
else
{ statements; }

Attached: 1543764048507.jpg (515x595, 23K)

>switch
"if x has property A then y else z" (If-Else)
"some term in p1..pn where .... is the prime decomposition of x.. bind to y" (pattern match)

the compiler then helpfully sees that one of your matchings can be optimized out and does so, if/else relies on running the program so can't optimize.

Attached: 0tHCL2E.png (1728x1120, 920K)

I don't even know what my GPA was. My country doesn't use the same grading system as burgerland.

yo what my brogrammers up to?

So you were given 10 klopeks upon finishing school and ribbon of achievement

Good morning! I got sued for illegal filesharing and it cost me a pretty penny. I asked yesterday and I'm asking again, figuring there'd maybe be a different group of people in /dpt/ in the morning.

Do you think there's a way I could modify my bittorrent client so that I won't get caught again? I thought law firms' clients must be connected to you, so they can get the dirt on you, but they're not allowed to share files themselves. So there should be a way to spot those peers and disconnect them.

Any ideas, fellows?

Attached: Simpsons_15_13_P4_640x360_286171203921.jpg (640x360, 236K)

You use a torrent box or vpn

VPNs give away your data as soon as someone waves a legal document at them.

What's a torrent box? I honestly don't know.

>I got sued for illegal filesharing and it cost me a pretty penny.
this doesn't happen, sorry

Where did this happen? the uk?

480 Euros for the lawyer to represent me, 355 for the cease and desist. The firm representing 20th Century Fox wanted over 2000.

just wipe your ass with the C&D letters lol, they don't have a case

Best edX course for someone who wants to get into programming? I've been looking at the free MIT/Harvard courses. Maybe that's a good start?

Attached: 1464866181949s.jpg (231x250, 8K)

Germany.

I got papers signed by an actual judge, so it appears they did make it a case.

>Germany
lol

Dude they can do fuck all to you in the EU, you fucked up.

I see. Where I live the general advice is to pay no mind to these letters, they are just basically trying to blackmail you with nothing to back it up. I must say however that the ISPs here don't have to give IP addresses to these companies anymore (law changed). Finland btw

This is how it went: I got a letter from a law firm complete with a judge's subpoena for my IP address demanding to sign a cease and desist and pay over 2000 Euros. I know, you don't do that, because they can sue you anyway and demand even more. That's why I got a lawyer. He took over the correspondence with the accusing party. Two years go by and the accusers decide they DO want to go to court over this, which is potentially very expensive. So my lawyer brokered a deal that was "just" 355 Euros and a signed paper.

My original quwstion still stands: There's got to be a way to figure out the "bad guys" in the tracker/torrent game. But how? My client is written in Python and C++, and I'm confident I could modify it if I only got a good idea how.

Nerd

move to a country that isn't infested by jews

Not an option. Those countries are sub-par to put it mildly. (Jow Forums probably calles them shitholes.)

Also technology being my strong suit, I figure there must be a technological way to outsmart them.

Attached: vlcsnap-2017-05-06-15h03m10s555.png (624x352, 92K)

is programming as a hobby a thing?

Attached: 1190234932.jpg (1280x720, 186K)

you could try finding some bullshit lagoon that the file-sharing protocol wasn't considered in the law or something

Really enjoying dipping my toes into Racket so far.

No chance. There have been trials here and they all end bad for the filesharer. As soon as they get data that you shared, even for one second, the case is closed. Judges decide for the entertainment industry.

So the legal way is completely and utterly fucked. That's why I'm asking for a technological solution to this problem. One that isn't a VPN that falls over as soon as it sees a subpoena.

>One that isn't a VPN that falls over as soon as it sees a subpoena.

That's not how this works, dingleberry. You comply with the subpoena, or you get fined or jailed unless you have an exceedingly good reason for not turning over the information requested.

Anyway, I don't trust them, because I've heard cases where just that happened. A VPN doesn't hide your ID when law gets involved. And that's the whole point.

If you do not comply with court orders, you will get sanctioned via fines or other means. Did you not realize how the law works?

VPNs are beneficial certainly from the perspective of obfuscating yourself from private entities. My condolences if you thought that VPNs would let you escape the law, because that is not hows this thing works. The more you gamble, the more likely it is you go bust.

That's why I want to figure out what peers out there are lawyers, and to disconnect them in my torrent client. They can't sue if they don't know I'm sharing. There's gotta be a way to do this.

I really ought to study on get on schedule
What’s your schedule?

I graduated, so no schedule. But I'm going to browse through a dozen programming books I downloaded.

condition ? {
statements;
} : {
statements;
}

Has anyone made "applications" using IPFS?
How the fuck does it work?
The implications for the designs are murky and their website and videos don't actually explain anything.

If you have received a C&D, broadly - because I believe you mentioned being a Europoor earlier - you comply and count your lucky stars they didn't decide to actually sue you. Because their legal war chests are in the millions easily, and you'll maybe break into 6 figures - likely 5. can you really afford to spend you annual income fighting a losing lawsuit? Did you consider that -- really?s The only person winning here is going to be your attorney, since you're buying him a very nice S-class if you want to fight this out to the bitter end.

And if you want to try another ISP or whatever and keep on carrying on with a VPN, you do you. But there's always a chance you'll roll snake eyes.

>There's gotta be a way to do this.
theres not
lawyers dont have special lawyer IPs

If I wasn't clear, I'm not interested in blockchain or other memes
I want to make a simple offline-first application that has filesharing as a core mechanism.
Sounds pretty simple?
No explanation on how it could be done.

No, but I figure they have special torrent clients.
I noticed some peers that have ALWAYS 0.00% of what's shared, and when you look up their IP numbers, they come back to Amazon cloud servers. To me that looks very suspicious.

>No, but I figure they have special torrent clients.
even if they did there's no way YOU could tell, they will just be filesharing like everyone else, except taking down the IPs, there's no way you'll ever know

Except they aren't legally allowed to share themselves, so that's a point that makes them stand out.

Trying desperately to find a project online that's not a literal joke, all i know is freelancer and half the people here want a new facebook for 30$USD total not hourly (not exaggerating).

Don't want to go back to normie jobs but all i know is languages not how to get money for them. :(

Aren't they? What are they gonna do, sue themselves for breaching their own copyright?

Suing you for filesharing is literally an industry in my country. There's not just one law firm that does it, there are dozens.

The law firm represents the copyright holders. Without the copyright holders there is no case. Copyright holders will not sue themselves

If they (the content owners) were to seed using the torrent protocol, that may be construed as providing an implicit license (they literally gave you a copy of their own free will), in the same sense that a company sending you a free gift in the mail cannot later be accompanied with a bill or be taken back.

I'm not a lawyer but I don't see that holding up in court

Then why should filesharing hold up in court?
It's providing copies to others without a license to.
The content owners obviously have a license, so it becomes a legal method of transaction.
But because the content owners obviously never negotiated any consideration or even any terms, they essentially gave you a free gift that they can't revoke.
Imagine online music stores that just delete content from your hard drive. Yeah. Not holding up in court either.

Then you'd better better get your attorney on the phone with their attorneys and start settling. an you afford to spend your annual income fighting a lawsuit? Do you really want to have a court judgment hanging over your head the next time you apply for a loan?

I'm sorry, but if you are really in legal trouble (and if it's a C&D and not actual being served for a lawsuit - in which case, comply) writing a fucking program to make it harder to get caught in the future is the least of your worries.

No, I don't want a lawsuit. As I mentioned above in this thread, I settled out of court, but it was still pretty expensive.

You're just making all of that up and trying to sound clever
That's not how the law usually works
Cops are allowed to entrap people into commiting actual crimes
Companies are probably allowed to seed their torrents to find your IP

It is doubtful that the copyright holders were seeding it in the first place.

they hire another company to get on torrents on find your ip, same thing

I triple dog dare you to find the law that allows copyright holders to sic watchdogs on people
Stuff like this should be easy to find.

You're the exceptional individual that goes back to driving drunk to save money after having totaled your car and having to buy a new one because you're too cheap to pay for a taxi.

Everyone point and laugh at the fool.

The thing is, I didn't come to Jow Forums to debate the legal implications of illegal filesharing. I don't have a ton of money for good lawyers, so whatever the legal terms are, the entertainment industry has one over me.

I came here to discuss the technical details of how they found out I was sharing and how to prevent them from finding out in the future.

Now I mentioned there's peers that always have 0.00% of the shared file, so they don't share themselves. That's obviously pretty suspicious. Another avenue might be their client contacting the tracker and just find out who is seeding, without generating any "have" and "interest" packets themselves.

Attached: hutz.jpg (258x195, 7K)

find a law that forbids it
you're being an idiot an thinking you can game the system with childish loopholes