[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 327
Thread images: 26

File: 1481654229907.jpg (264KB, 1440x1080px) Image search: [Google]
1481654229907.jpg
264KB, 1440x1080px
What are you working on, /g/?
Old thread: >>58398861
>>
Nothing. I'm a lazy retard
>>
just finished the python codecademy course

how much can i expect to make? what jobs should i be applying for now
>>
>>58405171
Gonna assume this is a joke
>>
>>58405171
Any jobs which are looking for "novice clueless python programmer with big ego".

However if you are in some backwater country (for example USA) you could get a job. Especially in a small tech illiterate company.
>>
>>58405171
some dollars flipping burguers or something
>>
Is anyone using xamarin?
Is it reliable?
Or am i just looking for trouble?
>>
Would you have gottten into programming at an earlier age if you could?

What would you tell your younger programming-inclined self to do?
>>
Shitty project I have to deliver to my teacher in one week and I didn't even start yet. And I still have to learn the language.
>>
Not very inspirational responses but what else can i expect from 4chan. serious question though how can i get a job if you dont think ive done enough at this point?
>>58405180
Nope. The course was challenging but I was able to push through it over the course of a few months.
>>58405201
USA is the leading country in every technological field. You're goddamn right I'm American
>>58405209
??? I'm a programmer
>>
>>58405233
> Get to it, you can make big money out of it. It's the fucking future you little faggot.

And probably advice myself some good books and how to avoid the common mistakes a beginners make.
>>
File: 1443604195353.jpg (125KB, 800x720px) Image search: [Google]
1443604195353.jpg
125KB, 800x720px
>>58405233
I don't think I'd gotten into programming earlier than I did.
I started to mess with Basic when I was 10 years old.
>>
>>58405233
Nope. I actually tried to get into programming a few times when I was younger, just wasn't for me at the time and i didn't stick with it.
>>
Started my first graduate-level course (still an undergrad). It's on randomized and approximation algorithms. Seems like a lot of fun.
>>
>58405233
my first personal computer was in college, so no.
>>
How does nofap affect programming skills?
>>
>>58405249
Just stop
>>
>>58405249
Write 3-4 non-trivial open source projects, so you at least have something to show.
>>
>>58405324
well what's nontrivial?
>>
>>58405233
>Would you have gottten into programming at an earlier age if you could?
Yes. For what I was doing on the internet at the time anyhow (gaymes)? Absolutely; learning any/all of that while playing gaymes would have been amazing. Collecting and displaying data about game stats alone would have been incredible to know a decade ago.

>What would you tell your younger programming-inclined self to do?
Maybe pick up some programming book at Barnes and Noble, but when I was younger I didn't know a single soul who could use the computer past gaymes if they were a kid or MS Office (not even Excel functions or VBA) if they were an adult. I only got into programming during community college and math only started to make sense to me when I started programming; previously, I avoided math as much as I could since it never clicked just studying it as it was. It sounds autismal as fuck but programming was the key to math for me since I got to see even college algebra in action doing things.

Also the CC taught Math 101/Logic and Set Theory which was a semester of truth tables and understanding the general concept of sets of numbers and that shit was eye-opening in its own regard and fun as hell.

I guess if I could replace telling my younger self something with a wish, it would be to have more computer-savvy people/adults around me at a younger age.

>>58405403
Consider the following:
You work for Company XYZ. They have no clock in/clock out system to keep track of employee shifts. Make a CLI program that contains a list of employees and their work schedules, gives said employees the ability to clock in and out, and allows a supervisor to access the clocked hours of all employees.
>>
>>58405233
yes, hell i'd teach the lil shit all i know about lua and watch him go wild

start off with ezshit and find things similar to said languages and build your way up
>>
>>58405212
Xamarin is a good thing but it is highly recommended that you have at least some understanding about building mobile apps first.
>>
File: git princess.jpg (1MB, 800x2798px)
git princess.jpg
1MB, 800x2798px
>>58405235
>And I still have to learn the language.
Which language is it?
>>
>>58405552
the C part makes no sense

should have been:
>you have a library for a castle & library for the princess but instead you decided to spend 8 months writing the libraries yourself
>>
Procrastinating while thinking about learning C# and .NET because someone told me it's less depressing to work with than Java.

Because I could really use a code monkey job about now.
>>
what the fuck language should i learn if i want to be employable a year down the road
>>
>>58405607
python
java
javascript
ruby
>>
>>58405617
is just one enough?

whats the differences between each of them?

what can i do with each of them?
>>
>>58405249
Saying fucking codecademy fucking python course was challenging...

Read some books first, learn concepts in depth (language agnostic ones too). Write some nontrivial projects and maybe then you will have some chance at getting a job in programming.

If you don't have a degree a good portfolio is a must.

>>58405440
That's pretty trivial really.
>>
What can I get out of programming, besides employment and designing my own websites or games?

What programming language should I learn if I want to casually exercise it over the span of a few years without necessarily making a living off it and have only had experience with BBCode?
>>
>>58405597
C# is satisfying to use in general, and pretty great as a hobby language for personal things.

Using it on the job is fine, too, and your enjoyment is going to primarily depend on your company, not the language.
>>
>>58405607
arabic
>>
>>58405660
you can get mad pussy on your tiny dick
>>
>>58405552
Give me some OC for your favorite languages
>>
>>58405403
Do any three of these:
https://matijasi.github.io/Procedural-Project-Generator/

You can safely ignore language and paradigm recommendation. Just try doing them in python.

>>58405651
There is still a lot of legacy software in cobol and practically no cobol programmers, so cobol is ultimate job security. But it's fucking horrible language.

>>58405617
>>58405651
Market for these is pretty much saturated.

Your other option for guarranted job is let's say C, there is a big market for embedded devices.
>>
>>58405651
yes

search about it

pretty much everything, but there's a different approach for each

if you never programmed in your life, go for python
>>
>>58405671
It's about the same as modern Java desu senpai.

It's not really that different.
>>
Shitty simple question, but is there a way to have two different loops running at the same time, or at least interlaced in some way? In python, that is.
>>
>>58405171

unless you have a vagina, $0
>>
>>58405723
https://docs.python.org/3/library/multiprocessing.html
>>
>>58405654
have you done the codecademy? it is challenging. can you tell me please some good concepts to learn? Are you hispanic?
>>
>>58405709
He wants a job not a humane good friendly language.

>>58405723
Google parallelism and concurrency in python.
>>
can you sum up every language with muh?

like

>muh polymorphism
>>
>>58405771
>muh transsexual users
>>
>>58405723
threads
>>
>>58405761
I skimmed it, but it was under my current knowledge level.

Study some theory, at least analysis of algorithms, learn to estimate their efficiency and prove their correctness.

Since you are using python, which isn't all that powerful language, you will have to learn patterns. Patterns are basically a way of faking powerful features in weak languages.

Do you at least know recursion?

I am slavic, why does it matter?
>>
>>58405771
go:
>muh goroutines

c++:
>muh templates

c:
>muh SIGSEGV

haskell:
>muh monads
>>
>>58405654
The dude can probably barely fizzbuzz after his codeacademy struggle (lmao), a clock in/out system would send him into a coma.
>>
>>58405825
>muh monads
Other languages have monads, though.
>>
>>58405747
>>58405763
>>58405783
>thank.py
>>
>>58405832
>>58405810
And monads are pretty cool concept to learn to.

This could be one of your nontrivial project, an implementation of monads in python.

There is some tutorial on the web about implementing it in ruby. Ruby and python are pretty similar so try following it.

>>58405832
Standards these days ...
>>
>>58405832
QUICK EVERYONE

Fizzbuzz in your language of choice, or the mods will permanently affix an anime avatar to every post you make.
>>
>>58405907
>implying that wouldn't be awesome

No FizzBuzz for you.
>>
>>58405771
Java:
> Muh desperate scramble to reimplement Common Lisp with Haskell's type system after the fact.

Seriously, it's what they're going for these days.
I'm not complaining, but if you told me that when Java 6 came out... I would be skeptical of such a claim.

I still look forward to the day when Backwards Incompatible Java comes.
>>
>>58405907
>>58405917
This. I, for one, welcome our new any may overlords.
>>
>>58405907
>>58405917
>>58405943
threat.append('Unless you want one, then they'll ban you from /g/ and come to your house and actually murder you')
>>
File: Anime_83788b_6105111.jpg (56KB, 680x551px) Image search: [Google]
Anime_83788b_6105111.jpg
56KB, 680x551px
>>58405907
>the mods will permanently affix an anime avatar to every post you make
I'm not seeing a downside here.
>>
>>58405961
thread <- "Okay"
>>
>>58405907

Not including import statments:
public class FizzBuzz {
private static fizzbuzz(int x) {
if(x % 15 == 0) {
return "Fizzbuzz!";
}
if(x % 5 == 0) {
return "Buzz";
}
if(x % 3 == 0) {
return "Fizz";
}
return String.valueOf(x);
}

public static void main(String... args) {
IntStream.range(1,100).map(x -> fizzbuzz(x)).forEach(out::println);
}
}
>>
>>58406023
FizzBuzz is only interesting if it's completely over the top and/or really clever. Please try again.
>>
File: fizzbuzz.png (58KB, 958x595px) Image search: [Google]
fizzbuzz.png
58KB, 958x595px
>>58406070
Okay, here is a trivial solution, I will do an abstracter one, just give me a minute.
>>
>>58406023

i dont get the Class meme

why would you need to make a class to write fizz buzz? you c# coders are literal cancer.
>>
>>58406128
What makes you think it's C#?
>>
what do you have to say about the fact that programmers are actively working on making themselves obsolete as we speak?
>>
I'm working a left-handed algorithym to solve a maze.

The maze is made in a array of 1 and 0 (0 is floor, 1 is a wall).

Theres is a direction var (0-3) that moves you through the maze.

First look at the left, if it cannot move to that position, look up, then right and finally down.

Any ideas?

I think in multiples if to look to each position
>>
>>58406167

i agree. all non c++ programmers should leave the planet
>>
>>58406159

idk and i dont care. why put it in a class? now i have to make an object just to call a fizz buzz function? unbelievable.
>>
>>58406167
>as we speak
>text board
Whew, dodged a bullet there, huh?
>>
>>58406182
"Left" isn't absolute left, it means hug the wall to your left, which is dependent on your direction. So you need to keep track of your direction of movement and use its "left, forward, right, back", not the array's axes
>>
>>58406216
You do because of the language scoping rules.

Global namespace is cancer for larger programs.
>>
>>58406261
Good languages have things called packages
>>
>>58406182
Make a two enums:
N, S, W, E for absolute directions.
Then, you want
U, D, L, R for relative positions.

Something like
(direction :facing :W :want-to-go :L)
* S
>>
>>58405907
for n in range(1, 100):
if n % 15 == 0:
print('FizzBuzz')
elif n % 5 == 0:
print('Buzz')
elif n % 3 == 0:
print('Fizz')
else:
print(str(n))
>>
>>58406276
Yes, so does this language.
You use them to keep classes apart from each other.

Classes are containers for behaviour and state.
They again are contained in packages.

That's how the language solves the issue of keeping code apart. If the 40 bytes of memory needed for a class is so vexing to you, I suggest suicide.
>>
File: fbos.webm (135KB, 720x420px) Image search: [Google]
fbos.webm
135KB, 720x420px
>>58405907
https://gist.github.com/anonymous/4d02d1c2e339ae62baad9119c37be530
>>
>>58406311

we are talking about fizz buzzing, you dolt. We know, your precious rpg basement dwelling game was probably made with classes, we get it.
>>
>>58406311
The idea of making objects in order to use pure functions is vexing to me
>>
(defn fizzbuzz [x]
(let [v [(= (mod x 3) 0) (= (mod x 5) 0)]]
({[true false] "fizz"
[false true] "buzz"
[true true] "fizzbuzz"
[false false] x} v)))

(map fizzbuzz (range 1 101))
>>
>>58405249
>Nope. The course was challenging but I was able to push through it over the course of a few months.
7/10 overall, but you jumped the shark here.
>>
>>58405128
Hello /dpt/

I have a Python assignment where I'm given a HTML parent directory in which there's a list of subdirectories from which I should scrape out email addresses and list out all subdirectories where those email addresses appear.

ie. [email protected] in subdir 1, subdir 4, subdir 7

I'm only supposed to use BeautifulSoup and urllib.

The exact problems I'm having are:

The listed subdirectories are appealing in all forms and flavors. 'http ://whatever.asdf/i/dont/give/a/dam.html"; "/what/ever/example.html"; "who/cares.example.html"
So I have no idea how to wrap it all up to access them. If regex is needed, how the hell do I use it?

The email addresses themselves have two possible domains: "@something.wat" or "@something.el.se.wat". The ID(or whatever before the @ is called) stays the same. What do?
>>
>>58405440
>Consider the following:
It sounds pretty trivial, bro.
>>
File: usual_Abstract_fizzbuzz.png (114KB, 1135x581px) Image search: [Google]
usual_Abstract_fizzbuzz.png
114KB, 1135x581px
>>58406104
Abstract fizzbuzz pretending to be traditional fizzbuzz.
>>
File: abstract_fizzbuzzbazz.png (120KB, 947x564px) Image search: [Google]
abstract_fizzbuzzbazz.png
120KB, 947x564px
>>58406458
And demonstrating it's power level.
>>
hey guys where should i learn how to code
>>
>>58406453

>>58405832
>>
>>58406475
Find a book on a language you want to learn
>>
>>58406475
Try ruby or python as your first language.

Then learn one lisp, scheme is the most beginner friendly. Learning scheme shouldn't take you more than a few days, but it will give you a lot of powerful tools to use in your day to day programming.

Then decide what do you want to do. If you want to do web dev, learn html, css, javascript and one python/ruby web framework.

If you want to do usual deving, learn either c++ or java (or rust or go... there is a lot of languages now).

If you want to do some more abstract stuff learn haskell or racket/common lisp.
>>
>>58406475

stop calling it "coding" or saying things like "how do i code?" or "i want to be a coder". It's a left wing term only nu males and feminists use, and they only end up making it in the industry because theyre cherry picked by the left to attempt to prove to everyone that "anyone can code". So if you wanna play the "code" meme and make it big, i would suggest becoming a transgender person, color your hair, wear thick glasses, and tweet anti-Trump messages every day on your twitter. If you want to actually be a normal logical thinking human being and distance yourself from the degenerate scum, learn C.
>>
>>58405771
Rust:
>muh memory safety
>>
>>58406474
I should probably write word-pairs generator to make it a bit more easily usable.
>>
>>58406478
Ahuehue.
>>
>>58406336

Who said you need to make an object? Just because you need to make a class does not mean that you must instantiate it.

>>58405907

I wrote this a while ago to demonstrate how a person who barely knows C and doesn't know how about the modulo operator might approach the problem. It requires only knowledge of basic loops, if statements, and reassignment of variables. "OMG Math" is not actually a valid excuse, as there the only math used here is the kind that a first grader would need to know (addition, comparing number equality).
#include <stdio.h>

int main(void)
{
// rem3 and rem5 store the remainder when
// i is divisible by 3 and 5 respectively
int rem3 = 1, rem5 = 1;
for (int i = 1; i <= 100; i++) {
int print_num = 1;

// If i divisible by 3, print Fizz
if (rem3 == 0) {
printf("Fizz");
print_num = 0;
}
// If i divisible by 5, print Buzz
if (rem5 == 0) {
printf("Buzz");
print_num = 0;
}
// If neither of the above were executed, print the number
if (print_num != 0) {
printf("%d", i);
}

// Print newline regardless
printf("\n");

// Increment both remainders.
// Reset to 0 when they equal the divisor.
rem3++;
if (rem3 == 3) {
rem3 = 0;
}

rem5++;
if (rem5 == 5) {
rem5 = 0;
}
}
}
>>
>>58406524
I second this. Use of the word 'code' (particularly as a verb) is real personality smell to me.
>>
>>58406513
> Rust
I want proggit culture to leave
>>
>>58405771
Coq: muh proof
>>
>>58406527
And abstract out mod(ulo) operation, so it would also work with strings for example.

>>58406551
I don't like these languages at all too, but they are still options.
>>
>>58405907
This is /dpt/. You should've said "and" instead of "or".
>>
>>58406311
>Classes are containers for behaviour and state.
I agree with the principle of it, but there's no need to treat functions differently from classes or other object instances, or to require you to explicitly declare a class when all you want is a function.

That's why I don't have much respect for those languages. It's all the arbitrary distinctions that serve absolutely no purpose except require you to write a whole lot of boilerplate.

Just like distinctions between statements and expressions. Expressions can have side effects, so why do you need statements? Or in the case of Java, why shouldn't you be able to use generics with primitive types?

>>58406336
Functions are objects, the problem is that they are not first class objects.
>>
File: 1482099153462.jpg (104KB, 500x431px) Image search: [Google]
1482099153462.jpg
104KB, 500x431px
>>58406524
Calm down autismo
>>
>>58406330
It would have to be, since that's how the language mandates the organization of code.
>>
>>58406578
Only retarded languages make them not first class anyway.

Even fucking javascript has firstclass functions.

And most lisps have great oop and functional mix.
>>
>>58406578

In the case of Java, it's because of backwards compatibility. Newer code had to work with older code.

And it's not much of a boilerplate hassle in the long run. Typing Lists.of(someArray) isn't that different from typing makeList(someArray).

You could argue that arrays should have methods, but the Java guys treated arrays as special cases for speed gains so that their Java Powered Microwaves would run faster.
>>
>>58406544

the term is slowly but surely damaging the programming industry. i dont even consider myself an expert programmer, but i can see the unfortunate political side of the industry now and it's very alarming.
>>
>>58406444
Here are some tips for an imperative solution:

Use os.walk() to find all the (.html) files
Use regex to search each file for the addresses*
Keep a running total of which directories each address appears in

Protip: you can do all of this with one loop.

*no need to break out an HTML parser for this, and fuck off with your Chomsky hierarchy/Zalgo text bollocks
>>
>>58406598
You can create a class of functions in Java and C#.
In Java it's an implementation of Runnable.
And they are first class. You can pass them around, create them, return them, etc.

But you have to do it inside a class.

In real life, for larger programs, this is a non-issue.
>>
>>58406618
>i dont even consider myself an expert programmer
You realise you're not allowed to post here unless you have achieved Satori?
>>
>>58406630
Interesting.

Are all these functions possible:
map, reduce, foldr, foldl, unfold ?
>>
>>58406635

i dont care. i've seen companies purposely hire females to try and balance out the gender gap for their programmers. God help us.
>>
>>58405723
First rule of concurrent programming.
Don't use locks except to implement concurrent datastructures like queues, etc...
If you use queues don't forget to have an exit condition. like queue.send("STOP") and on the receiver side if queue.receive() == "STOP": break
Depending on the queue you may be able to use multiple writer or reader or only one thread.

Remember if you don't use locks then there is no problem. Locks are way too primitive to be used for application level synchronisation and easy to mess up.
>>
>>58406624
You're not parsing HTML though, so yeah.
You can find the regex that defines a valid email address here:

http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html

Copy and paste. Do not try to comprehend that mess.
>>
>>58406644
Yes, provided you wrap them in a monoid like Optional or Stream.
>>
>>58405976
This is now your permanent avatar.
>>
>>58406691
So now I have to ask, is the meaning of monoid the same as in haskell or it's some bastardization of the term?

(I know it's not monad, but there are monoids in haskell too).

What about curry, rcurry, compose, conjoin, disjoin?

They work like this:
compose takes arguments f g h ... m and returns a function (lambda (x) (f (g (h ... (m x)))))

Conjoin takes predicates and returns a predicate, which is true when all predicates are true.

Disjoin takes predicates and returns a predicate, which is true when at least on predicate is true.

Maybe i mixed conjoin disjoin up. Doesn't matter.
>>
>>58405128
Preparing for some local programming contests and trying to make shitty games with sfml.
>>
>>58406644
>>58406741
The only time this stuff would be impossible is when you exceed the limits of Java's type system, for example if you need higher order generics.
>>
>>58406774
So it's possible to emulate functional paradigm in oop focused language.

Kinda surprising, even though turing machine and lambda calculus are equivalent.
>>
>>58406792
It certainly won't look nice, but it's possible.
>>
>>58406809
Could you define some trivial form of compose in java (if you have time)? I am interested in how it would look.
>>
>>58406830
Java 8 has composition built into the function interface.
>>
>>58406809

It looks nicer when you use a different language, targeting the same runtime.
>>
>>58406458
>function-and
this is a problem I have with lisps
why can't I map a macro
wrapping is retarded
>>
>>58406857
Still, just as an example.
>>
>>58406875
f.compose(g)
>>
>>58406871
I agree it's the single biggest issue of most lisps that macros aren't first-class.

Isn't there some dialect of scheme where they are first-class? Is there still the same problem?

>>58406885
Example definition of compose not its usage.
>>
>>58406544
The word 'program' should also not be used as a verb either, but we do.

If English were to go down the road of prescriptivism, like French, it would become as dead as French.
>>
>>58406907
this

Can somebody sophisticated in lisps tell us why macros aren't allowed to be first class?
>>
>>58406680
kek
>>
>>58406624
I'm not sure I follow you on that last one. Is keeping a dictionary, where the keys are the emails, and the values are the subdirs, a good enough solution?

The only issue i see with such a solution is a fuckton of conditionals and cycles.
>>
>>58406907
public static Function<T, V> compose(Function<U, V> g, Function<T, U> f) {
return x -> g.apply(f.apply(x));
}
>>
What language is used to write dynamic web pages these days?

Is it still PHP?
>>
File: pepe (disgusted and smoking).jpg (27KB, 600x418px) Image search: [Google]
pepe (disgusted and smoking).jpg
27KB, 600x418px
>>58406979
>dynamic web pages
>>
>>58406937
There is an experimental lisp with first class macros as I mentioned: https://web.cs.wpi.edu/~jshutt/kernel.html

It's probably due to all other objects working during run-time, while macros work during compile-time, but I don't know how this impacts the situation.

Does anybody know how is it done in Racket? If I remember correctly aren't macros in it just compile-time functions which take and return syntax-objects?

I hope somebody more experienced will answer these questions.

>>58406962
Doesn't this work just for two functions? It's possible to define it for more than two in a simple way?

Thank you anyway, I certainly learned something interesting.

>>58406979
parenscript for frontend and common lisp for backend if you are lisper.
javascript and jquery for frontend and ruby/python backend otherwise.
>>
>>58406979
C
>>
>>58407007
>It's possible to define it for more than two in a simple way?
As long as they all have the same type you could input a list and do it that way.
>>
>>58406912

French isn't really dead though.

>>58406979

There are many. PHP is still fairly strong, but Node.js is a strong force these days, and Python and Ruby are used for backend web development in some limited extent as well.
>>
>>58406937
>>58407007
Kernel scheme dialect page mentions that it's due to tradition, since they caused a lot of crap in dynamic-scoped older lisps.

But this probably isn't the only reason.
>>
is adding or bitwise OR faster on x86?
>>
>>58407036
What does Node.js backend code look like?
I can't imagine using it for anything other than simple DOM manipulation on the clientside.
>>
>>58407048
The difference, if any, is probably so miniscule it doesn't matter
>>
>>58407048

They're probably both just one instruction cycle each, and able to be parallelized. I wouldn't worry too much about the speed of arithmetic instructions though, unless it's DIV. I can almost guarantee that everything else in your program will be the cause of slowdown, particularly anything that loads from memory.
>>
>>58407048
Bitwise or usually from what I remember.

These things nowadays depend on specific processor, check your processor documentation.
>>
>>58407048
bitwise is usually slower on modern architectures
>>
>>58407048
It depends on your ooe add what's in the pipe. Neither.
>>
ADD and OR are both 1 microoperation on pretty much everything.

http://www.agner.org/optimize/instruction_tables.pdf
>>
>>58406680
>You're not parsing HTML though
Exactly, but he's been told that he can use beautifulsoup, for some reason.
>RFC822
He doesn't need that monster if they're actually using the format he mentioned: the name is always the same, and the domain is only one of two possible options (differing by a subsequence).
>>
>>58406912
>French
>dead
I'm sure many of us would like that to be true.
>>
>>58406958
Since there are only two possible emails, that would be a bit redundant, but yes: the keys would be the email addresses and the values would be *lists* of the directories in which they appeared.
>>
>>58407290
>>58407244
There are a lot of possible emails. A lot. The names change, but the domains are only one of two, so [email protected] and [email protected] are the same.

both domains are preset.
>>
Is there a better way of getting information from a website other than downloading the pages' HTML?
>>
>>58407478
check if the website offers an API, usually this will provide info encoded in XML or JSON, and ideally ONLY the information instead of also containing the site's layout as you get when scraping HTML.
>>
>>58407472
>The email addresses themselves have two possible domains: "@something.wat" or "@something.el.se.wat".
>The ID(or whatever before the @ is called) stays the same.
You can see why I thought otherwise.

The regex is still trivial in the context of a class exercise, and in the context of a class exercise you should definitely write your own.
Furthermore, you are unlikely to be able to use this regex: >>58406680
for the reasons explained here: https://swtch.com/~rsc/regexp/regexp1.html
>>
how hard is it to go from python to java after you worked with it for a year or so?
>>
File: browser_.png (1MB, 960x1040px) Image search: [Google]
browser_.png
1MB, 960x1040px
>>58407562
but scraping's fun :)
>>
Hey I'm back again - guy with the Arduino project.
To the anon who I was talking to on trying to figure out how to create my own serial logger - I found a dirty simple and easy method in VB as opposed to a complicated program in C++:
Public Function SerialLogger() As String
Dim comString As String = ""
'Dim com3 As IO.Ports.SerialPort = Nothing
Try
com3 = My.Computer.Ports.OpenSerialPort("COM3")
com3.ReadTimeout = 10000
Do
'Dim incomingString As String = com3.ReadLine()
If incomingString Is Nothing Then
Console.WriteLine("No incoming strings")
Exit Do
Else
comString &= incomingString & vbCrLf
Console.Write(incomingString)
Console.WriteLine()

End If
Loop
Catch exception As TimeoutException

End Try
Return comString
End Function

Dog bless :')
>>
>>58407573
The concepts are no more different but the boilerplate will make you want to die.
>>
>>58405249
This is bait, right?
>>
Parsing HTML using Python and regex, because #yolo.
>>
>>58407610
Don't worry, you'll stop pretty soon.
>>
>>58407610
I'm doing it in Ada, because #power
>>
>>58407610
He's not really parsing it. We've already vetoed any Chomsky hierarchy bollocks.
>>
File: umngopher.png (46KB, 924x1039px) Image search: [Google]
umngopher.png
46KB, 924x1039px
>>58407582
But why sort through all the extra data when you have just the content?

https://github.com/4chan/4chan-API
>>
>>58407582
why though? 4chans api is dead simple.
>>
>>58407709
>>58407701
Me and another guy (maybe one of you two?) did try to sell him on it yesterday, but to no avail.

I suspect it's because he's 24,000 lines in and doesn't want to make any big changes, which is fair enough.
>>
(+ 1 self-made-client-screenshots)
>>
>>58407753
tell me more
>>
>>58407753
It can handle images inside the terminal?
>>
>>58405128
is there anything i can help work on
i have lua knowledge
>>
>>58407701
>>58407709
well, not all sites have an API, and even if they do, they usually impose various restrictions on how you can use it. parsing html is dirty work but it works on nearly every site.

>>58407744
yep, that's part of the reason. I think the parsing code is only a few hundred lines at most though, so I don't think it'd be a HUGE deal to change it. change for the sake of change is kind of pointless. the API wouldn't reduce browser's footprint.
>>
>>58407812

sucking dick
>>
>>58407771
>>58407789

this isn't terminal, this is emacs :^)

I started working on it a few weeks ago, I have it up on git but I still want to add a few more features, do a little more polishing before linking the git for it.

But yes, it has thumbnail support, and can open the full res images in feh as well. Handles gifs and webms with mpv.
>>
>>58407812
There's a mod in Minecraft called ComputerCraft - fuck around with that and see if you can make anything cool. If not, develop scripts for Roblox (they used a sandboxed version of Lua) or write hacks for Payday 2.

Lua is a meme language and will only ever be applied to video games.
>>
>>58407753
>>58407701 is more of an archive

gopher://khzai.net/1/phourchan/g/58405128

but I've found it useful for searching for keywords in posts

too stingy with my disk space to start pulling images though
>>
>>58407816
oh, and doesn't using the API require javascript or something? if so, that'd be a kludge to add into browser.
>>
>>58407838
Git link where
>>
>>58407818
b-but im not good at that anon

>>58407843
>roblox
oh wow that isnt a thing i've heard about for a long time, i'll see how much its changed
>>
>>58407816
The main reason that I would do it would be because I disagree with the idea that it would be 'change for the sake of change'.

It would be change for the sake of it being better.

>>58407852
It uses JSON. You do not need to touch JavaScript.

>>58407838
If you link a text-mode (slash emacs) 4chan browser on GitHub, I'm sure it'll see some use here.
>>
>>58407862
I logged onto it for shits and giggles after not playing it for at least 6 years. It's even more cancerous than it previously was.
>>
>>58407048
On Intel they have the same latency, same throughput and use the same execution ports.
>>
>>58407853
No, the data in the API is encoded in JSON (JavaScript Object Notation) which was originally taken from Javascript's notation for objects but is entirely separate.
>>
>>58405675
which arabic
>>
>>58407864
>It would be change for the sake of it being better.
>>58407908

I'd probably still have to parse it myself though, unless the winapi has a way to do it.

https://a.4cdn.org/g/1.json is just a big clusterfuck of text.
>>
>>58407923
BASIC may be an unapologetic mushroom cloud of fuck, but I'm sure even it has JSON handling.
>>
>>58407923
have you ever looked at the HTML source you scrape? It's also a mess printed on one big line, but you can make it look pretty if you want to
>>
>>58407923
http://stackoverflow.com/questions/20079177/deserializing-json-in-visual-basic

The guy in this example is even using the 4chan API. You can probably just copy and paste.
>>
Is there any equivalent to std::enable_if for specialization? Like, can I specialize an integer template for all integers that are powers of 2? If you use enable_if then you end up with ambiguous overloaded calls.
>>
>>58407855
>>58407864

Okeeyyyy, heres the git, Ive been working on some new stuff since yesterday's push though.

https://github.com/desvox/q4

Save q4.el to a file somewhere, and
M-x eval-buffer


Read the header comment while you're at it.

Default keybinds defined here, not yet documented elsewhere: https://github.com/desvox/q4/blob/master/q4.el#L597

Its still a bit rough, but I welcome any criticisms, suggestions, requests etc.
>>
File: intpintpintp.png (334KB, 500x487px) Image search: [Google]
intpintpintp.png
334KB, 500x487px
I'm INTP and the only thing I truly enjoy is programming.
>>
>>58408003
I don't use VB, or libraries (other than the flat winapi DLLs), or OOP, or COM unless there's absolutely no other way to do it.
>>
>>58408034
>AYYY LMAO in supersized block fucking capitals
Don't do that to me, you bastard. I was only playing that game a few weeks ago.
>>
>>58408048
What type of BASIC are you using, then?
>>
>>58408048
What language are you using?

Also, how many LoC is your application?
>>
https://github.com/saniv/symta/blob/master/doc/symta-by-example.md

>this is what happens if you go to /prog/
>>
>>58408102
>>58408107
powerbasic. v9 is free btw.

I think it's around 24k lines. The compiler reports 262,696 lines when I compile but most of that is from the headers.
>>
File: imrs.jpg (212KB, 1484x1029px) Image search: [Google]
imrs.jpg
212KB, 1484x1029px
>>58408187
>you will never waste your life writing 260,000 lines of PowerBASIC
>>
I am trying to make conway's game of life using my braille library

I don't think this is supposed to happen
>>
>>58408187
>powerbasic
What the actual fuck?

Why are you doing this?

It takes 10 minutes to NuGet the FChan library and start working with the data in LINQ, easily throwing it up in WPF or on an Android app in Xamarin, or whatever you want to do with it.
>>
>>58408219

Very neat, though.
>>
>>58408187
>powerbasic
Oh. Well, good luck.
>>
Making a program for emulating a seven-segment display.

$ ./sevensegment
Enter numbers (max. 10): -273.15
7 characters read.
________________________________
| _ _ _ _ |
| _ _| | _| | |_ |
| |_ | _| . | _| |
| |
________________________________
Stop (y/n)?: y
Stopping.
>>
>>58408187
>I think it's around 24k lines.

Holy shit...
>>
>>58408187
It's that number a typo? Fuck me
>>
http://blog.extrawurst.org/programming/dlang/alexa/2017/01/06/alexa-in-d.html
Good shit senpai
>>
is using flag booleans bad practice?
it feels like it when ever I do it
>>
Why does nobody ever mention D ?
>>
>>58407753
did you use imlib2?
>>
>>58408383
ded
>>
>>58408383
I shill it all the time here
5 shekels per post
>>
any tldr java books
I aready know what loops and arrays are
>>
>>58408299
24k isn't THAT much, considering there's a bunch of boilerplate stuff, and I rolled my own code for pretty much everything.

anyway, I'm not positive but I think these are the only 'libraries' browser uses, and that's why the exe is only 750 KB:
[+] COMCTL32.DLL
[+] COMDLG32.DLL
[+] GDI32.DLL
[+] GDIPLUS.DLL
[+] KERNEL32.DLL
[+] OLE32.DLL
[+] OLEAUT32.DLL
[+] SHELL32.DLL
[+] USER32.DLL
[+] WINHTTP.DLL
[+] WININET.DLL
[+] WINMM.DLL
[+] WSOCK32.DLL
>>
File: when the D hits you.jpg (23KB, 512x512px) Image search: [Google]
when the D hits you.jpg
23KB, 512x512px
Speaking of D, fully no GC is coming along nicely
https://wiki.dlang.org/Vision/2017H1
>>
D is a bad name

they should have skipped it
>>
>>58408408
I meant the quarter million, but I guess that includes the libraries so it's fine.
>>
>>58408450
Great, maybe the industry can band together and strangle Rust in the cradle
>>
>>58408399
It might break the tiobe top 20 though
>>
>>58408460
well yeah, that's the winapi headers, which is over 1000 files. thankfully, pb is really fast and it only takes like one or two seconds to compile on my old comp.
>>
>>58408408
You can use thousands of libraries if they're dynamically linked and have a small executable
>>
File: tumblr_oc1962qw371ue41weo1_500.jpg (67KB, 500x281px) Image search: [Google]
tumblr_oc1962qw371ue41weo1_500.jpg
67KB, 500x281px
QUICK

What do I put on my github to make employers think I'm not retarded

I have two games in Lua but I need something better
>>
>>58408533

I wonder what her skin tastes like
>>
>>58408516
true, but it seems that most langs these days create a multi-MB exe just for Hello World.
>>
>>58408384
No idea what that is. Its straight Emacs Lisp, using the built in http and json libs.
>>
>>58408533
                                                                                                                                                      3 games
>>
>>58408564
oh it's not a program that makes screenshots but a program that shows 4chan in emacs? I was confused, sorry about that buddy
>>
>>58408219
i did it

apparently you need two buffers since you can't change the state of the game incrementally
>>
>>58408546
Probably because they use static linking by default to avoid 'DLL hell' since disk space is considered cheap these days.

Usually you should be able to tell the compiler to prefer dynamic linking and get a small executable though.
>>
How do I become Pythonic?
>>
>>58408703
Don't
>>
>>58408703
Suck Guido's dick.
>>
>>58408703
python is for facists
>>
>>58408703
Be a snek.
>>
>>58408293
Improved version:

$ ./sevensegment
Enter numbers (max. 10): 137.035999
10 characters read.
____________________________________________
| _ _ _ _ _ _ _ _ |
| | _| | | | _| |_ |_| |_| |_| |
| | _| | . |_| _| _| _| _| _| |
|__________________________________________|

Stop (y/n)?: y
Stopping.
>>
File: 1469042430440.png (168KB, 727x682px) Image search: [Google]
1469042430440.png
168KB, 727x682px
>When you are two lectures into Haskell and chill and you can feel your autism growing
At least it's not Java.
>>
>>58408675
The changes between states in Life happen instantly, so allowing modifications to the game part-way through a change in state (i.e. modifying the array or however you store your cells while still iterating over it) is obviously bound to cause problems. Cells that should be considered dead are alive and vice-versa.
>>
>>58408675
is this on github?

where's the source anon
>>
>>58407610
There is a formal proof that it's impossible to parse html with regex or context-insensitive parsers in general. Google it.
>>
>>58408794
>haskell

you like wasting your time, don't you
>>
>>58408757
source
>>
 int x, y;
x = 1;
y = x + x++;


What's the result? This should be easy for you /g/
>>
>>58408757
neat, you should make a physical led clock
>>
>>58408842
undefined behavior
>>
>>58408842
depends on implementation
>>
>>58408703
smoke the whole stack exchange

>>58408630
yep, it works in terminal emacs too (sans image support, and I need to add dedicated color faces for it) but I wrote it for X11 Emacs.

X11/GTK emacs are pretty much exactly like the terminal version, except you get nifty features like varibale width cell columns and rows, so you can use images (makes one huge row), variable pitch fonts, and different font sizes. And of course, full RGB color support, which is wonderful for syntax highlighting.

GUI Emacs is still bound to the same principles of terminal rendering though.
>>
>>58408842
x=2 and y=2?
>>
>>58408856
>>58408866

Use real language fags
>>
>>58408842
Both 2
>>
>>58408450
Okay, Now include gc again.
>>
>>58408871
>>58408890

It's 2 and 3
>>
File: emacs.png (49KB, 491x258px) Image search: [Google]
emacs.png
49KB, 491x258px
>>58408869
proving my point with pic related

Emacs is one hell of a drug
>>
>>58408917
really?
I thought for that to be true it would have been
y = x + ++x;
>>
Where do you see Java in 20 years from now?
>>
>>58408825
Obviously yes, if i didn't like wasting my time, i wouldn't attend a cs degree in the first place. [spoiler]:^)[/spoiler]
The only other option besides Haskell was Scheme and Haskell seems to be more sophisticated.
>>
>>58408934
It's a troll question, as different languages do it differently

in c# it's 2 and 2, always. In c++ it depends on the compiler, it can be 2 and 2, or 2 and 3

Really shitty stuff
>>
>>58408946
in the jDumpster
>>
File: 1483101805820.jpg (1MB, 4602x3852px) Image search: [Google]
1483101805820.jpg
1MB, 4602x3852px
>"dude take cs50 from edX its a great intro for comp sci"
>get to problem # 1 for the homework shit
>get stuck for 7 hours
>copy/paste someone else's code that works perfectly
>still can't understand it
"oh well, i'll just move on to the next one."
>write a program that makes the user input an amount of change ( $0.59, etc.) and prints out the least amount of coins that the will receive in return.
>oh this shouldn't be too hard
>its fucking difficult as shit
>i still don't understand anything
>week 2 is coming up

"haha dude just b yourself this course is easy its intro to comp sci!!!!"
>>
File: 1325229703684.png (121KB, 500x500px)
1325229703684.png
121KB, 500x500px
stuff()
{
}

Im gonna kill someone
>>
>>58409010
AAAHHA

HA
HH
A
AH
H
HA
H
AH
HA
A
U FUCKING PIECE OF LOSER SHIT

learn to live with your stupidity, you are not intelligent, you have crap genes

or killself alternatively
AHA
A
HAH
AHHA
HHAHHAHA
A
HHA
HA
>>
>>58408946
fucking dead, i hope
>>
>>58409010

is that guy floating with his massive brain above an ocean of retards?
>>
>>58409010
>print the least amount of coins to get that amount

I've never even done this and it's conceptually simple.
Keep subtracting coins in lower denominations until you have nothing left.
>>
is virtual in sepples the same as abstract in java?
>>
>>58409050
AHAHHAHHHA
AH
AHHAHAHHA

H
HAHHH
AHAHHAHAH
HAH
AH
AH

HA
HHAHA
HA
HA
HAH
HA
HAHAHAH
AHHAHAH
HAHAHAHHAHA
HAH
AHHAHAHHHA
HAHA

it's literally a DP program YOUR GREEDY BULLSHIT ALGORITHM WONT WORK

IT
WONT
WORK
>>
>>58409010
holy moly, that's embarrassing
>>
>>58408821
1) That's the joke he's making
2) You'd be better off Googling 'Chomsky hierarchy'
3) He does NOT need to parse HTML in order to search for strings
4) We've already decided to omit Chomsky hierarchy bollocks due to point #3
>>
>>58409068
actually the greedy alg working depends on the coins
>>
>>58409039
https://en.wikipedia.org/wiki/Anencephaly
>>
>>58409101
well if the coins can be fractions, BRAINLET, it works

