/dpt/ - Daily Programming Thread

Integer overflow edition.

What are you working on, Sup Forums?

Old thread:

Other urls found in this thread:

youtu.be/RqFgtYrw4J8?t=11m39s
typesandkinds.wordpress.com/2016/07/24/dependent-types-in-haskell-progress-report/
zerotier.com/blog/2017-05-05-theleak.shtml
twitter.com/NSFWRedditImage

nth for ~0 == 0

Why did you create this new thread so soon after the old thread hit the bump limit?
It's still on page 1.

Integration of memecoins with a backtesting library

Because I don't want animeshit in the OP post.

surely you jest mr feynman!!

And posting reddit-tier XKDC shit is better?

Trying to write a library for RedSeaFS then a HURD translator for RedSea.

Currently stuck at the .Z compression, because it uses x86_64 assembly.

either way you autists will discuss about it.

Post code, or I'm calling bullshit.

youtu.be/RqFgtYrw4J8?t=11m39s
Daily reminder that Haskell is for little faggots and/or CIA niggers

Going through rust tutorials. Any ideas for something I can build with it?

>NO
>OLD
>THREAD
>LINK
shaking a bit

>hasklet S T I L L doesnt have dependent types
Dont understand why people are still using it desu

>OOP still buggy as hell
wew

I wonder where Terry gets money to live

>thinking haskell is trash means i like POO
wew lad

C compiler

RichTextBoxfag here again, still can't find the problem, just narrowed it down to "it stops at about 2000 lines".
0->n = stops at 2232 lines, 12280 chars.
1000->n = stops at 2047 lines, 12280 chars.
'w' n times (with new lines) = stops at 2047 lines, 6139 chars.
'w' n times (no new lines) = doesn't seem to stop, went 100k chars no problem.

Only thing I can think of is I'm reaching some limit I don't know about.

He's retired

It's right there, you dumbass.

Some kind of interpreter should be pretty easy.
A simple vidya with gfx-rs or such.
A network server like IRC or DNS, but you really should learn futures/tokio first.

what type of paradigm do you use then?

a mixture of all i can with an emphasis on purity.

Yea was thinking of a simple nethack inspired console vidya but I'll look into gfx-rs too, cheers

You can fake dependent types in Haskell with DataKinds and a few other extensions.

But, are there any languages with proper dependent types that perform well?

Actually: typesandkinds.wordpress.com/2016/07/24/dependent-types-in-haskell-progress-report/
> When can we expect dependent types in GHC?
> The short answer: GHC 8.4 (2018) at the very earliest. More likely 8.6 or 8.8 (2019-20).

Coq,Agda, idris

>Haskell getting DTs in 2020
gonna be a wild year desu

why do people like xkcd? his comedy is so low tier

anything is better than anime
t. otherfag

Hes the big bang theory for people who always whine about it.

Still the best tech-related comedy out there tho.

don't you mean userfriendly

he's got some funnies.

>implying Haskell performs well
topkok

this jokes been done before thoguh, its a derivative of the nigerian prince scammer is legit joke

>I disagree with him politcally, therefore everything he does is shit.

I didn't, actually.

Actually it's _donald now.

>A 16bit joke in year of our Lord 2017
I appreciated it

you think that comic even passes as a good thing? even if it was about trump i would have posted it.

on the internet there's no OC. even if there is, it isn't.
just one of those things. bawing about it is pointless.

I just barely passed my java intro course. (9/18points)
How can I git gud faster?
What can I read?
What should I work on?

...

>a 50% is passing

holy shit how, i didnt even attend classes and got a HD. Java is easy as fuck. Perhaps study for one and practise the stuff you failed

poo in it

what are you struggling on user?

that tommorows date wont work 4% of the time

Anyone here do much shit with .dll's?
Trying to figure out how a program does something and I'm at a loss
>.dll is part of a program, has an export function for some of the API that handles encoding/decoding of a file
>Found function name with Dependency Walker, tried to use rundll32 to run the function on a file to get the decoded output
>Yesterday it seemed to execute but wouldn't actually write any output
>Today all I get is the message "There was a problem starting .dll. The specified module could not be found" whenever I run the exact same command
>No idea what I'm doing
Anyone able/want to help?

Is the .dll actually in the run directory of your program?

Daily reminder that if your language does not exist in this list, your language does not matter
>C++
>Python
>C#
>Any form of Javascript

Thank you, and have a nice day.

This nerd doesn't even use R

Say hi to Lua-chan user. She's totally beating the gay snek in embedding, and she's super duper cute!

I don't care if my language is irrelevant. I use my languages because they are good at something, or I enjoy programming in them, mostly the latter.

LUA is literally a slut language.

Dividing by zero should be allowed.
The result should be zero.

I have no idea what kind of program I could build in C that could be done in a year and be big enough to show my eventual interviewers that I at least know a thing or two about C. If anyone's got a suggestion I'm all ears.

Hehehehehe heheheheehehehe JAVA IS FOR SHITS

c > python > garbage

Yeah, a "girl" that looks more like a boy is way more hetero than a snake.

literally just return 0

Bytecode interpreters are always fun
Can even do an assembler to go with it

a / b = c => c * b = a tho, by definition.

>complaining about anime on anime website
maybe you should take you meme XDBS reddit memes and go back to where you came from

>signed short in 2017
y u do this

Write a program that obfuscates code

broofs?

a short in 2017*

That's fucking stupid though. There is a reason it's undefined.
2/0 = 1/0 = 0 => 2 = 1 = 0

What's the difference between the different vim plugins for visual studio? Do some run a real vim or is it all just keyboard shortcuts running in VS?

Lua a cute!

less space

not him but ill give it a go. It shouldnt be 0 but infinity, n/x where n is a positive real number as x tends to 0 the result tends to infinity

EZ to do in python.
>>> def divide(a,b):
try:
return a/b
except ZeroDivisionError:
return 0


>>> divide(1,0)
0

@(a,b)
a&b

>if(x > y) return true;
Gotta admit, I do that sometimes accidentally.

>result tends to infinity
Only from the positive direction.

how to lose millions of dollars 101

There is literally nothing wrong with overloading operators though

There's a numberphile video that explains why that's wrong

I'm actually just trying to call the function through powershell, but yes I'm in the right directory for it

it enables stupid people to write some really really bad code. which is why java doesn't allow it.

x/y is an indeterminate form, it can be whatever the fuck you want it to be, which is why it depends on the application whether or not dividing by zero is meaningful.

it also allows people to use linear algebra in C. Java is shit btw

zerotier.com/blog/2017-05-05-theleak.shtml

Can anybody explain what's wrong with it?

surely you mean sepples because you can't operator overload in pure c

java is not shit fuck you

A.times(x).minus(b);

return x>y;

operator overmemeing is an unnecessary syntactic nougat that nobody unironically uses except vector libraries

Yeah, I know that return x>y is better/more elegant. I'd just wanna know what's actually wrong with the other way of writing that.

It's just unnecessary.

>ree languages arent allowed to have features my brainlet cant handle

Python peasants pls go and stay go

t. pajeeta, prince of all streetshitters

x > y is a bool in itself
return (x > y)

But Python has operator overloading.

Integer extend [
fizzbuzz [
| fb |
fb := '%1%2' % {
self \\ 3 == 0. self \\ 5 == 0 }.
^fb isEmpty ifTrue: [ self ] ifFalse: [ fb ]
]
]
1 to: 100 do: [ :i | i fizzbuzz displayNl ]


Smalltalk is cute!!

its kludgey.

one can just as easily return x

so its fine.

Completely disgusting.