[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: 317
Thread images: 33

File: Calculus of Maki Constructions.png (312KB, 452x355px) Image search: [Google]
Calculus of Maki Constructions.png
312KB, 452x355px
What are you working on, /g/?

https://en.wikibooks.org/wiki/Haskell

Previous Thread: >>57911285
>>
>>57919912
dumb haskell poster

Thank you for posting anime, though.
>>
return main
>>
File: Capture.png (10KB, 137x130px) Image search: [Google]
Capture.png
10KB, 137x130px
third for maki a shit

guys if any of you are familiar with graphics.py, how would I make a half-filled circle like pic related? Don't worry about pattern, just one half-filled circle.
>>
>>57919931
An actual pile of shit is better than Love Live
>>
#define GNOME KDE
>>
>>57919912
>putting in OP anything but ("What are you working, /g/?\n\nOld thread: >>%d", last_dpt_thread)
Yep, this thread is fucked.
We need some /dpt/ template on installgentoo wiki.
>>
People seemed to enjoy this last thread:

>Today's challenge is inspired by the board game Scrabble. Given a set of 7 letter tiles and a word, determine whether you can make the given word using the given tiles.

import Data.List (permutations, subsequences)

main = print $ elem word $ concatMap permutations $ subsequences letters
>>
File: K-dop.jpg (16KB, 478x209px) Image search: [Google]
K-dop.jpg
16KB, 478x209px
who /fun with k-dops/ here?
>>
>>57920037
i-n-e-f-f-i-c-e-n-t
u-n-r-e-a-d-a-b-l-e
>>
>>57920037
Haskell: because sometimes O(2^n * n!) is good enough.
>>
>>57920098
>>57920119
If it doesn't work fast enough for seven letters, you can approach it differently.
>>
>>57920037
I made an enterprisey solution in Java.
Please post constructive comments on how we can enable buzzwords compliance.
I'm thinking big data, deep machine learning, Business Intelligence (yes, we have to build an OLAP cube), and all that jazz.
We need top tier decision support here.
http://pastebin.com/eD1cf1dY

Notice that enterprisey means that the code has to be simple enough that Pajeet can handle it.

Also, I'm not very good with Haskell, but do you allow substituting a character with '?' in your code?
>>
>>57920098
Go back to your Java boilerplate code that takes 350 SLOC to do the same thing, m8
>>
>>57920165
>Java
???
>>
>>57920037
microprettification of puzzle-oriented programming languages
>>
Have to run Qt program on WinXP. It requires some VC dlls and still refuses to work properly. How do I get my code running? It works fine on Seven and Windows 10.
>>
>>57920098
>>57920119
Like I said, I ran it on various inputs and the result was instantaneous every time.

So yeah, sometimes "O(2^n * n!)" is good enough. What's that saying about premature optimisation?
>>
>>57919959
This is undeniable even for someone who enjoys watching it
>>
>>57919912
Is Ipython in Jupyter notebooks count as programming?

If so I am programming some math/physics stuff (Hill's equation) and I need to find out how I can fix all my matrix components, no bully please
>>
>>57920195
XP is not supported by Qt last I checked.
>>
>>57919912
>great applications made with haskell
Daily tip: is not like haskell allows bug free code, is that "hello world tier" applications hardly will contain bugs.
>hurr but muh lambda calculus
useless also in maths
>>
>>57920206
>What's that saying about premature optimisation?
Is it "Haskell is only good for toy problems"?
>>
>>57920036
If you were using a real language, you could write that as

$"What are you working on, /g/?\n\nOld thread: >>{lastDptThread}"
>>
>>57919912
how the fuck is data stored as string in C when you declare it from it's first letter pointer like this

char* mystring="hello";

either the compiler when it sees replaces this by

char * mystring =malloc(6*sizeof(char)); //hello is 5 letters +1 for the \0
mystring="hello";

or i'm missing something here. where the fuck does the data gets stored if it's not like this ?
>>
>>57920162
>do you allow substituting a character with '?' in your code?

No, since I read 'letter tiles' to mean 'tiles with letters on'.

However, I fully support a /g/-approved Enterprise Quality solution in Java to meet this new spec. Also all those other things you said, we should definitely implement.

Does anyone here know Java? All I can write is hilariously terse Haskell.

>>57920232
Actually I remember now, it was "don't feed the trolls".
>>
>>57920212
https://en.wikipedia.org/wiki/Hill_equation

Which one?
>>
>>57920218
Qt docs says that Qt supports XP
>>
>>57920256
you can't do that dynamicaly without allocating, so the data is stored as part of the program in fixed memory location, which means that string will be cont
>>
>>57920256
String literals are statically allocated.
It would be closer to:
static const char _storage[] = "hello";
char *mystring = (char *)_storage;

Note the cast from const, because string literals in C are not modifiable.
>>
File: 1480891717684.jpg (386KB, 1534x2048px) Image search: [Google]
1480891717684.jpg
386KB, 1534x2048px
I'm in dire need of your help. I've been put in charge of maintaining the worst code base in existence gifted by our """senior""" developer.
The code base consists of two separate projects structured like this:
project
|
-- shared
|
-- sub project 1
|
-- sub project 2

The second project is a copy/paste from the first project with trivial changes. A project contains shared code and two sub projects. The second sub project is a copy/paste from the first sub project with trivial changes. The project defines the platform, the sub project defines the application.
The challenge is to keep the code synchronized while keeping the trivial changes. So, If I fixed a bug in project 1, sub project 1, I have to copy/paste it to while being wary of the trivial changes between projects and sub projects:
>project 1, sub project 2
>project 2, sub project 1
>project 2, sub project 2
Which is really error prone and a complete waste of my time. So, I'm looking for a way to automate this process if possible. I tried git patches, but git refused to apply the patch because it's not in the same code base. Are there any more options for me?
>>
{-# LANGUAGE MonadComprehensions #-}
import Control.Monad (foldM)
import Data.List (delete)
import Data.Maybe (isJust)
-- all of these should be in the prelude desu --

-- remove each character in word from tiles
-- return if it succeeded (or if it failed)

check tiles word = isJust (foldM remove tiles word)
where remove string char = [ delete char string | char `elem` string ]
-- you can think of the [ x | cond ] as being "throw an exception if cond is not true"
>>
>>57920285
Here's where I saw it. 4 or 5?

https://calibre-ebook.com/download_windows
>>
>>57920287
who does the allocation then ?
for example when you do :
char mystring[5];

the compiler does it for you

but when you declare it like this
char* mystring="hello";

it works, and no one did the allocation !
>>
>>57920332
>it works, and no one did the allocation!
As I said in >>57920289, it's statically allocated.
The data is embedded into the executable itself.
>>
>>57920289
static allocation means it's going to be on the stack, so does the compiler assume that it's going a big string and allocate a lot of memory for it ? this is not shrewd !
>>
>>57920332
that's the same as doing
char mystring = {'h','e','l','l','o',0x0};

so it's being allocated somewhere in the program.
If you are using linux you can compile a little example and call the application with `hexdump -C program` and check that the string is there
>>
>>57920308
5.5. I can actually run the app, but there is no sound and no network.
>>
>>57920305
>MonadComprehensions
>import foldM, delete, isJust
this is the raw code, explained:

check tiles word = isJust (foldM remove tiles word) 

was an exception thrown in the following code?
for each (char c in word)
- remove that char from tiles

remove string char = [ delete char string | char `elem` string ]

return string with the first occurence of char deleted ... if char is in the string
(otherwise throw an exception)
>>
>>57920360
>static allocation means it's going to be on the stack
That's completely wrong.
Statically allocated things are valid for the entire program, automatically allocated things (i.e. stack allocated) are only valid for the block they appear in.
Statically allocated things usually appear in the same place global variables would.
>>
>>57920356
>The data is embedded into the executable itself.
aah, got it, so it gets stored in the DATA memory segment.

thanks guys, i was really confused.
>>
>>57920259
It was the first bonus point question, and part of the reason why the consumeChar method was more complex than it could have been.
Java also have a funny bug in that char might sometimes need two chars to represent a singular character. That's what you get for using UCS-16 I guess. So you have to use 32-bit ints to be sure you're not fucking your program WHEN (not if) someone use the Mongolian fingerpainting alphabet.

For the next part, I want to basically load an English word list, and put it into a map from Integer -> Collection<String> so that I can start from the length of my letters, and find the longest word, and work my way down.
But it's late, I'm tired (we're moving offices now), so I'll look at it tomorrow.

As a BI Consultant, I find the thought of putting scrabble solutions into an OLAP-cube strangely funny. Especially since Big Data means Unstructured and/or semi-structured Data.
>>
File: memorylayout.png (33KB, 496x400px) Image search: [Google]
memorylayout.png
33KB, 496x400px
>>57920399
yes i just corrected myself, it will be on the DATA segment.
>>
Is there any advantage for me as a developer to using GPL over more permissive licenses?
>>
>>57920404
>>57920438
Just to be somewhat pedantic, but string literals are going be put in the rodata segment instead of the normal data segment.
>>
>>57920457
Yeah, closed source companies now have to pay you money to use your stuff.

> Hey your library is really useful.
> Thank you! I've spent weeks on getting it just right.
> Can you license it as MIT so we can use it in our closed source program?
> No. But I can sell you a license.

At this point one out of two things happen:
> FUCK YOU REEEEEEEEEEEEEE
- or -
> Sure, how much do you want for a license?
>>
what does the last expression produce?
tip:
>you should be able to solve this

(setf a 'global-a)
(defvar *b* 'global-b)

(defun fn () *b*)

(let ((a 'local-a)
(*b* 'local-b))
(list a *b* (fn) (symbol-value 'a) (symbol-value '*b*)))
>>
>>57920305
>all of these should be in the prelude desu
Hell no. There shouldn't be a prelude. It should be empty.

This is neat though. Just quadratic in complexity.
>>
File: .png (744KB, 986x832px) Image search: [Google]
.png
744KB, 986x832px
>mfw I teach my dude C by K&R

He definitely will get pointer magic, but I actually fear he might not use his skills since he lacks formal STEM education.
>>
>>57920457
Be a good schlomo and license your code under GPL and commercial.
>>
>>57920527
>using c in 2016
how is programming dvd's working out for you
>>
Trying to redirect to an object's action in rails.

I have a polymorphic class Invitable, all objects of this class have an action edit on their controllers, and none of them have a show action.

I can
 redirect_to @some_invitable 

It redirects me to the right unimplemented show page, how could I redirect to the edit action, therefore edit page?
>>
>>57920525
>there shouldn't be a prelude
t. crazy
>>
File: 1412168793368.gif (2MB, 400x225px) Image search: [Google]
1412168793368.gif
2MB, 400x225px
>>57919912
hey /dpt/
tell me what you love most about the jvm
>>
>>57920598
the cache misses
>>
>>57920598
The JVM is garbage.
It doesn't even have TCO.
>>
    public static int charCount(String f1, char ch1, boolean bool1) throws FileNotFoundException {
File file = new File(f1);
Scanner sc = new Scanner(file);
int charAccumulator = 0;
while (sc.hasNextLine()) {
String str = sc.nextLine();
for (int i = 0; i < str.length(); ++i) {
if (bool1 = true) {
if (str.charAt(i) == ch1) {
charAccumulator++;
}
}
if (bool1 = false) {
if (Character.toLowerCase(str.charAt(i)) == Character.toLowerCase(ch1))
charAccumulator++;
}
}
}

I'm retarded, why doesn't this work? It keeps returning the same number for both, when the case insensitive should be larger.
>>
>>57920513
This.

A guy I know developed some pretty useful GPL-licensed software during his PhD and ended up being getting loadsamoney for re-licensing it to a large company. He also got a great contract at said company and continued to work on that now-proprietary codebase.

There was supposedly quite a lot of REEEEEEEEing among academics he knew because half the field came to depend on a tool developed by a single PhD student and no one stepped in to continue maintaining a free version.
>>
>>57920639
>
public static int
>>
>>57920635
but anon why do you need that
you can solve all those problems iteratively
>>
>>57920598
the fact that I can eat curry with my friend in amrita university while listening the lectures of our dear Shafiq Khan Mohammad
>>
>>57920723
t. idiot gay white american millennial falseflagging hard
>>
>>57920598
Clojure.
>>
>>57920669
>>57920513
You literally have the same benefit with no license though.

It's permissive licenses which reject it, not GPL which adds it.
>>
>>57920736
mad?
>>
>>57920037
Checking for an empty intersection of two sets of (letter, count) pairs would probably be just as concise and not as embarrassingly inefficient.
>>
>>57920754
>using a /v/ meme
>>
>>57920765
>meme
>le returning from le reddit once again!
>>
>>57920765
>a word is a /v/ meme.

ok spajeety
>>
>>57920683
Not OP but why would the method being static or not matter in this case? I don't see any reason why it would, unless if I'm retarded as well
>>
>>57920527
>but I actually fear he might not use his skills since he lacks formal STEM education

It's not that, he will not use his skill because C is niche nowadays on the job market.

Unless he'd want to work with embedded systems and what not but in which case they're not gonna take some newcommer.
>>
>>57920683
My professor made a test for our methods that we have to use and when I delete static it gives me the error
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
Cannot make a static reference to the non-static method charCount(String, char, boolean) from the type Operations
Cannot make a static reference to the non-static method charCount(String, char, boolean) from the type Operations

at TestOperations.main(TestOperations.java:59)
>>
>>57920843
then the test is faulty
>>
>>57920037
using namespace std;

//This is a comment, it won't be part of the code:
//this is a program for determining if a group of 7 letters can be used to make a specific word.

string word{"whatever"};
string letters{"whatever"};

string blurf = letters;
for{auto c : word}
{
for{auto l : blurf}
{
if(*c==*l)
blurf.erase(l),
if(c==word.end()-1)
cout<<"It works! :D"<<endl;
break;
continue;
goto wereDone;
}
}
wereDone:


Rate?
>>
>>57920740
I was thinking to learn somehting to use with the jvm (but not java). I was between scala or clojure. How is clojure in your opinion? have you used scala? how they compare?
>>
Hey guys, I have an open-ended term project for a second year comp sci class. I need to make a project in java and the only requirement is that it is comprised of at least 4 class files. I'm clueless as to what to make. Any recommendations?
>>
File: later homo.jpg (10KB, 250x250px) Image search: [Google]
later homo.jpg
10KB, 250x250px
>>57920886
>using namespace std;
really?
>>
>>57920946
Enterprise fizzbuzz.
>>
>>57920946
Make a graphing calculator like desmos, but shittier, ofc
>>
>>57920949
this is truly the greatest /dpt/ meme of them all
>implying anyone ever encountered a problem because he used 2(!) std's
>>
>>57920946
just overcomplicate a simple process like addition.
>>
>>57920949

//This is a std::comment, it won't be part of the std::code:
//this is a std::program for std::determining if a std::group of 7 std::letters can be std::used to make a std::specific std::word.

std::string std::wordstd::{"whatever"};
std::string std::lettersstd::{std::"std::wstd::hstd::astd::tstd::estd::vstd::estd::rstd::"std::}std::;

std::string std::blurf std::= std::lettersstd::;
std::forstd::{std::auto std::c std::: std::wordstd::}
{
std::for{std::auto std::l std::: std::blurf}
{
std::if(*std::cstd::==std::*l)
std::blurf.std::erase(std::l),
std::ifstd::(std::cstd::==std::word.std::end()-std::1)
std::cout<<std::"It works! :D"<<std::endl;
std::break;
std::continue;
std::goto std::wereDone;
}
}
std::wereDone: std::


fuck off
>>
>>57920992
>/dpt/ meme
Many mainstream coding standards (e.g. Google's) explicitly forbid it.

It defeats the entire point of namespaces, lowers readability, and is a common source of bugs and unexpected behaviour.
>>
>>57921025
I vote this. See section 2.2:
http://research.microsoft.com/en-us/um/people/simonpj/papers/assoc-types/fun-with-type-funs/typefun.pdf
>>
>>57921040
>caring what SJeWgle has to say

lmao
>>
>>57920992

std::whats std::your std::problem
>>
>>57921040
>>57921036
man that's so readable
now you can start working for google
>>
File: .png (104KB, 320x287px) Image search: [Google]
.png
104KB, 320x287px
>>57920559
>unironic greentexting
I don't want him to be like that dumbfuck who said crap like "Python 3 is not Turing-complete language", I want him to know how do computers operate, so they wouldn't be big grey howling boxes for him, but powerful machines, what can give the most, if needed.

>>57920802
Yes, that's kind of what I mean.
Embedded engineers least possibly will take a guy without STEM education.
We just started with him, though, maybe he'll say "Fuck that shit", and will drop learning C. On the other hand, his alternatives aren't better - hell, he's a historian.
>>
>>57920992
>std::meme
>I got tired of le reddit, better to shitpost in le 4chan
>>
>>57921068
never been to reddit, my shitposting is 100% good old 4chan
>>
>>57921065
Python 3 can't run Python 2 code. If it were Turing complete, it would be able to perform arbitrary computation. Since it can't, it isn't.
>>
>>57920949
Sexually Transmitted Disease?
>>
>>57921082
Good meme, my fellow
>>
>>57921036
>//
this should be
std://
>>
>>57921082
this is another /dpt/ meme I love so much

keep dem memes coming brehs
>>
>>57921093
If Zed Shaw said it, it must be true.
>>
Why don't you protect your libraries from sepples fags by putting header files full of C that won't compile with C++ compiler.
>>
>>57921102
literally who the fuck
>>
>>57921088
You can avoid all those pesky STDs with this simple code

#define condom namespace std
using condom;
>>
File: 1472024041354.jpg (342KB, 978x1390px) Image search: [Google]
1472024041354.jpg
342KB, 978x1390px
>>57921115
>doesn't know who ZAS is
No wonder you're still using python3.
>>
>>57921109
why would anyone use a header from you lowlife
>>
>>57921064
>>57921050
>>57921036
>>57920886
You people do know you can and should scope using, right? I can respect someone having a block like:

using ::std::endl;
if (success) {
using ::std::cout;
cout << "success" << endl;
// other shit including cout
} else {
using ::std::cerr;
cerr << "failure" << endl;
// other shit including cerr
}


But just putting a "using namespace std;" in the global namespace marks you as a drooling retard.
>>
>>57921117
saved
>>
>>57921216
>But just putting a "using namespace std;" in the global namespace marks you as a drooling retard.
Why?
>>
>>57921243
because he has severe autism
>>
>>57921243
Because you're putting the entire C++ standard library in the global namespace.
>>
>>57921301
What's wrong with having a standard library in the global namespace?
>>
This is Haskell code.

main =
C.strelkaServer 3000 (return . Right . runIdentity) route
where
route =
A.consumeSegmentIfIs "hi" *> hi <|>
A.consumeSegmentIfIs "bye" *> bye <|>
notFound
where
hi =
A.ensureThatAcceptsHTML *> html <|>
text
where
html =
pure (B.html "<h1>Hello world</h1>")
text =
pure (B.text "Hello world")
bye =
A.ensureThatAcceptsHTML *> html <|>
text
where
html =
pure (B.html "<h1>Goodbye world</h1>")
text =
pure (B.text "Goodbye world")
notFound =
pure (B.notFoundStatus <> B.text "Nothing's found")
>>
>>57921337
sepples fags have the need to implement the whole standard library by themselves for every project.
>>
>>57921370
xd
>>
>>57921337
Name collisions.
>>
>>57921367
>strelka
wut
>>
>>57921408
https://github.com/nikita-volkov/strelka
>>
>>57921387
I doubt your code will ever collide with the naming of the standard library.
>>
>>57921367
>>57921420
withHTML a = A.ensureThatAcceptsHTML *> a
htmlHead s = (pure . B.html . concat) ["<h1>", s, "</h1>"]
text = pure . B.text

main =
C.strelkaServer 3000 (return . Right . runIdentity) route
where
route =
A.consumeSegmentIfIs "hi" *> hi <|>
A.consumeSegmentIfIs "bye" *> bye <|>
notFound

hi = withHTML (htmlHead "Hello world" <|> text "Hello world")
bye = withHTML (htmlHead "Goodbye world" <|> text "Goodbye world")
notFound = pure (B.notFoundStatus <> B.text "Nothing's found")

>>
>>57921387
>>57921421
that's why it's a fucking meme
god
Why would I ever feel the need to define a function cout

fucking disgusting pigs
stop writing programms please
>>
>>57921421
Ah yes, it's a safe bet that neither you nor anyone else ever using your code will want to name something the way one of the most expansive libraries out there names something.

Of course it might be a safe bet if you are only doing toy projects for yourself.

(It's one of the most common sources of errors for a reason, namespaces were introduced specifically to fight these problems)
>>
File: k&r.jpg (475KB, 852x973px) Image search: [Google]
k&r.jpg
475KB, 852x973px
Wrote my first API wrapper at work recently, I'd like to make one for a personal project and put it on Github.

I was thinking of doing a python wrapper for 4chan's API, but that might create a bad impression on employers.

What API should I build it for? Any suggestions for something reasonably innocuous but useful?
>>
>>57921506
>Why would I ever feel the need to define a function cout

You aren't just adding cout to the global namespace, you are adding THE ENTIRE STANDARD LIBRARY. There's no problem if you knowingly use the one thing you need to use.

"Indiscriminately include everything until my code works" is a literal Pajeet strategy.
>>
>>57921540
make a python script to scrap all gelboruu pics by tags and sort them correctly in folder
>>
why would you ever use any namespace but std
>>
>>57921617
*boost
>>
File: nani128.jpg (46KB, 600x600px) Image search: [Google]
nani128.jpg
46KB, 600x600px
Hi, I'm still stuck on AoC Day 9 pt 2 from last night.

The answer is slightly too high, but I feel like I'm close.
I'm not good with recursive functions.

size_t decompress_v2(char *arr, size_t len)
{
size_t length = 0;
char save = arr[len];
arr[len] = '\0'; /* prevent runaways */
unsigned i, j;
for (i = 0; i < len;)
{
/* find length up to first marker */
char *next = strstr(&arr[i], "(");
i = (!next) ? strlen(arr) : (size_t) (next - arr);
if (!arr[i])
{
length += i;
break;
}

/* get size of next expansion */
unsigned dist, iters;
sscanf(&arr[i], "(%ux%u)", &dist, &iters);
for (j = 0; arr[i + j] != ')'; j++);
j += 1; /* ehh */
size_t sublen = decompress_v2(&arr[i + j], dist);
length += sublen * iters;
i += j + dist;
}
arr[len] = save;
return length;
}
>>
spotted in our legacy ERP

they just hired any fucking retard to write software in the 80's didn't they?
>>
>>57921670
>they just hired any fucking retard to write software in the 80's didn't they?
some things never change
>>
>>57921543
>the one thing you need to use
yeah well what if I have to use a lot more than one thing you dumb nigger

if I'm using, a hundred different functions from the standard library in my project, I'm not going to using::std:: all that shit, fuck off
>>
>>57921680
Then put it in the scope where you use it instead of the global scope you fucking biscuit.

Do you make all your variables global too?
>>
>what if you write your own library, bro
fuck off, when am I ever going to write my own library
literally never had to write my own library for something. std does enough shit and assembly can cover the rest. why reinvent the std::wheel

>what if you have to include something from another namespace
fuck off, when am I ever going to do that
there's really only one non-std namespace worth mentioning at all, and that's boost
and I don't use boost, never have.
literally never found a reason to use boost to do something. literally never found a thing I couldn't just do with std or through assembly. if I pass my project over to some other fag who's
using namespace boost;
, then they can just read the comment at the top of my project that reads
//does not support boost. boost fags get fucked
>>
>>57921796
t. Pajeet
nigger if you never use any libs you clearly never worked for a company worth mentioning
>>
>>57921847
Pajeet has a job and uses ALL THE LIBS

that guy just writes toy projects for himself
>>
>>57921862
It's okay m8, don't be sad
>>
>>57920037
string = 'pomf'
letters = 'pomfopy'

lettersList = list(letters)
canPrint = True
for i in range(len(string)):
if string[i] in lettersList:
lettersList.pop(i)
else:
canPrint = False
break

print canPrint


I feel like there should be a more elegant solution
>>
File: 1476733924880.jpg (45KB, 736x492px) Image search: [Google]
1476733924880.jpg
45KB, 736x492px
>>57921888
There is, but it involves O(2 ^ n * n!) time (apparently).
>>
>>57919912

I'm trying to wrap my head around currying and Emacs/Common Lisp.
Isn't
;; CLISP
(defun cplus (x)
(eval `(lambda (y) (+ ,x y)))
)

;;ELisp
(defun cplus (x)
`(lambda (y) (+ ,x y))
)

a valid way of currying in either language? ...Well admittedly it bypasses type checking completely. Not really elegant, huh.
It's also kinda funny how I haven't noticed until now that elisp does not require an additional eval.
>>
>>57921939
That's partial application, not currying, and you don't need macros to do it.
>>
It's not possible to create a Win32 window class without giving it a name, is it? Having to name it is just begging for a potential name collision, even though the name is actually unnecessary.
>>
>>57921961
Why would you want an unnamed class? How would you call the methods inside?
>>
>>57922017
A Win32 class
>>
>>57922017
Wrong kind of class.
>>
File: kjh.png (5KB, 205x246px) Image search: [Google]
kjh.png
5KB, 205x246px
Really is a comfy feel when you see people using something you made.
>>
>>57922041
Yeah I like when people get cancer and die too
>>
>>57921910

What time does mine run on?

O(n^2)?
>>
>>57922025
Oh ok I don't know about those
>>
>>57922041
Yeah it used to feel nice, over a decade ago I was writing mods for an online game, it was such a great feel to see major servers make use of your mods but then I had a swarm of people complaining and insulting me because they were too stupid to read the instructions so I quit the community altogether, fuck these ungrateful cunts.
>>
>>57921888
can you do something like:
canPrint =
not string.unique().exists(lambda c: letters.count(lambda c2: c2 == c) < string.count(lambda c2: c2 == c))


or something...

I probably fucked this up anyways.
>>
>>57922133
I'm not a python fag btw, so my syntax is probably all wrong
>>
File: 1473023405335.png (97KB, 375x360px) Image search: [Google]
1473023405335.png
97KB, 375x360px
>>57921954
wait. Is it? I mean partial application takes a function F(x,y,z) and returns f(y,z) = F(a,y,z) while currying returns a function g(x) that returns a function h(y) that returns a function f(z) = F(x,y,z).
So for a two-variable function F(x,y) partial application returns a function f(y) = F(a,y) while currying returns a function g(x) returning f(y) = F(x,y). Okay never mind I'm retarded it's just partial application for which apply-partially exists. But wouldn't a proper curry just return a function that is equivalent to cplus? In other words, in the special case of two variables, isn't the only difference that the curried form returns a partially applied function, making it just another function call layer?
>>
>>57920119
that's literally the truth though
plenty of problems are small enough to not care about the algorithmic complexity

C: because we care more about speed than getting it right the first time around
>>
>>57922041
>Really is a comfy feel when you see people using your botnet.
>>
>>57922074
Looks like O(n * m).

Note that this is the first time I've tried to evaluate a program's performance in big O. Haskell liberates you from petty concerns like factorial time complexity.
>>
>>57922191
I'd be more concerned that you're using eval and pals without good cause.
>>
>>57922126
Sounds like you had a problem making your mods user friendly desu.
>>
>>57920524
the result of the expression surprises me

(let ((a 'local-a)
(*b* 'local-b))
(list a *b* (fn) (symbol-value 'a) (symbol-value '*b*)))
(LOCAL-A LOCAL-B LOCAL-B GLOBAL-A LOCAL-B)

I guessed that it would be
(local-a local-b global-b local-a local-b)

for the first global-b, it's because the *b* in fn should be lexically bound to the global variable, not dynamically bound, unless global variables are dynamically bound in common lisp by default?? i thought you had to use *special* declarations for that.

the last two i have no clue about, you'd think they would be consistent but aren't.
>>
>>57920684
what problems?
>>
>>57921036
you made me spit on my monitor at work
>>
>>57921216
>using
>using
>using
>using
>using
>>
>>57922233
I wouldn't in real code, honestly. I play with eval when making short toy code for thought experiments, like I do with every last dirty hack I can think of.
>>
>>57921139
I bought his C book, did I make a mistake?
>>
>>57922382
See the Pajeet recoiling in fear from the very concept of scoping.
>>
>>57922405
I don't really care.

>>57922424
See above.
>>
>>57922289
> read docs
> defparameter and defvar are special by default
oh fuck i'm retarded, you wouldn't have to use a special variable to override that binding though?
>>
>>57922133

Possibly? I never really delve to deeply into lambdas unless I'm using them for maps and filters.
>>
>>57920037

Ruby ftw

l = 'bgimr8/ '
w = 'gr8 b8 m8 i r8 8/8'

p w.chars.select{ |i| l.index(i).nil? }.empty? ? "yes" : "no"
>>
i'm trying to make an application that'll automatically retrieve the arena rating from this page https://shadowverse.gamepress.gg/card/alwidas-command (and the pages for any other cards). how do i do this? in the game there's a system where you get to pick between cards, and i want to be able to make it easier to look up which card you should pick. instead of entering them all into the website one by one and looking for the rating, you just enter them all into the application and it tells you which ones are the strongest
>>
>>57922572

Oh well, I just realized the other way around it's shorter:

l = 'bgimr8/ '
w = 'gr8 b8 m8 i r8 8/8'

p w.chars.reject{|i| l.index(i)}.empty?? "yes": "no"
>>
>>57922619
see if that website has an api, or use an HTML parser?
>>
File: wash.jpg (56KB, 342x588px)
wash.jpg
56KB, 342x588px
>>57922619
Parse it with regex.
>>
>>57922619
Use the card page that has all the cards then just parse the table into an applicable form?
>>
What's the easiest object file format to read as triangles?
>>
>>57922441
And I didn't care for your unrelated opinion. Yet you decided to bless me with that. Guess we're even.
>>
>>57922708
How the fuck does someone get stuck in this?
>>
File: kermit.jpg (15KB, 174x167px) Image search: [Google]
kermit.jpg
15KB, 174x167px
I've been learning programming with C and C++ and just came across the concept of fixed width integers.

Is there any reason I shouldn't use fixed width integers everywhere? Or am I just being retarded?
>>
>>57922727
Very clumsily.
>>
>>57922246
Nah you underestimate how retarded people are.
>>
>>57922722
I don't know which one of the people I replied to you are, but luckily... I don't care.
>>
>>57922727

Apparently he was trying to parse HTML with a RegEx.
>>
>>57922727
Maybe he got "accident ed".
>>
>>57922752
You should generally use them everywhere.

The reason you don't see them used everywhere is that they were only added to the standard relatively recently (C99).
>>
>>57922776
I lol'd harder than I should
>>
>>57922776
That was the implication I was going for tbqh,
>>
>>57922797

I thought so..
>>
>>57921877
>>57921847
t. samefagging idiot white millennial neo-nazi SJW typical /g/ faggot, no muscle mass, weighs 70 pounds soaking wet, has bitch tits
>>
>>57922871
>>>/pol/
>>
>>57922427
see the gay idiot underage pasty whiteboy nazi SJW faggot shitposting in fear
>>
>>57922898
>>>/pol/
>>
When is Alex Jones gonna call bullshit on Haskell?
>>
>>57920583
>Oh this is convenient, let's put it in the prelude
- Someone in 1991

>*** Exception: Prelude.head: empty list
- Haskell programs in 2016 because Prelude is now full of decade old unsafe legacy bullshit
>>
>>57920294
Just use sed, you silly.
>>
>>57923016
>there shouldn't be a prelude
>prelude should be good
pick one
>>
>>57923028
I pick "there shouldn't be a prelude" you fucking clown.

You should have to import everything you use explicitly.
>>
pseudo apt-get main
>>
Can someone explain what's going on here?

Using C, if I initialize a character array to all zeros and then go to print it, nothing shows up. It's been really handy so far, but I don't get why it's happening.
>>
>>57923051
... those two aren't mutually exclusive
>>
>>
>>57923112
0 is a string terminator
it's printing an empty string so nothing shows up
>>
>>57923123
very nice
>>
>>57922708
>>57922715
found the page with all of them and thanks, i guess i'll use regex

i'm thinking of trying to do it in haskell for the luls
>>
>>57923152
if you do it in haskell use a parser monad or applicative functor
>>
>>57923183
or one of the things dedicated to html
>>
>>57923016
Use ClassyPrelude. Full of overloaded goodies and no partials.
>>
who destroys the destructor?
>>
fastest way to compare if a list has the same elements in common lisp?
>>
>>57923410
https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node74.html

That explains just about everything.
>>
>>57923283
holy shit this is bloated

imagine compiling Hello World with this
>>
>>57923505
Yeah, it's meant for Enterprise Quality (TM) software, not toys.
>>
>>57919959
>>
>>57920037
Couldn't figure out a good way to get rid of the lambda. For all the unique letters in word we make sure letters has at least as many of them as word.
and . map (\c -> (count c letters) >= (count c word)) $ nub word
>>
>>57921655
I can't wrap my head around part two.
>>
>>57923618
Verrah nice.

>Couldn't figure out a good way to get rid of the lambda.
and . map herp $ nub word
where herp c = count c letters >= count c word


Since I doubt that's what you actually meant, try this:
and $ map derp $ nub word
where derp = flip count letters &&& flip count word >>> uncurry (>=)
>>
>>57923724
I actually got it, just one small mistake.
>>
any better way of doing this?
maybe a lambda?

# generate a random word of len 6 (e.g. #aabchg)
def random_word():
chars = 'abcdefghcfg'
word = '#'
for i in range(6):
word += chars[r(len(chars)-1)]
return word
>>
>>57923969
Forget lambdas, use arrows.
>>
>>57920245
whatever lang that is, it calls printf at some point.
>>
>>57920379
It's not the same as that. That is on the stack and mutable.
*mystring = "hello";
is not mutable.
>>
Completely new to java, (already know a bit of c++, HTML, javascript, CSS, sql)
Just installed eclipse...
what the fuck are these files and what the fuck do i do?
>>
>>57923969
>random
>>
>>57924072
Stop learning Java, it's useless.

Javascript + Python + Lisp are the tools you'll ever need till humanity ends.
>>
>>57923969
random_word = lambda: [chars[r(len(chars)-1)] for i in range(6)]


Use a list comprehension. I even put a lambda in it, just for you.
>>
>>57924091
yeah shit i forgot to say that r = random.randrange

so do you have any idea?
>>
>>57924094
You need something close to the metal, too.

I'd also argue that the use cases for Python and Lisp overlap too much.

How about Racket and C?

>>57924103
I figured that out, and left it as 'r' in my version, too.
>>
>>57924094
All those langugaes should be thrown into the sun.

Only statically typed langugaes are worth learning.
>>
>>57924094
>Javascript + Python + Lisp
Are you for real?
>>
File: 15dbbd3c9d490ff07236ef80a611ea9e.png (47KB, 1158x1004px) Image search: [Google]
15dbbd3c9d490ff07236ef80a611ea9e.png
47KB, 1158x1004px
>>57919912
I went to school late so I just finished my first semester of college at 24 years old. I took a logic class that used psuedocode and visual logic to teach logic and programming fundamentals. I also have a strong background of cs/it knowledge because computers have been my only hobby since I was 13.
I want to go back through my logic book and apply the exercises and lessons to a real language. I was thinking maybe Python.
Which language do you guys think I should do it in? I really want to at least try and be productive for this month of free time that I have.

pic related is of some of the psuedocode. I despise it because the teacher is so strict with the "conventions" that the book establishes that it would be easier if we just used a real language.
>>
>>57924111
your version returns a list of words

you need to put
random_word = lambda: ''.join([chars[r(len(chars)-1)] for i in range(6)])
>>
>>57924094
learning java for a class, im sticking with C++ personally.
fuck off pypleb
>>
>>57924135
Oh yeah, thanks. I'm still in Haskell mode; Strings are lists of Chars.
>>
>>57923969
import random
def random_word(length=6):
chars = 'abcdefghcfg'
return ''.join(random.choice(chars) for _ in range(length))
>>
>>57924133
F#
>>
>>57924135
can't you do that with a list comprehension instead of that silly lambda?
>>
>>57924182
>F#
You wouldn't be pulling my leg would ya guy
>>
>>57924183
He wanted a lambda, he got a lambda.

>>57924135
I'm pretty sure that `len(chars)-1` is a mistake.

random.choice is more sane: >>57924172
>>
>>57924183
That's a list comprehension AND a lambda. Why 'instead of'? They serve different purposes.
>>
>>57924133
What is the addon's "you would like or 'quit' to finish your order:"? What's a "you would like or 'quit' to finish your order:"?
>>
>>57924194
'no'
Because F# is a real language.
>>
ok, so I have a list of bools
but I can't
apply #'or
, because its a macro, I think
so, how do I do?
>>
>>57924293
Use fexprs.
>>
File: 1468327658068.png (409KB, 487x594px)
1468327658068.png
409KB, 487x594px
>>57924231
It's just a string. There is a list of 5 items in a text file, and another list of 5 prices in another text file. They get put into parallel arrays. If the user enters one of the items it gets added to the total cost of the coffee, if they enter quit the program stops. Keep in mind that image is just an example of the pseudocode used in the class I took.
The exact question was:

The Jumpin' Jive coffee shop charges $2.00 for a cup of coffee, and offers the add-ins shown in table 6-3.
name - price
whipped cream - .89
cinnamon - .25
chocolate sauce - .59
amaretto - 1.50
irish whiskey - 1.75
Design the logic for an application that allows a user to enter ordered addins continuously until a sentinel value is entered. After each item ,display its price or the message "Sorry, we do not carry that" as output. After all items have been entered, display the total price for the order.
>>
>>57919912
I hadn't thought about it before but is this a spoof on those pregnancy test pictures /a/ used to make?
>>
File: IMG_20161209_180816701.jpg (2MB, 4160x2340px) Image search: [Google]
IMG_20161209_180816701.jpg
2MB, 4160x2340px
I need help with my pajeet code =/
[CODE]
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class squareOfAsterisks extends JApplet implements ActionListener {
JButton go = new JButton("GO");
FlowLayout flow = new FlowLayout();
int side;
JLabel ask = new JLabel("Enter the sides:");
JTextField enter = new JTextField(5);
Boolean x = false;
@Override
public void init(){
Container con = getContentPane();
con.setLayout(flow);
con.add(ask);
con.add(enter);
con.add(go);
go.addActionListener(this);

}

@Override
public void actionPerformed(ActionEvent e){
Object source = e.getSource();

if (source == go){
side = Integer.parseInt(enter.getText());
x = true;
}
}
@Override
public void paint(Graphics g){
super.paint(g);

if(x = true){
for(int y =0; y<6;y++){
g.drawString(" * ", y, 10);
}
}
}
}

[/CODE]

Im supposed to use the paint method to draw the square what do
>>
>>57924328
obviously
>>
>>57924301
they don't exist in common lisp
>>
>>57924332
squareOfAsterisks i = putStr $ unlines $ replicate i $ unwords $ replicate i "*"
>>
>>57924340
Well I'm not a meme expert. I can't recognise these things quickly.
>>
>>57924332
>Can't even use code tags properly

Now that's just sad
>>
>>57924364
Implement fexprs.

>>57924367
You did well, bra. I had no idea it was a pregnancy test meme spoof. I've never even seen an /a/ preggo test meme.
>>
>>57924332
D E P R E C A T E D
>>57924365
>inb4 scheme fag with his "puzzle oriented" comments
>>
>>57924381
is there any other way to apply a macro to a list?
>>
whats verdict on rust?
>>
>>57924379
>>57924365
>>57924386
Some one halp plz no bully
its the only assignment i havent been able to do on my own, the final day of class is tommorow, i hate the paint methoid bullshit
>>
>>57924393
Not being a lisper, I'd say you could use an imperative loop.

Macros not being first class was the first thing that annoyed me about Racket.
>>
>>57924406
That was a working one-liner to spec, what's 'bully' about that?

If your professor complains that it's in Haskell, remind him that you have passed beyond the plane of lowly imperative language and will never again concern yourself with petty foibles such as pervasive factorial time complexity.
>>
>>57924407
wtf, lisp is supposed to be a god language
>>
>>57924439
Inorite. I RRREEEEEE'd hard first time I tried to map a macro over a list.
>>
>>57924406
post code with tags, faggot, and then we'll help you
>>
>>57924406
nigger this shit is ease as fuck, if you can't do it you should drop out now
>>
What's with this meme of making a short haskell version of code posted in here?
>>
>>57924332
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class squareOfAsterisks extends JApplet implements ActionListener {
JButton go = new JButton("GO");
FlowLayout flow = new FlowLayout();
int side;
JLabel ask = new JLabel("Enter the sides:");
JTextField enter = new JTextField(5);
Boolean x = false;
@Override
public void init(){
Container con = getContentPane();
con.setLayout(flow);
con.add(ask);
con.add(enter);
con.add(go);
go.addActionListener(this);

}

@Override
public void actionPerformed(ActionEvent e){
Object source = e.getSource();

if (source == go){
side = Integer.parseInt(enter.getText());
x = true;
}
}
@Override
public void paint(Graphics g){
super.paint(g);

if(x = true){
for(int y =0; y<6;y++){
g.drawString(" * ", y, 10);
}
}
}
}



what the fuck

in Sepples this is just
#include <iostream>

int squareOfAsterisks(int side)
{
using namespace std;
for (int row = 0; row < side; row++)
{
for (int column = 0; column < side; column++)
{
cout << '*';
}
cout << endl;
}
cout << endl;
cin.get();
cin.get();
return 0;
}
>>
File: 1480457717309.png (426KB, 675x675px) Image search: [Google]
1480457717309.png
426KB, 675x675px
>>57924471
>cin.get();
>cin.get();
>>
>>57924488
sorry about that
I fixed it :^)
#include <iostream>

int squareOfAsterisks(int side)
{
using namespace std;
for (int row = 0; row < side; row++)
{
for (int column = 0; column < side; column++)
{
cout << '*';
}
cout << endl;
}
cout << endl;
system("pause")
return 0;
}
>>
>>57924464
It's my day off.

Plus it bugs me when people shit out like forty lines of needlessly fugly code for trivial problems.
>>
>>57924449
>lisp is supposed to be a god-tier family of langs
>can't do anything other than macro application
but it kind of makes sense, since macros are just ccode expansion
>>
>>57924513
can you do a triangle fill in Haskell?
>>
>>57924500
not portable
>>
>>57924449
Its ok, found a hack.
Just do remove-if #'not
>>
File: 1474219795830.jpg (5KB, 225x224px) Image search: [Google]
1474219795830.jpg
5KB, 225x224px
>>57924500
>>
>>57924535
#likeigiveafuckyounerd
>>
>>57924535
lmao who cares about mac or loonix fags
>>
Quick, what's a project that could get me into one of those silicon valley meme companies?
My friend got into one and he's pretty incompetent but it's too late for me to get in now, so I'm hoping for next year.
Anyway, what technologies do I need to use to catch the eye of a recruiter at a meme company?
>>
File: WhatWasBest.png (7KB, 158x160px) Image search: [Google]
WhatWasBest.png
7KB, 158x160px
How do I start creating an add-on for Firefox/Chrome?
>>
>>57924525
Yup. Never tried, though.
I'd probably only write one if someone posted a 'please kill me, it hurts to live' version in C# or similar.

>>57924521
RRREEEEEEEE

>>57924550
Lisp-2s always bugged me, too.
>>
>>57924579
Imma start doing posting haskell versions everytime someone does code in any other lang, just to prove that haskell is superior.
>>
>>57924571
Ask Firefox/Chromes documentation on that.
>>
>>57924597
I'm scared to go down the rabbit hole
>>
>>57924596
It'll get boring if we both use Haskell. How about Prolog or something?
>>
> c++'s use feature is considered bad practice
Really makes me think.
>>
>>57924608
Don't know that one, what tier is it in?
>>
>>57924569
why do you want to get into a meme company

why not work for someone you actually want to support
>>
File: 1476510780149.jpg (68KB, 583x651px) Image search: [Google]
1476510780149.jpg
68KB, 583x651px
>>57924623
LOGIC TIER
>>
>>57924624
because $5-10k a month is bretty good.
>>
>>57924579
>RRREEEEEEEE
>>>/pol/
>>
>>57924660
*for a summer internship for a college student
>>
>>57924663
What's /pol/ about autism rage?
>>
std::using std::using;
using std::;
using std::namespace;
using std::std;
using namespace std;

using std::int;
using std::main;
using std::{
using std::}
int main()
{
using std::cout;
using std::endl;
using std::<<
using std::"
cout << "Hello World" << endl;
}
>>
>>57924500
Does that put spaces between the asterisks?
>>
>>57924660
>I would contribute to selling this whole world out to the neoliberal SJW millennial kikes, just for another dime in my pocket

bad
>>
>>57924681
>he forgot the std:: before the first semicolon
you failed
>>
>>57924721
fug :DD
i'm not good at sepples
>>
>>57924715
I mean the defense contractors pay about a third of what the meme companies pay.
>>
>>57924637
Official language tier list:

>mine's shorter than yours tier
Haskell, Perl, APL

>lysergic acid colonic tier
Prolog, Coq, Joy

>gotta go fast tier
C, Assembly, Forth

>I'm a real programmer now, daddy! tier
Python, Ruby

>pajeet tier
Java, C#

>please kill me, it hurts to live tier
JavaScript, C++

>PHP tier
PHP
>>
>>57924757
if you really cared about what you were doing, you'd take it
>>
if err != nil

Is Go a meme?
>>
>>57924500
In F# this is just

open System

let squareOfAsterisks side =
for row = 1 to side do
for column = 1 to side do
Console.Write("*")
Console.Write("\n")
Console.Write("\n")

let side:int = 4
squareOfAsterisks side
>>
>>57924702
No, but you can make it put spaces by doing this

int squareOfAsterisks(int side)
{
for (int row = 0; row < side; row++)
{
for (int column = 0; column < side; column++)
{
cout << '*' << ' ';
}
cout << endl;
}
cout << endl;
return 0;
}
>>
>>57924789
I hate defense, I did last summer. I'm not an sjw faggot but those guys are *plane* retarded.
>Hooray, we met the requirements, finally
>>>because we negotiated them down yesterday because we can't do what we say we can

Google sounds nicer.
>>
>>57924832
But that leaves a trailing space after the last asterisk in a line...
>>
File: 1474219799870.jpg (59KB, 896x921px) Image search: [Google]
1474219799870.jpg
59KB, 896x921px
>>57924832
> '*' << " ";

wtf
>>
>>57924834
>>57924789
Also, I agree with you entirely, if I knew what I was passionate for in this field and there was an opportunity or a place to work that does it, I'd take if for even less than the defense guys give.
>>
>>57924786
Does anyone ITT actually use Coq?
>>
>>57924834
>*plane* retarded
I see what you did their.
>>
>>57924551
>>57924488
>>57924843
Baka baka baka baka baka baka baka baka baka
>>
>>57924619
It's a poorly planned and executed language.
>>
>>57924858
Only when they want to trip balls.
>>
>>57924796
Yes
If Google wasn't backing it, nobody would use it at all
Its main purpose is to let google hire shitty programmers
>>
File: 1480825427081.jpg (83KB, 788x685px)
1480825427081.jpg
83KB, 788x685px
>>57924875
all me
>>
>>57924786
>tfw writing C in a C++ environment and you get a C++ programmer on the team
Time to contemplate how moral murder is.
>>
>>57924906
Does it have any differences from C other than GC and goroutines?

It seems like a language with very few new ideas.
>>
>>57924910
I think it's referred to as 'euthanasia' under those circumstances.
>>
>>57924912
No pointer arithmetic and safe array prevent buffer overflow exploits

There are also channels, for communication between goroutines which are admittedly elegant in my opinion.
>>
File: 1474407773153.jpg (41KB, 446x337px)
1474407773153.jpg
41KB, 446x337px
>>57924834
>I'm not an sjw faggot
>Google sounds nicer
>>
>>57924910
What's wrong with C++ other than taking a decade to master fully?
>>
>>57924912
>It seems like a language with very few new ideas.
Shit son, it's barely got any OLD ideas in it either

Go is literally designed to prevent you from doing anything "too clever". That way you can easily be replaced because any moron can understand your code

Goroutines are the only good thing about the entire language
>>
>>57924971
The stuff they do and what they pay, benefits too. If you get your head past the politics, success is easier.
>>
>>57924962
Those sound like improvements, at least.

I just find it very depressing how unimaginative I perceive it to be.
I should probably learn more about it, though.

>>57924983
That sounds an awful lot like Java. Dull-edged tools for dull programmers.
>>
>>57924843
>>57924837
the user's not going to see the trailing space. it's completely invisible.
>>
>>57924996
>If you get your head past the politics, success is easier
so literally just
>I would contribute to selling this whole world out to the neoliberal SJW millennial kikes, just for another dime in my pocket
then
>>
NEW THREAD

>>57925010

>>57925010

>>57925010
>>
>>57924293
If you just have a list of bools.
(find t '(nil nil t nil))
Thread posts: 317
Thread images: 33


[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.