doesnt counttttttt
>>
>>58409059
No, all methods in Java are virtual. Virtual means they are not actually part of the class data but stored in a Virtual Method Table (VMT) that the class looks in when they are called.
>>
>>58409010
link to problems?
>>
ive done learning and practicing on my own, even wrote a compiler and generally read a few books, do /g/'s challenges - i can program

now i want to contribute to open source projects, but it's such a mess where you have to navigate and spend so much time before actually programming

whats a good guide, or simple and quick advice you can give ?
>>
>>58409068
>it's literally a DP program YOUR GREEDY BULLSHIT ALGORITHM WONT WORK

It works for American coins, the only ones that really matter.
>>
>>5840913
and what's the point of not making all functions virtual when using inheritance? wouldnt it make sense?
>>
>>58409197
I-i got these 4u
https://68.media.tumblr.com/342bad7f179dbd3ba2e720a7d1325f57/tumblr_ojivhvWUug1u127y1o4_500.gif
https://68.media.tumblr.com/884cb23f708a1031a102bac059b0b629/tumblr_ojivhvWUug1u127y1o3_400.gif
https://68.media.tumblr.com/d9778c30387f9069445a52e58a8ce3d9/tumblr_ojivhvWUug1u127y1o8_540.jpg
>>
>>58409131
lol'd hard, ill acquire this BRAINLET meme
>>
>>58409207
Well, Java also allows other things that make for poor OOP, like final classes. Not ALL of their ideas were brilliant!
>>
>>58409207
If the method can be overridden in child classes then yes, you must make it virtual. The VMT is how a class knows which overridden method to call.

