I'm stuck

I've been learning D but I can't seem to come up with anything low level I want to write anymore that hasn't already been written a thousand times or that would be better suited for a higher level language.

Attached: 0f5185109382e946857ea7e73818230cdf2ace3f0101d35fca6555dd64d43560-b.jpg (750x936, 104.26K)

Other urls found in this thread:

github.com/seletskiy/bloom-filter/blob/master/bloomlib.c
github.com/jvirkki/libbloom/blob/master/bloom.c
github.com/jasondavies/bloomfilter.js/blob/master/bloomfilter.js
pastebin.com/Mzqs2Szk.
twitter.com/SFWRedditVideos

Implement a Bloom filter for D.

What'd we tell you when you originally posted? The novelty is wearing off, isn't it?

No, the language is still amazing, I just don't really have a reason to start a project in a lower level language. I can't come up with something I wouldn't just write in Python or Ruby and anything specific enough to my system I'd just write in Assembly.

Attached: tumblr_pf03uosgmX1vt0y4i_500.jpg (476x480, 114.67K)

...

It has not been done in D.

Alot of stuff hasn't been done in D, I'm not going to descend into 'Rewrite It In Rust' levels of reinventing the wheel.

Write a BASIC interpreter.

Well that's 2 bad because D will never be used for anything actually useful.

A bloom filter is like a couple lines of code. What is there to implement?

If by a couple you mean a few hundred.

How fucking stu.. actually, are you a Java programmer? That would explain it.
In the real world outside of Java and Jewschool, bloom filters are such an insanely fucking trivial concept that they aren't even given their own functions.

Attached: footprints2.jpg (662x796, 169.92K)

Nice bait larper.

I'd love to see your "few hundred" line bloom filter. Go on, show me.

You probably think a vector should also be 2 lines of code. Guess what faggot, not how the real world works.

No, I'm amused now. Show me your few hundred line bloom filter. I want to see how you turn a couple instructions into a giant Kode with Klossy essay.

1: github.com/seletskiy/bloom-filter/blob/master/bloomlib.c
2: github.com/jvirkki/libbloom/blob/master/bloom.c
3: github.com/jasondavies/bloomfilter.js/blob/master/bloomfilter.js
literally the first ones that popped up on jewgle. All over 100 not counting murmur that everyone has to write.

...

wew, this is the Kode with Klossy I expected.
This is my favorite, it looks like homework from someone learning C at Jewschool. C datastructure for speed that uses doubles, calculates a mystery error value that shouldn't be exposed and isn't used internally, requires the array to be malloced, stores the count of bits separately from the count of bytes rather than round to a byte for who knows what reason, assertions attempting to catch bad values allow integer overflow, protection from a stack overflow in bf_get_index is only present in callers rather than the function itself, and supports loading and saving the filter to a file for no reason.
Now that's just suspicious as it has many of the same design mistakes and structure as the one above and chose the same hash and was written in the same year. Bet you've found a class project.
didn't read.
Why the fuck would you have to write, or use, murmur hash? A hash for this purpose is often as simple as modulus with a prime, and that's the normal state bloom filters are found in real code rather than massive overgeneralized data structures for homework. What hashes you use are a decision to be made by the user of the filter anyway, not the author of the filter. And murmur is obsolete (these were from 2012, though).

Opinion discarded. Nice try larper.

Web browser.

sounds like you just don't enjoy programming. you have a good career sucking cocks ahead of you faggot.

Since when did not wanting to risk my hands feeling like they're getting stabbed over the billionth implementation of fizzbuzz mean I don't enjoy programming?

Attached: eric.png (472x910, 357.4K)

dohoho enjoy your LISP.

If you can't think of something you want to write, then programming isn't for you. Fuck off.

Stfu nigger I've been doing this since I was 10.

you've been pretending to program while not making anything for 2 years already, very impressive. By the time you're in high school you might be able to write fizzbuzz.

Yeah ok bud you can stop projecting now

Attached: b0cecd320fa6e93690f7a722f3f8b636-imagepng-b-5b35.png (971x546, 83.37K)

77 lines of source
also 77 lines
89 lines of javascript
All under 100 lines. Stop counting blank lines, comments, and printing code.

Also, you can easily strip the crud from #2 and bring it down to 37 lines: pastebin.com/Mzqs2Szk. Having done so, you can see how easy a bloom filter is. Besides the init functions, which could be done way easier as well, both setting and checking are only a couple lines.

I LOVE RUST
SO DO YOU
INSTALL RUST

I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST

I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST

I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST

I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST


I LOVE RUST
SO DO YOU
INSTALL RUST