What are you working on, /g/?
Previous thread: >>61372924
>>61378912
first for sagiri a SHIT
elf best girl
Thank you for posting a cute anime girl.
>What are you working on, /g/?
I have to do online programming test for as part of a screening process for a job I applied for.
>>61378965
what kind of job, lad?
>>61378912
learning nim
>>61378912
Looking at GTK+ for C and what it offers.
>>61379032
is nim the only language that offers arbitrary modification of the AST with metaprogramming right now?
>>61378912
>>61379045
dumb sagiriposters
>>61378993
The job application was actually really vague, but it's supposed to be at some R&D centre.
>>61379045
>GTK+
GTK
FTFY
>>61379045
GTK is shit. Unfortunately, basically every GUI library is shit.
>>61379060
No, actually D has been doing it since forever
who here legit doesn't use google at all for their programming activities
>>61379095
Is there a search engine thats completely independent from Google?
using anything other than longs or doubles at the start of your project is premature optimisation
I have a compilation to android problem.
any android wizard here who can help me?
>>61379084
No, D doesn't allow arbitrary AST modification. Show me an example where you replace if statements with an opposite condition, only if a variable named ``retard'' is declared in the else block, and only if the variable retard is not assigned to 7.
>>61378912
>What are you working on, /g/?
I'm making a JS static analyzer.
I want it to be able to statically learn about control flow and data flow, kinda like IDA Pro does, but for Javascript.
I waste so much time on stupid mistakes that a proper compiler would catch in a real language, so I'm hoping to use the analyzer to replace a compiler.
Hopefully if I cache things properly it won't be too slow.
>>61379060
Lisp has been doing that for over 50 years.
>>61379095
why would you need a search engine for programming?
>>61379175
>kinda like IDA Pro does, but for Javascript.
my ``african american friend''. have a github i can follow so I can see when you have something ready? Have you considered adding dynamic analysis to provide comments in the static analysis, kind like funcap for ida?
>>61379193
Completely forgot about lisp for some reason. I absolutely love the homoiconicity concept, but unfortunately for my usual applications lisps lack the stuff I need (mostly just available libraries, performance and ``static typing'')
I whipped up a scaffolding script in an hour. It converts a js module into a file structure, replaces templated strings with stuff determined at runtime and offers event hooks before each file is created, before the file is filled, and after all that is done that can be used to run either js functions or shell scripts.
Unfortunately, the code still has to come from somewhere, so at this point I might have just made the file structure in the first place and let people change it by hand
best java ide?
>>61379169
Show me the nim example.
your wording is a little vague
>>61379257
>my ``african american friend''. have a github i can follow so I can see when you have something ready?
It's a bit early for that, I've been coding half-drunk non stop since yesterday, and I still haven't done a git init ..!
>Have you considered adding dynamic analysis to provide comments in the static analysis, kind like funcap for ida?
I'm not sure if I'll go that far, since I'm not really trying to do reverse engineering.
My goal is to have as much information as a compiler would have in a strongly typed language.
I have a small interpreter that statically tries to determine the value of objects, resolves imports/exports, and propagates Flow type annotations.
>>61379128
Size of an integer or floating type used is not really an optimization. It's typically a matter of correctness. Furthermore, the long data type should be almost never used, due to its inconsistency across platforms. One might think that it acts as a 32-bit type on 32-bit platforms and a 64-bit type on 64-bit platforms. But this does not happen at all on Windows, which makes up the lion's share of desktops. So it's a 32-bit integer on everything that's not a 64-bit Unix? If you need a 32-bit integer, use int or int32_t. If you need a 64-bit integer, use long long or int64_t. If you need an integer that is the size of a pointer, you probably want ptrdiff_t, or its unsigned variety, size_t.
>>61379032
stupid wojakposter
>>>/r9k/
>>61379195
Looking up documentation.
>>61379320
>I still haven't done a git init
I always, *always* regret that. commit that shit NOW
>>61379291
I don't know nim. I just know its features. It's in my 'to learn' stack.if whatever:
stuff
else:
retard = 5
becomesif !whatever:
stuff
else:
retard = 5if whatever:
stuff
else:
retard = 7
stays the sameif whatever:
stuff
else:
not_a_retard = 5
stays the same
>>61378912
I'm so fucking happy for anime picture.
Thanks for using anime picture!
>>61379420
good taste!
>>61379385
I dont know D well enough for that, but i see no reason why the fuck id want to do that anyway.
>>61379483
You'd want to do that because it's a very simple example that shows that D can do arbitrary AST modification, like you claimed in >>61379084
Seems you didn't get what I was talking about.
>>61379345
R-Rub..
..
S-Sensei... I am stuck on a problem. I have a f-file .. which contains 10 million unique 7 digit p-positive .... integer on each line. I-I need to sort this file using under 2 megabytes ...
...
PLEASE HELP ME SENSEI !!
>>61379509
I was not that anon.
>>61379514
https://en.wikipedia.org/wiki/External_sorting
>>61379517
Whoops, sorry. Have a pup.
>>61379535
I-It needs to be in r-ram otherwise ....
....
i-it is too slow.
>>61379514
>under 2 MB
If only there was a system call that could read and write exactly this much data from a file...
>>61379554
With memory requirements that strict, you have no fucking choice.
>>61379554
You obviously can't fit 70 million digits in 2 megabytes of ram.
are you enjoying roleplaying as an autistic anime girl?
>>61378912
halp, how do i program my little sister to sit on lap ?
i was trying to find SPI interface but i can't find it anywhere, or maybe i'm searching in a wrong place?
>>61379575
>>61379556
>>61379579
B-B ... BAKA! IT IS POSSIBLE I KNOW IT IS .... s-sor .. ry ....
>>61379575
>>61379579
What about memory mapped I/O? I have a hunch it can lead to a much better solution than temporary files.
The downside is proper error handling involves signals, which is pure shit.
>>61379619
you need to use the rest api:wget https://www.fbi.gov/submit-anonymous-tip
>>61379535
This right here.
>>61379554
You need a bare minimum of 24 bits (3 bytes) of data to store an arbitrary 7 digit number. To store all of your numbers, compressed, you would need 30 million bytes, or about 28.61 MiB. You clearly cannot store all of your numbers in memory at once, and therefore must use the filesystem.
>>61378912
Just started CS and loving it so far. I've always wanted to make a simple and ugly 3D game just for the hell of it and decided that I wanted to use LWJGL. Currently, the best stuff to be using seems to be LWJGL3, but most tutorials seem to revolve around older versions. Will these old tutorials still apply, or has the syntax changed enough where I will need to hunt down something specific to LWJGL3? If anyone has any other suggestions for 3D game graphics libraries for java besides LWJGL, I'd love to hear! Sorry for being the kid trying to make a game in this thread.
>>61379662
S-Sensei, I know that I can use less than 2MB!! ....
I-I will try and s-show you h-how I can sort...
...
`m-maybe sensei will n-notice me if I can solve the problem...`
>>61379662
Ahh ruby they're unique numbers, and there's 10 million of them which means every number from 0 to 9,999,999 is present just once.
>>61379662
How do you figure out how many decimal digits an N-bit number has?
>>61379554
How sorted is the data to begin with? Could you represent the number as very small deltas?
What range does it have? Can you normalize the data to save a bit of space?
How many duplicates are there? If there are many duplicates, you could first count the number of each unique number, then sort the unique array, then output for every number in the unique array however many occurrences you found in the first step.
>>61379662
So the solution isfor(int i = 0; i < 10000000; i++)
fprintf(file, "%i\n", i);
>>61379692
how about you use my dick slut
lets see you put on that angry face with my cock in pussy
filthy anime cumslut
>>61379704
log10(2^N)
>>61379642
i mean, i able to start console session. however REST is out of question, because "ifconfig" doesn't show any interfaces besides loopback
>>61379704
2 ^ 23 = 8,388,608
2 ^ 24 = 16,777,216
23 bits won't hold 10 million values.
24 bits will hold 10 million values.
>>61379694
>unique
Missed that part. In which case, you don't sort at all.
>>61379704
ceil(log10(1L << N))
this overflows and there is probably a better way using ``math'' and ``log identities'' but im a dumb hs dropout
>>61379842
>im a dumb hs dropout
but are you a millionaire yet?
>>61379805
Yeah. Solution is >>61379715
But that method you showed to measure needed bits triggers me.
Just do cieling(log2(max_number)), or if your calculator is shit, cieling(ln(max_number)/ln 2)
>>61379856
no, but i'm depressed, afraid of social contact and full of pills.
and i put 20k$ i made from btc mining years ago in an etf, so maybe i can make a couple of bucks in the coming decades.
>>61378912
I'm working on a program that will generate, render, and display scientific statistics of futuristic starships for an TTRPG I'm a part of. It assembles components together in 3d space and uses a machine learning algorithm to determine which components and arrangements are optimal for one of several intended prepared (transport, combat, scouting, etc.)
>>61380040
kek
>>61379122
yeah and it sucks, its called yahoo
Help me /g/. I need to use GLFW, as I want to learn how to use it. However I don't know an easier way to use 3rd party libraries. I'm using codelite ide, anyone wanna help with that?
>>61380146
>I need to use GLFW
why?
>>61380166
Or any third party library. That's the problem. I don't know how to properly utilize third party libraries.
I've spent the last hour trying to figure out what I'm doing wrong. I've copied the files properly, I've tried linking the files and the folder, yet its shitting out the same errors.
Please do not question the motive for why I need to use it, everyone who wants to learn C++ will eventually need to use thirdparty libraries. So I want to get into the business of using third party libraries.
>>61380185
why not openGL (simple) or SDL (harder) , Qt, SFML
what exactly are you trying to do?
>>61380185
Did you set compiller flags? ie
gcc main.c -lglfw -lGL -o bin
>>61380203
Not him but I prefer glfw over sfml.
>>61379864
>But that method you showed to measure needed bits triggers me.
Well it's really a bit of mental math anyways. I know 2^10 is roughly a thousand, 2^20 is roughly a million, 2^30 is roughly a billion, etc... Going from there, I know 3 more bits multiplies by 8, and 4 bits multiplies by 16. Since 10 is between 8 and 16, I round up and go with 4 bits. I could likely come up with the same method that you have, if I'm trying to do this for a bunch of numbers, but since I already knew the scale of numbers I'm dealing with off the top of my head, this was faster. My thought process goes, "it's on the scale of millions, so it's a little more than 20."
I'm learning bash for simple and personal automation. How do you go about organizing shell scripts? I have a file containing global variable declarations, another file to search the desktop for existing processes and their names/IDs, and a couple more that sources these two files to do some work.
>>61380185
SDL anon. Fuck GLFWsudo apt-get install libsdl2-dev libglew-dev
Include headers in this exact order:#include <GL/glew.h>
#include <GL/gl.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
And compile with-lSDL2 -lGL -lGLEW
what went wrong?
>>61380262
are russian programmer the best»?
>>61380254
>Fuck GLFW
Why? GLFW is fine.
It gets you a window with an opengl context. None of this SDL drawing crap that you might not need.
>>61380277
>russian
>>61380284
That's what SDL does too. You don't have to do the 2d drawing crap if you don't want to since OpenGL does that better. SDL is MIT, not LGPL too so just statically link if you don't want your users to have all the drawing crap on their computer.
>>61380215
I've added this, I'm doing something wrong with the linking. Its not finding the <GLFW/glfw3.h>
I have the include files in proper include folder, libglfw3.a in the library list.
>>61380254
I'm on windows too, either way, it main issue isn't GLFW, its how to setup third party libraries properly.
>>61380320
>You don't have to do the 2d drawing crap if you don't want to
So it's just useless library bloat.
>SDL is MIT, not LGPL
Oh, so you're a stupid BSD/micro cuck. Also, you should fucking learn the difference between the GPL and the LGPL.
>just statically link if you don't want your users to have all the drawing crap on their computer
What? That doesn't make any sense.
>>61380329
>I'm on windows too
I'm so sorry.
>>61380262
no seriously, what the fuck went wrong?
>>61380388
>>61380262
nothing. the program executed as written
>>61380401
so why the qwerty.png is still there?
>>61380413
-WhatIf
>>61380366
I know the difference idiot. You have to dynamically link against LGPL software if you're releasing proprietary software, whereas you simply cannot use GPL software.
And the 2d drawing crap isn't useless if you are interested in doing 2d drawing.
Honestly the only reason you'd care about there being some god forbid 2d drawing operations on there is if you were worried about the massive storage space of a handful of functions. So just statically link if you don't wanna distribute a couple extra functions. It's not hard.
>>61380423
oh ffs...this is so much like me. looking for some errors in the loops, syntax etc and missing the most obvious reason for it to not work as planned
>>61380423
anyway thanks for removing that massive brainfart bubble outta my head
>>61380375
Got it to work.
I was putting the include folder in the Linker options instead of in the Compiler options. Also had to make the library names into actual names instead of the full filepath names.
Glad I got this headache over with.
>>61380237
S-Sensei, I did it ... I-I did it! ...
p-please... notice .. me ... sensei ...
C-Can you t-teach me to be a better p-programmer ... n-n .. n-now?#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
enum {
NINT = 10000000
};
void add_bit(unsigned char a[], int n)
{
int aindex = n / CHAR_BIT;
char bitnum = n % CHAR_BIT;
char bitindex = 1;
while (bitnum--)
bitindex *= 2;
a[aindex] |= bitindex;
}
int get_bit(unsigned char a[], int n)
{
int aindex = n / CHAR_BIT;
char bitnum = n % CHAR_BIT;
char bitindex = 1;
while (bitnum--)
bitindex *= 2;
return a[aindex] & bitindex;
}
int main(int argc, char *argv[])
{
unsigned char *a = calloc(NINT / CHAR_BIT + 1, sizeof(char));
FILE *inf = fopen("genints.n", "r");
FILE *outf;
int fint, i;
printf("Fetching ints\n");
while (fscanf(inf, "%d", &fint) != EOF){
printf("%d\n", fint);
add_bit(a, fint);
}
fclose(inf);
printf("Storing ints\n");
outf = fopen("sorted.n", "w");
for (i = 0; i < NINT; i++)
if (get_bit(a, i)) {
printf("%d\n", i);
fprintf(outf, "%d\n", i);
}
fclose(outf);
free(a);
return 0;
}
>>61380699
>>61380237
I-I even got it to use almost 1MB ....
.. ``baka, sensei will only notice me if I can be better`` ... s-sensei .....
>>61380699
So you're using a bitvector... not bad, but take a look to >>61379715
And again, I was already willing to teach you, but the problem was that you wouldn't tell me what you know thus far, and what all you want to be learning.
>>61380775
holy shit kill yourself
>>61380829
S-Sensei ... I don't u-undestand his code ...
P-Please explain i-it t-to me sensei ...
Woke up, middle of the night, covered in sweat and shivering. I'm making a program that makes my screen go batshit insane until I take my pills because apparently an alarm on both my phone and my pc is not autistic enough.
>>61380829
It wants your sempai D ruby. Time to culturally enrich him
>>61380847
You have a file with 10 million unique non-negative integers, all less than 10 million. It stands to reason that it contains the numbers 0 through 9,999,999. Therefore, you need not read from the file at all; just output the numbers in order.
>>61380885
If that's what he wants, I'm more responsive to the direct approach.
>>61380699
Why are you using those whiles instead of a single bitshift, considering you already bit fiddling?
>>61380885
N-No I-I don't ...
BAKA!
I-I only like R-Rubb...
。(⊙﹏⊙)。゚
S-Sensei is m-my teacher.
BAKA! I-I can tell you never had a teacher before because you a-are a BAKA!
>>61380951
I-I am j-just a beginner. S-sorry.. .. I-I will d-do better next time ....
>>61380775
Yeah nice but who's the gril in the pic?
>>61380972
What's that? You want to rub his dick? Just tell him to pull it out and specify exactly which hole you want him to plug with it.
>>61378912
Does anyone here use C++? I have a question about downcasting.
I'm writing a static program analyser and essentially each line of code is turned into a class instance for that type of command. To store them together in a container I make them inherit from a virtual (abstract) class. I want to use a type enum and then just downcast appropriately. It will always be safe unless I fuck up setting the flags.
Is this terrible?
What's programming?
I'm an incoming freshman at a college where I plan to major in computer science.
I learned that I can get credit for one of the early classes by making a project in Java as well as taking an exam (and scoring at least 70% on both).
It's not due until Aug 25 but I'm knocking it out of the way right now. The less credits I have to pay for, the better. First year of college should be a breeze.
>>61381034
The action of creating a program.
>>61381053
What's a program?
>>61381068
A sequence of instructions to be executed by a computer.
>>61381046
>the less credits I have to pay for, the better
Do you really pay per credit after you reach full-time load?
>>61379257
Chicken Scheme has static typing
>>61381094
Actually, no. If you're full-time (at least 12 credits), you pay a set, static price. That was a typo on my end.
In any case, it's still helpful. I'm not gonna spend an entire semester taking a class I can test out of.
Only tangentially related to programming but I feel I'm helped just typing this stuff out as a question, here goes:
How would you verify that truck drivers don't drive for too long without a break? They have designated stops where they should stay but the companies they work for naturally want to rush wares to where they should go. It's illegal to have them not take a break every so often.
So my basic idea to prevent this is obviously to log them. But how do you verify that they're at a stop without human intervention (video call from trusted agency verifying they're there or something)? I thought of having a system with tags where each driver has a tag that gets rewritten by a logging station at every stop. The logging system would write a cryptographic string to the tag with time and location and some salt which the station can store at a local sever. Each site would record the previous string and give them a new one.
The problem with that is that the drivers could just copy the key and leave someone behind with the key (easy enough in these stops) ask them to swipe the key while they're driving and send the key to them in their trucks as they're driving so when they arrive at the new stop they have the key they're supposed to. At that point they may take an extra long break or repeat the abuse process by leaving the new key behind and so on.
It doesn't stop anything but it's certainly more of a mess to deal with.
I'm not sure it's actually possible now. The only way to deal with this would be to use some format truck drivers couldn't crack, despite them having physical access. I don't see that happening.
>>61381093
Is writing music in a piano roll programming?
>>61380911
BAKA, I-I'm a BAKA! ... S-Sensei, I m-meant 7 digit numbers with only 1 million n-numbers. .... .
。(⊙﹏⊙)。゚
Y-You can see that .. I need a little m-more to l-learn s-sensei ... C-Can you t-teach m-me? ...
``BAKA sensei doesn't like you now ... ``
。(⊙﹏⊙)。゚
>>61379514
radix sort
in batches, if needed
does it need to be in-place?
>>61381135
Stop posting this gay shit. This is a trap only zone.
>>61381122
Though speaking of physical access. Intel SGX might fix that to some extent. You could have encrypted code using SGX that modifies an internal state every time it's read. That way you'd know if there had been a copy of the key made. It's way more expensive than tags though. I'm not sure it's gonna work.
This is a mess.
>>61381116
That's how I figured it works, are you just gonna bang out the general studies type shit you need for the degree in your first year or do you have any other interesting CS courses lined up?
>>61381122
I think some tracking device installed on the actual trucking rig would be easier. Like, was the truck inside of some designated quarter square mile for whatever amount of time
>>61381154
Sumimasen!
Instead of using virtualenvwrapper bloat I symlink this to my project directory and call it from said directory with `source activate`
Will I get laughed out of interviews#!/bin/sh
venvpath="$HOME/.virtualenvs/"
project=`basename $(pwd)`
activate="/bin/activate"
source $venvpath$project$activate
>>61381153
H-How a-are you s-supposed to radix sort if ... if ... you can't do it in batchs unless you do a m-merge sort at t-the end ... but that is too complicated and s-should b-be all done in RAM.
>>61379257
You can enable static typing and compile chicken scheme.
Do you other autists also feel OK filling in the void from loneliness by coding
On a Friday night?
Is this a program?
>>61379514
Memory map the file and limit the amount of ram your memory mapping may use.
>>61381190
Funny story about the general studies shit. I graduated high school with both a HS diploma as well as an associate's degree from the local community college.
I had orientation earlier this week but I couldn't sign up for the classes I was supposed to take because the college has yet to process my transcripts.
The associate's degree covers most of my general studies classes, as well as all of my electives. So yeah, I'll have a few CS classes lined up my first year, as well as stuff like multivariable calc.
>>61381269
it's all I got so what else can I do
>>61381135
I would say it is similar to batch programming.
>>61381139
Ah, if it is 1 million arbitrary but unique numbers between 0 and 10 million exclusive, then a bit vector would be appropriate. In any case, regarding your request, it is difficult to teach someone who does not listen and respond to questions. Good pedagogy requires interaction between student and teacher, rather than the latter rambling off on a tangent and the former jotting away whatever seems appropriate into some paper or a laptop. So when I ask you a question like, "what do you know already, and what do you want to know?" I expect a clear and direct answer to the question, so that I may plan my lessons to suit the needs of my student.
>>61381271
Are those casual notes or are you that bad
>>61381343
S-Sorry sensei ...
...
(Θ︹Θ)ს
...
I-I will tell y-you w-what I know ...
>o-only know a little .... Rub... Ru.. sensei and C
>only know what an ... a-array and integer is..
I-I don't k-know much ... THATS WHY YOU NEED TO T-TEACH ME!
....
P-PLEASE T-TEACH ME SENPAI
・゚。(>﹏<)。・゚・
>>61381343
Wtf I'm a programmer now
>>61381347
It's a melody I wrote in Hungarian Minor last week. I like it.
https://clyp.it/5vj4ez2e
FUCKING ANIME POSTERS FUCK OFF
>tfw your program seems to work fine but you don't know if the heisenbug is still present or if you just needed to recompile one of your modules
>>61381299
I had a friend do the diploma/associate's thing, he graduated early and now he works at a NASA base. Try to pick up on some projects your professors have going on if you like them any.
>>61378912
I made a program to cheat at word puzzle games by taking a length and a list of characters and looks up all the words of that length that can be spelled with a subset of those letters.import Data.List
import qualified Data.Set as S
import System.Environment
solve :: Int -> [Char] -> S.Set String -> [String]
solve len chars wordlist = nub $ filter (`S.member` wordlist) charsets where
charsets = concatMap permutations . filter (\str -> length str == len) $ subsequences chars
main :: IO ()
main = do
[len, letters] <- getArgs
wordfile <- readFile "words.txt"
let wordset = S.fromDistinctAscList $ words wordfile
let allwords = sort $ solve (read len) letters wordset
putStrLn . intercalate ", " $ allwords
Come laugh at my pajeet-tier coding and/or tell me how I can improve its performance without, you know, switching languages.
Interestingly, generating permutations is way more efficient than testing whether two strings are permutations of each other.
>>61381271
If one really wants to get philosophical, it might be worth asking if a word document is considered a program, particularly if macros are involved. After all, it is instructions, interpreted by a computer, for how to display a document. Now someone clever might say, "no, it's instructions interpreted by another program," but this would then mean that Java programs are not programs.
Ostensibly, there is a clear difference between what makes something data and what makes something executable code -- a program. But try putting an English language description to that.
>>61381412
>only know what an array and integer is
Are you sure about that? At least based on the code you have shown me, you seem to understand at the very least iteration and flow control, as well as how to use procedures to divide up a program. You know enough about enums to know how to use them for constants (though not enough to realize when a #define might be more logical). You show a basic understanding of bitwise operations, though not enough to realize that you could use a single bitshift instead of multiplying by 2 on a loop. You also understand the basics of memory allocation and file I/O in C.
With the exception of maybe structs and unions, I'd say you already know a fair amount of this language. What it seems you need is to fill in the gaps in your knowledge. How long have you been programming?
Guys, what's the least brainlet field of computer science?
Why is it that the languages people say are "practical" and "pragmatic" are almost without exception anything but?
can anyone explain to me how can a program utilize the ethereum thing in a non-meme non-scam manner? can i actually make a messaging app with it? an online poker game? is it even worth using it?
>>61381830
It's a total fucking meme.
>>61381569
S-sorry, I was j-just getting my hormone i-injections....
...
I-I've been programming f-for maybe ....
五 years ... I-I'm n-not v-very ....
...
smart
...
・゚。(///>﹏<///)。・゚・
Trying to use sepples to construct an economically accurate model of the following situation.
A morbidly obese man takes up prostitution.
Another man is starving to death but so horny he'd rather spend his money on sex than saving himself, but so hideously skinny no women will accept.
The fat slob is keeping his rates high enough to keep himself getting fatter.
The starving pervert is willing to work to pay for the sex.
The dilemma: Over time, what is the relationship between how much more weight the starving man loses paying for the sex and how much more weight the pig gains accepting the payment, and how far in does the starving man die.
>>61379257
``faggot quotes''
>>61381888
this. it's a /biz/ scam.
>>61381955
5 years? What all languages do you know, besides C?
>>61382008
Trying to use Haskell to construct a psychologically accurate model of the following situation.
Someone is capable of conceiving of... that.
What twisted fucking torture did his daddy do to him when he was a little boy.
>>61382028
It's like someone had the terrible idea to add microtransactions to a meshnet.
Time to lob it in the garbage.
>>61382031
I-I am c-currently learning Rub... Ru... sensei but I also know a little.... py-python, J-Java, C#, L-Lua .....
>>61381029
C++ is terrible.
C# is much more intuitive.
Python is much more robust and easier.
>>61382060
>learning rub
i can teach you that little girl
>>61381955
>>61382060
GET OUT. GET OUT. GETTT OUUUUTTTT
Also Ruby is a good choice
>>61380699
Is this the first post that you made with this persona? I am asking because I love your posts but searching your name in the archive gives me no results ;_;
>>61381955
Will you be my boy/girlfriend? :3
>>61382100
N-No thanks, I-I am al-already reading a book on it ....
・゚。(///>﹏<///)。・゚・
>>61382105
n-no you ....
>>61382109
I-I am Ruby's student .... you look for Ruby in the archives and you m-might find me l-learning for him...
...
>>61382126
N-no, I already have a oneitis ....
...
・゚。(///>﹏<///)。・゚・
>>61382152
>・゚。(///>﹏<///)。・゚・
what the fuck is this shit?
>>61382152
>oneitis
too much of a good girl
discarded
>>61382152
>N-no, I already have a oneitis ....
L-Leave him, I will treat you better (。>﹏<。 )
I b-bet that he doesn't even pair-program with you! If you come with me we will pair-program all day and watch anime together :3
>>61382060
What language would you say you are most proficient at? And what is your ultimate goal as a programmer? To get a job? To make a certain kind of program or contribute to a certain project?
>>61382008
How much money does the starving man have, how much does he weigh initially, and for what duration of time per day is he having sex, for how much money per unit of time?
>>61382199
Ruby, why do so many companies use terrible languages and technologies?
>>61382174
・゚。(///>﹏<///)。・゚・
>>61382190
M-Maybe, l-let me ask my oneitis if ... he will pair program w-with me .... y-you don't h-have a tripcode ... How w-will I know who you a-are?...
>>61382199
S-Sensei, will you p-pair program w-with me? ...
>>61382208
Decision makers at companies are often not programmers.
I finally got an interview application level programming in C++
Escaping webdev/enterprise world and never looking back
>>61382234
I have pair programmed only once in my life, and it was not particularly pleasant. This was not because my partner was inadequate, but because I find people, in general, to be distracting. I work best in isolation.
>>61382269
B-but sensei ......
I-I just w-want to get closer to y-you ..
...
...
...
I-I think I'm going to c-cry ...........
・゚。(﹏0)。・゚・
>>61382234
H-here you go >.<
A-At least, b-be my friend, onegai. I don't have any and I would like to have someone as kawaii as you to talk with about programming ;__;
>>61382341
O-Ohaiyo ...
・゚。(///>﹏<///)。・゚・
H-How often do you browse /dpt/ ...
>>61382341
S-sorry, here is my new tripcode.
>>61382297
>I-I think I'm going to c-cry ...........
I-I felt the same when you said that you have a oneitis (⋟﹏⋞)
>>61382393
A-Almost every day, except sometimes when I forget to!
>>61382341
hey hottie
>>61382404
W-What should w-we pair program?...
W-What l-language?
>>61382297
Work and play are two things I see completely different from each other. It's not that I don't like being around other people, but I don't want people around me when I'm programming or researching things unless I need to collaborate with them on some specific issue. When I program, I try to focus only on the screen in front of me and the program I'm working on to the exclusion of everything else in the room. People are the most distracting thing you can put into a room. They talk, they move about, and they generally don't appreciate the only light source in the room being a computer screen. Attention therefore must be split between the program and other things. I can only fit so much information in my head at a time, and I'd rather it be used to store minute syntactic details that will prevent the next goto fail bug than on remembering the last 10 seconds of conversation to be able to think of what to say next.
I see programming very much as an anti-social activity. Collaboration means two people working on different modules and only talking to each other about how those modules are supposed to interact, and maybe reviewing code after it's been made to try and spot bugs.
>>61382466
B-But I just want t-to program w-with you ...
...
Will you b-be my f-friend, sen-sensei? ..
....
``BAKA HE DOESNT LIKE YOU``
...
・゚。(0﹏0)。・゚・
>>61382427
A-anything fun! How about an IRC client/server? Or maybe an image tagging system? I need some way to organise my animes (T▽T)
As for the l-language, how about C or Python?
>Tripfag RP session
Take it elsewhere.
>>61382490
>Will you be my friend
Can you talk like a normal person?
How do I stop being employed and live the NEET life /dpt/?
The stress of my desk job is killing me.
>>61382490
>>61382495
Just touch butts already
>>61382506
Can't remove it if it's got tech related content in it bro
>>61382516
Beat it normie
>>61382523
Become a bus driver or some shit.
How do people work like this.
>>61382506
just filter and hide stubs, desu.
>>61382548
W-What editor is that sempai?
I don't think that I could live with 17 visible lines only >.<
>>61382495
I-I was g-going to make a-an IRC client/server in R-Ruby ...
...
and I-I tried to l-learn s-sockets...
(〃 ̄∇ ̄)
here is a resource I f-found ...
https://www6.software.ibm.com/developerworks/education/l-rubysocks/l-rubysocks-a4.pdf
I-I'm not s-smart s-so I didn't u-understand it..
>>61382516
Y-Yes b-b-but I'm really shy .... p-please don't take it the wrong way ..
・゚。(///>﹏<///)。・゚・
>>61382537
But I would get paid like 4x less. I'd still rather program for one hour than drive a bus for half a day.
I'd preferably take long breaks between long term jobs, but employers look at gaps on your resume like you had a psychotic episode or something
>>61382523
>Normie
Normies don't have $300 hand-made plushies of background ponies. When I say "talk like a normal person," I mean, "don't talk with a stutter, overuse emoticons, or talk to yourself."
>>61382588
I don't know why you keep flaunting that.
>>61382576
I... Boku, don't know much about ruby b-but I have used sockets in multiple different settings in C, Java and Python, s-so maybe I could help you?? (。>﹏<。 )
>>61382588
Damn, I'm exposing an autistic side of me I'd stuffed away the last 4 years, but I gotta ask for a pic now
>>61382592
>trying this hard to make him feel bad
you failed, just give up
>>61382576
>I'm really shy
That's fine, but you don't need to type like you have a stutter. I happen to know a guy who has a rhotacism IRL. He is nonetheless capable of locating the R character on his keyboard.
Also, sockets in Ruby? That's pretty trivial.blah = TCPServer.new port
bleh = blah.accept
Orbleh = TCPSocket.new ip_as_string, port
And then just interact with bleh like it's a file with write, read, etc...
If you need a good resource, ruby-doc is the best place to look.
https://ruby-doc.org/stdlib-2.3.0/libdoc/socket/rdoc/Socket.html
>>61382588
W-Wait... y-you're a b-bronie?....
B-But ....
・゚。(0﹏0)。・゚・
>>61382605
Y-yeah, I don't k-know anything a-about s-sockets....
what are some beginner projects that are demanding but also feasible?
>>61382650
>That's fine, but you don't need to type like you have a stutter. I happen to know a guy who has a rhotacism IRL. He is nonetheless capable of locating the R character on his keyboard.
D-Don't bully my future bf onegai ( 。>﹏<。)
>>61382659
I-If we are going to use anything with s-sock(et)s I will make sure to handle them when we are pair programming! A-As well as explain to you how they work :3
>>61382677
M-Making a side-channel resistant Poly1305 implementation.
>>61382684
I-I made a repository ...
https://github.com/asuna-chan/irc
what a lovely thread we have going here
main = putStrLn "You're a bunch of faggots."
http://www.strawpoll.me/13439182
>>61382818
>coming to /g/ for serious quality discussion
welcome to 4chan newfriend
>>61382659
>you're a bronie
The reason I don't post in desktop threads is because my wallpaper is Rainbow Dash, and the global rules say no. I've had a few anons repost a couple of my previous posts where I mention being a brony. You weren't aware of this?
>>61382684
>>61382777
I-I tried pushing a small f-file. ....
b-but I'm not very good with g-git.
Let's tr-try make a really go-good IRC client!
Is it worth learning programming if you don't have a degree? I already know Python and Bash, and have written trivial scripts and programs to ease my daily needs, but is there any point in learning more and putting effort into a public portfolio without a degree?
Do you guys pronounce Qt as cute or cutie?
>>61382777
>>61382880
H-Here is my account, I just made it. https://github.com/Mikotochan
S-So please make sure to give me pushing privileges.
P-Please be gentle!
>>61382903
queue
tee
>>61382826
hope you like Idris, lad
>>61382912
I-I did it! I just pushed m-my first commit ...
I-I will try to g-give you pull privileges...
Hello yes I'm new to /g/ here but
Why do you guys hate Java?
I need to improve in it if I want to keep my promise and save something I love
>>61382818
>keeping stubs on
>>61382940
W-well done!
>>61382972
M-Maybe if w-we m-make a g-good IRC c-client, we can t-talk together ....
...
(>﹏<)。
...
I-I will b-be right b-back....
>>61382995
Y-Yes! J-just thinking about it m-makes me feel v-very //
e-excited *blush* (。>﹏<。 )
W-we will have many f-funs and r-roleplays, r-right?
I-I will start reading on R-Ruby right away
Kys fucking faggots
>>61382938
that's haskell not idris
>>61383095
Its also idris.
watching terry livestream with no audio
>>61383111
He doesn't care at all, is being such a crazy fuck this days.
>>61383104
but its also haskell
>>61383036
A-Also read the IRC standard ...
https://en.wikipedia.org/wiki/Internet_Relay_Chat
https://tools.ietf.org/html/rfc1459
>>61383111
link?
>>61383126
because Idris is the proper haskell
>>61383129
Y-Yes! Thanks for the links :3
I m-made a small and c-cute irc bot in the past so I know i-in general how it works b-but I guess that f-for a proper client one w-would need to know more about it!
>>61383156
idris is but a subset of haskell
>>61383177
But it can do more.
>>61383129
Wouldnt be faster to use libirc?
>>61383179
subsets by definition do less
>>61383180
Using irssi would be faster too (。>﹏<。 )
>Does React let me develop sites that will work if the user has javascript disabled?
A gem from our inbred neighbor general.
>>61383320
klossy
What if Mikoto and Asuna are the same person?
Have any of you wrote a working enzyme test with React having any UI library on top? (Semantic UI React, react-boostrap)?
>>61383399
W-What if Asuna a-and Mikoto were actually R-Ruby?
....
>>61383448
No.
>>61383399
What if you were a boy instead?
Would you program in less girly languages?
>>61383399
T-That's not true you s-silly b-baka!
>>61383234
W-What UI sh-should our IRC client have? ....
I-I think .... I-I think we should make it a terminal application....
>>61383320
Can I compile Linux without a c compiler?
I write a lot of little personal use web bots and utilities in Python and I want to put some on my Github.
I don't have many of them set up well for other people to use. Most have a "main.py" and some configuration is done directly in the code but I have been moving to config files for a lot of things.
If employees look at this stuff will they look down on it because it isn't all set up for usability and using config files instead of in-code configuration?
>>61383234
>>61383478
is this the cute poster thread
>>61383518
W-we could have a t-threesome (。>﹏<。 )
>>61383481
you actually can do it with g++
>>61383463
>What if
You're asking for a dickslap, aren't you, Anon?
>>61383515
>If employees look at this
whoops I meant potential employers
>>61383549
P-Please dickslap me Ruby-sempai >.<
>>61383549
Learning how to write c and also sqlite3
>>61378912
At last...
The most unoptimized AABB collision detection ever written is implemented, and the bugs are ironed out. Fuck. Stupid floating point numbers.
I guess I'll optimize it tomorrow.
>>61383515
It's still a good idea to upload them, but you should polish them first. It's those small details that sweeten the deal the most.
what does this meanUnicodeEncodeError: 'cp932' codec can't encode character '\u202a' in position 26503: illegal multibyte sequence
>>61384107
means unicode is flawed
>>61384107
>Code pages
What the hell are you doing?
Use UTF-8.
>>61384135
>What the hell are you doing?
I don't fucking know, HELP.
>>61383563
Y-You still t-there M-Mikoto-san?
...
I-I created a basic c-class to draw the application...
...
>>61384393
I-I am here, s-sorry, I was doing some other stuffs in between, I will start working right now!
>>61384152
bump
why does it say cp932 is my encoding
how the fuck do I change it
I was using PyQt to scrape a js loaded page
You're writing an ADT in C and it requires a function CreateADT()
Do you return an int and pass in the pointer or do you just return the pointer?
The former seems safer, but the latter seems more elegant.
after how many hours is it acceptable to give up and look up the solution?
>>61384534
>You're writing an ADT in C
I'm not a brainlet so I don't because I chose a superior language.
>>61384446
Y-You don't n-need to dedicate m-much t-time... I-I can do most o-of it an-and you can help me ...
>>61384534
Both styles are common and have their advantages/disadvantages. Just pick whichever one you think is more appropriate for the situation.
For a lot of ADTs though, returning a pointer would probably be better.
>>61384446
I-I'm n-not v-very good at programming btw....
....
・゚。(///>﹏<///)。・゚・
>>61384555
Depends how extensive it is.
>>61384447
ok, I discovered the script runs fine when I run it with cmd, but I get the error when I run it with git-bash, don't know why, my bashrc has variables set to utf-8
>>61384623
https://en.wikibooks.org/wiki/Haskell
>>61384555
Study by looking at the solutions. Nobody cares if you can memorize every problem under the sun.
>>61384623
D-Don't worry! For me it's my first time using Ruby.
btw, it says ERROR: Permission to asuna-chan/irc.git denied to Mikotochan. ;-;
>>61384736
I-I will t-try to fix i-it.
/**********************************************************************/
/* Copyright (C) 2017 Anonymous */
/* */
/* This program is free software: you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License as */
/* published by the Free Software Foundation, either version 3 of the */
/* License, or (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
/* General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see */
/* <http://www.gnu.org/licenses/>. */
/**********************************************************************/
#include <stdio.h>
#define FIZZBUZZ int
#define FIZZ (1 << 1)
#define BUZZ (1 << 2)
static FIZZBUZZ classify (int i) {
return BUZZ * (i % 5 == 0) + FIZZ * (i % 3 == 0);
}
int main (void) {
int i;
for (i = 1; i <= 100; i++) {
switch (classify (i)) {
case FIZZ | BUZZ:
if (printf ("fizzbuzz") < 0) goto error;
break;
case BUZZ:
if (printf ("buzz") < 0) goto error;
break;
case FIZZ:
if (printf ("fizz") < 0) goto error;
break;
default:
if (printf ("%d", i) < 0) goto error;
break;
}
if (printf ("\n") < 0) goto error;
}
return 0;
error:
fprintf (stderr, "something bad just happened\n");
return 1;
}
>>61384736
W-What should w-we name o-our IRC client?
>>61384752
>GNU license for fizzbuzz
>>61384753
I have no idea ;_;
I-I am not a c-creative person, I don't think
>>61384753
>>61384775
IRCute
>>61384752
>absurdly complex routines
>GPL
It's a fucking GNU program alright.
>>61384775
M-Maybe kiriko?
切子 m-means facet in Japanese w-which is the f-flat surface of gems, w-which Ru-Ruby i-is a gem ....
https://en.wikipedia.org/wiki/Facet
.....
A-Also kIRIKo, where IRIK is s-supposed to be IRC, b-but in J-Japanese....
>>61379623
I know the answer but I won't tell you because cheating is bad.
>>61384820
>one phoneme away from the awful SAO character
>>61384835
SAO is awful as a whole
>>61384820
B-Both of these sound c-cute. Just like you!
Y-You are good at j-japanese, h-huh?
I just add tests to my fizzbuzz program.
https://pastebin.com/AGMFky2S
>>61384752
>#define FIZZBUZZ int
>#define FIZZ (1 << 1)
>#define BUZZ (1 << 2)
That's stupid. Use an enum.
>>61384947
gcc complains when i try to match FIZZ | BUZZ if it's an enum.
>>61384863
I renamed t-the repo ...
C-Can you access it ..?
https://github.com/asuna-chan/kirikoirc
>>61385037
I-I think you have to accept my c-collaboration to join t-the report
>>61384863
I-I will make CoC too ...
>>61385086
>CoC
?
>>61385045
I-I don't see one ;_;
>>61385136
I sent you one ;_; C-Check your profile or s-something? ...
....
I-It is waiting for your response...
>>61385086
>>61385045
>>61385015
You are the trash of 4chan that makes /a/ look bad.
Please LEAVE.
>>61384686
fixed it
I left Japanese set as a system language from when I was playing.... video games. Git-bash was using Jap encoding because of this.
>>61385146
your stuttering is garbage, you need to watch more anime if you're going to try and stuttertext
>>61385146
O-Oh, it came to my mail, s-sorry, h-heh.
>>61385154
Don't bully my bf onegai you total BAKA!
>>61385191
Faggots like you deserve to be bullied
>>61385086
G-Good license and cute CoC! :3
Also, p-pushed!
>>61385245
M-Maybe we use terminfo or ncurses? ...
...
>>61385257
I-I haven't used either of these ;_;
C-Could be a good chance to try them I-I guess, I-I only used readline in the past.
new thread when? :3
>>61385287
15 posts
>>61385282
I-It is really simple .... j-just move the cursor around the s-screen to draw stuff..
>>61385287
N-New thread when bump limit is reached...
>>61381269
No. I had sex with my girlfriend's pussy last night. It was amazing. I pity the wizards who know not the pleasures of female wet tubes.
>>61385282
M-Mikato-chan, we can use this ruby gem
https://rubygems.org/gems/curses
>>61382234
>>61382269
>>61385245
filtered, hidden, saged, reported, emailed hiroyuki, called the cops
>>61385299
>>61385324
W-We could try it I-I guess..
P-Please be gentle - it's my f-first time~
>>61385324
That gem used to be part of the standard library you know. It's okay.
>>61384686
>>61385179
wait, disregard this, it's still broken
>>61385340
I wish it still was. It's a PAIN IN THE FUCKING ASS to get working on Windows. Or at least it was the last time I tried it. By contrast, when it was part of Ruby by default, it was easy to work with.
>>61385405
R-Ruby sensei, d-do you want to p-pair program on our IRC project?....
``BAKA, he doesn't want to program with a beginner like me``
>>61385429
irc is gay and ultimately a mistake
>>61385451
You're is gay and ultimately a mistake.
So are all the tripfags in this thread, especially Ruby.
>>61385333
I-I got the IRC r-reading from the s-server!!
>>61385484
!!!
I-I did not have the chance to test it yet s-so I am glad that it works ;-;
*h-hugs softly to celebrate*
>>61385429
Eh, I could throw a commit or two your way. What kind of features do you need?
>>61385451
IRC is a very simple protocol. With even a small amount of code, you can write a client that can connect to an IRC server and chat. In fact, I've written a C# class in a little over 100 lines of code that I could load from within powershell and use to chat on Rizon from within a shell.
>>61385520
>I've written a C# class in a little over 100 lines of code
Disgusting.
>+300
We need a new thread now !
>>61379060
>arbitrary modification
in elixir almost everything is a macro, except for some special case.