If the method can never be overridden, non-virtual methods are technically less costly since there is no lookup, the class always knows exactly where it is without needing to consult a VMT.
>>
>>58409030
>>58409039
>>58409050
>>58409068
>>58409069

>literally never took CS before
>"its ez dude just b yurself yull pass :D XDD"
>"here bro its only your first day but you gotta do tons of shit man"
>>
>>58409295

it's literally impossible to become a programmer with an IQ below 115
>>
>>58409345
good thing there's BASIC.
>>
What is distributed computing actually good for, /ptg/?
>>
>>58409374
simulated communism
>>
>277 posts by only 69 posters

lol
>>
>>58409345

[spoiler]how do i found out my iq [/spoiler]
>>
File: 1476655330369.jpg (48KB, 620x592px) Image search: [Google]
1476655330369.jpg
48KB, 620x592px
>>58409363
And PowerBASIC.
>>
>>58409374
breaking a password faster
ehheheheEHEHHEHHE
>>
what's the consensus of the use of static in sepples? and are static variables immutable by default (as final in java)? I read it only allocates once.
>>
>>58409374
DDOSING YOUR RIVAL"S WEB SERVER
>>
>>58409374
redundancy
>>
do comments slow down code measurably?
>>
>>58409478
Comments are completely ignored by the compiler
>>
>>58409478
writing comments will give you some serious performance issues
>>
>>58409488

