/dpt/ - Daily Programming Thread

old thread: What are you working on, Sup Forums?

Other urls found in this thread:

cs.stanford.edu/people/eroberts/courses/soco/projects/2000-01/data-compression/lossless/lz77/example.htm
michael.dipperstein.com/lzss/
developer.com/java/data/article.php/3586396/Understanding-the-Lempel-Ziv-Data-Compression-Algorithm-in-Java.htm
stackoverflow.com/questions/16469410/data-compression-algorithms
en.wikipedia.org/wiki/LZ77_and_LZ78
www0.cs.ucl.ac.uk/teaching/GZ05/07-images.pdf
twitter.com/SFWRedditVideos

first for extremely large COBOL85 codebases

This is gay, post Donald Trump you faggot weeaboo.

Install gentoo

First for hormone therapy

My socks came in the mail today

What are some good resources for learning C++?

Install gentoo

I am on gentoo.

install fedora

>What are you working on, Sup Forums?
Trying to resurrect one of my old dead projects...

In what should I get into if I want to git gud at WPF? Any developers of this framework here? I'm interested in creating LOB/Enterprise apps. I was thinking in study Databases, and the MVVC pattern.

If you know how to program, Bjarne's book is awesome.

S I C P


I

C

P

>If you know how to program, Bjarne's book is awesome.
Bjarne's book seems too long and filled with details I don't need since I already know how to program

Install gentoo

The details are there to have a deep understanding, I think there's a version for programmers and non programmes of his book, so one of them might skip concepts you may already know.

Install gentoo

>His software doesn't evolve over time

>His software doesn't learn from experience

>His software doesn't provide a free-form natural language interface

Utterly pathetic, /dpt/.

Currently reading the C book. Feels good man

Install gentoo

Install C++

in Python, are this pieces of code equivalent?

a = 0
b = 0
if (not a or not b):
print 'YES'

and


a = 0
b = 0
if not (a or b):
print 'YES'

Maki is my waifu!!!

You smell like code bootcamp, kid.

>Worshiping a waifu

>Not creating a software emulation of her behavior

MAKI!!!

You can literally find this out by brute force
Also it has nothing to do with Python, it's basic Boolean logic

>software can emulate waifu's perfection
baka desu senpai

you smell like a NEET

I developed a program to handle magnet links in Firefox

#!/bin/bash

echo "$1" > ~/$(date "+%s")-magnet.txt

foo()
{
llvm::Module *m1 = new Module("m1", Context);
// store GlobalVariables with ExternalLinkage
}

fooo()
{
llvm::Module *m2 = new Module("m2", Context);
// I want GlobalVariables from m1
}


How is it possible to have llvm globalvariables from another module?

Obviously, a good enough software can BE your waifu, user!

>I developed a program
you wrote a *script, kid

if my bash is not in /bin/bash , that script doesn't work.

Listing all files in a directory with dirent
Are these . and .. supposed to be there?

Scripts are programs, dweeb

>// I want GlobalVariables from m1

declare m1 globably, and assign inside foo

llvm::Module *m1;
foo() {
m1 = new Module("m1", Context);
// store GlobalVariables with ExternalLinkage
}

fooo() {
llvm::Module *m2 = new Module("m2", Context);
}

This isn't the place for bug reports on my software, we have a proper bug tracker for that.

nope

"Scripts" are distinct from the core code of the application, which is usually written in a different language, and are often created or at least modified by the end-user.
Scripts are often interpreted from source code or bytecode, whereas the applications they control are traditionally compiled to native machine code.

The program has an executable form that the computer can use directly to execute the instructions.
The same program in its human-readable source code form, from which executable programs are derived (e.g., compiled)

kys

You have a cryptolocker

I want to try my hand at AMD x64 assembly programming, where can I find a simple starting guide for windows?

Okay, I need examples of compressing and decompressing LZ77 Algorithms.
I have an exercise where I have to de-crypt a compressed image, but I haven't fully understood it yet.
Any help in that regard?

>Japanese book
>Front cover on the wrong side

reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

>being this autistic to notice that

pls no ;-;

cs.stanford.edu/people/eroberts/courses/soco/projects/2000-01/data-compression/lossless/lz77/example.htm

michael.dipperstein.com/lzss/

developer.com/java/data/article.php/3586396/Understanding-the-Lempel-Ziv-Data-Compression-Algorithm-in-Java.htm

stackoverflow.com/questions/16469410/data-compression-algorithms

en.wikipedia.org/wiki/LZ77_and_LZ78

www0.cs.ucl.ac.uk/teaching/GZ05/07-images.pdf

Wow good copy pasting skills. Try reading the sources first though ;).

how do i prugrum

>Wow good copy pasting skills

you should be thankful i did that job for you, since you can't google the difference between program and script.

what if its the same Module?
llvm::Module *M;
foo() {
M = new Module(..);
// store globalvariable
}

fooo() {
M = new Module(..);
}

same person,
Question should be: what if the module gets dumped / deleted is there any way to "copy" the module or temp save the globalvariables and then use in fooo()?

I know what the difference is. You apparently don't if you think a script is not a program.

it isn't.

reposting
Is there an easy way to get a file explorer up with c++. would prefer to not use winapi. Hoping for some kind of library that lets you explore then returns the paths in an array

Also can someone tell me what Im doing wrong (c++). I want to pass the struct by reference.
struct x {
void(*func)(struct& x);
};

Wait, forget the second question. Im an idiot.
struct x {
void(*func)(x&);
};

That's a common rookie misunderstanding. You're trying to assert that they're mutually exclusive, when in fact one is a subset of the other.

I have a very long txt file that looks like this:
i want to find out what the Average of the marked elements is, I usually had the data in a better format so I could scann it with R, but I dont know now

6351917
6
12
5
6
29

No. C++ is a shit language. I'm learning C.

try processing it line by line (assuming one element per line)?

skip 5 lines and read in a loop assuming its in that format throughout