but what about interpreted languages
>>
>>58409478
Wow.
>>
>>58409502
Interpreter ignores them
>>
>>58409525

yes but I'm sure it adds a few nanoseconds because the interpreter has to interpret more
>>
>>58409478
Always write comments more efficiently, skip A E I O U to save space
>>
>>58409547

useCamelCaseAndOmitSpacesInAllComments
>>
>>58409502
A lot of "interpreted" languages like Python actually have an intermediate step where the program is compiled to a byte-code which would not include the comments either.
>>
>>58409251

Nice.
>>
Automatic mango image tagging:

http://illustration2vec.net/
https://booru.guhnoo.org/
http://illustration2vec.net/papers/illustration2vec-main.pdf
>>
>>58405233
I got into it at 13, I don't think it would really possible before that.
>>
so there isn't a point where the interepreter has an if-branch that checks if the character is a mesh
>>
>>58409545

It'll take a few nanoseconds to ignore the comment, but everything gets broken down into an AST anyways, so a comment in a loop isn't going to get parsed twice.
>>
>>58409585
Oooold.
>>
#!/usr/bin/env python3

import unicodedata
unicodedata.lookup('PILE OF POO')
>>
>>58405233
Yes, absolutely. I blame my high school programming classes for putting me off programming. Senior year I took a C# class, it was neat because I actually made a functioning GUI program that did some useful unit
conversions. But it wasn't easy to make it run outside of visual studio, and of course I didn't have visual studio at home.
It wasn't until years later, when I started playing around with linux, that I realized I could write real working code with nothing more than a compiler and a text editor.
If I could, I'd send my high-school self some linux live CD and a copy of The C Programming Language. I'd be so much further ahead than I am now.
>>
What would you guys consider non trivial projects?
Would a HN clone count as trivial? I'm not OP but I feel like all my projects are trivial because I don't use 500 js frameworks and a 30 step deploy/build process to make something simple like an HN clone.
>>
>>58409765
>>>/wdg/
>>
>>58409765
a kernel
an OS
>>
>>58409765
Yeah HN clone would be quite trivial if you're knowledgable in a framework that could be a breakfast break project.
>>
>>58408833
Here is the code so far:
http://pastebin.com/Svq3kcQA

>>58408855
Sounds nice.
>>
>>58409010
1. Find the greatest coin that is smaller than the total change.
2. Subtract value of 1's coin from change and store the result in the 'r' variable.
3. Increase counter referent to the coin from 1 by 1.

Note: If you don't have a 1 unit coin it might not always work.
4. Make the change equals to the variable 'r', from step 2.
5. If 'r' is 0, finish. Otherwise go back to step 1.
>>
>>58409417
static means a lot of different things depending on the context, but it never means or implies immutability.
>>
>>58409478
They slow down the first pass of the compiler/interpreter (and of course bloats file size, so downloads take longer).
>>
hi
I'm the infamous blogposter and the faggot leader of /mhg/ discord and I've come to blogpost here about my programmings, I'm also a porn collector, 3.7TB by the latest count
I use python 3

I finally got around to writing a duplicate image detector and deleter when I'm sure it won't accidentally delete wrong things
the deal is I've some 2k folders of modelling pics and definitely some duplicates among those so I need to find dupes and delete those that are duplicate or edited and I have the original of it. it will only require to check the first, maybe two, pics for similarity to pass judgement because anything more and it will skyrocket the whole time needed for entire thing to work
right now I've got it to compare 2 images using ssim from skimage and its done a nice job of detecting 2 images while one is a lower quality of the first
>>
>>58409823
optimal(change, coins):
min = +infinity
for coin in coins:
ans = min(optimal(change-coin, coins), optimal(change, coins), ans)
>>
>>58409823
Fucks sake. The "Note" should be at the end.
>>
>>58409884
>while one is a lower quality of the first
why dont you just reduce them both to some standard size and compare pixels

this should work in theory,without using crazy libraries, just PIL
>>
>>58409765
Frontend that consumes the HN api, yes

A full clone including backend, db, etc., not quite trivial, but still not exactly impressive.

Full clone that also does neat stuff the original thing doesn't do, now you're getting somewhere.

Also, >>58409786
>>
>>58409801
Now cram the 7-segment representation into a char for added credit.
>>
Just got Clean Code and Pragmatic Programmer.

are these books worth reading? better alternatives?
>>
NEW

>>58409987
>>58409987
>>58409987
>>
>>58409919
because they are the same resolution but one is jpg quality 95 and other is 90 and less colours, pixel to pixel comparing wouldn't be as accurate, I'd also prefer to keep them unedited, ssim can be slow but it does job nice and clean
>>
>>58410000
Someone make a /dpt/ that isn't "/wdg/ 2.0"
>>
>>58410032
You wanted: >>58410092
>>
>>58409884
generally if you want to do N-way image comparison where N is large, the way to do it is to define a trivial image-based hash like:

"resize to 32x32, convert to grayscale, and then convert to binary where pixel = 1 if it's above the mean luminance, else 0." you could also do "lighter than the pixel to its right" to hash gradients, etc.

this defines a binary string for each image where similar images should have a small hamming distance. then what you do is you sort the signatures by their ones count, and you only have to compare signatures within the distance threshold. this gives a lot of pruning if your hash function is well chosen and you can easily implement it with PIL or any decent image matrix library
>>
>>58410010
you can't do pixel to pixel but if you resize to something very coarse and do something relative like luminance or the gradient, then only grossly different images will differ by more than a bit or two

real deduplicators apply a series of hash functions where the initial functions are insanely coarse, like 8x8, and therefore super fast to compute. then you compute your sophisticated functions on the ones that pass the coarse filter
>>
>>58410286
>>58410286
>>58410286

Non-webdev thread.
>>
>>58405128
>winapi
Thread posts: 327
Thread images: 26


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.