[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: 348
Thread images: 24

What are you working on, /g/?

Old thread: >>58590966
>>
First for Python where you can, C++ where you must.
>>
Should I learn Haxe?
>>
>>58595406
Fuck you for posting an anime image

Weaboos need to fuck off to their containment board and die
>>
>>58595406
Thank you for posting an anime image!
>>
File: 3JPcvsx.png (406KB, 2000x1410px) Image search: [Google]
3JPcvsx.png
406KB, 2000x1410px
how many of you are completely dead on this inside

or is it just me
>>
>>58595406
Daily reminder
IRC is #basictv on Freenode
>>
>>58595469

maybe you should kill yourself
>>
How expensive is calling a function pointer in C?
>>
>>58595494
it's $2.50 per call
>>
>>58595494
The same as calling a known function, except maybe the CPU can't prefetch the instructions. It's just a jmp to an arbitrary address as opposed to a jmp to a literal address, plus all the same calling convention code.
>>
I'm trying to write a greasemonkey script that changes the browser GUI css style (like stylish).
I tried
// @include     http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul
// @include chrome://browser/content/browser.xul
document.getElementById("ID").style.PROPERTY = "VALUE";

But it doesn't seem to be working. Any help? Also, can I add !important to the value?
>>
>>58595406
Writing unit tests for my chatbot and currently debugging a behavioral anomaly.
>>
any tips on how to start getting involved in real projects? I can do comp sci exercises and stuff, and learn new languages, but i have no idea how to use them. When I look at github projects in ruby or c I have no idea what the code means. I want to contribute to open source projects but I don't know how to make actual useful programs. Any tips?
>>
/dpt/ - Daily Pointless argument about 4chan """culture""" Thread
>>
What's a good course into programming with language as C
>>
Nothing better than seeing reddit refugees up in arms after being told they're not welcome here
>>
>>58595865
K&R
>>
>>58595865
get the K&R book. Look up some projects to work on. Unless you're starting programming altogether, in which case idgaf
>>
>>58595921
>>58595929
this
>>
>>58595707
pls help
>>
>>58596015
Start your own project
>>
>>58595707
Here's my suggestion:

1) Find a FOSS application you have experience with
2) Grab its source code
3) Find the main() function (or your language's equivalent)
4) Start going through the code, using a debugger where you need to
5) Learn about how the project is structured, how everything works, how builds are made, etc.

When you have a good grasp, you could try fixing bugs from the bugtracker, and asking people to review your solutions.
>>
>>58596032
But I have no idea how making real shit works. That is why I wanted to contribute to existing projects first.
>>
>>58595494
'bout tree fiddy
>>
>>58596058
thanks man.
>>
>>58595406
Updated delayclose.
>>
File: file.png (477KB, 1457x1106px) Image search: [Google]
file.png
477KB, 1457x1106px
this picture will give you aids
>>
Anyone here used LibPNG? Trying to decipher how to write pure black and white images with the smallest possible size and overhead.
>>
>>58596372

Just get a regular black and white .png image and use pngcrush.
>>
Notice how there's only one or two fags complaining about anime
And they think they're the majority
>>
data Expr a where
Lit :: a -> Expr a
Add :: Num a => Expr a -> Expr a -> Expr a
And :: Expr Bool -> Expr Bool -> Expr Bool
>>
>>58596647
data Term a where
Var :: a -> Term a
Abs :: Term (Maybe a) -> Term a
App :: Term a -> Term a -> Term a
>>
>>58596706
>muh turing completeness
>>
>>58596706
Would it be possible to implement System F typechecking rules entirely in Haskell types in order to properly type terms?
>>
>>58596764
i think so
>>
>>58596743
instance Monad Term where
return = Var
Var a >>= k = k a
Abs body >>= k = Abs $ body >>= traverse k
App fun arg >>= App (fun >>= k) (arg >>= k)


>>58596764
I suppose so, as long as you have RankNTypes.
>>
>>58596811
show an example using do notation (6 marks)
>>
>>58596811
Could you explain to me why Abs is Term (Maybe a) -> Term a ?
>>
>>58595707
>>58596156
Start with simple stuff, too. For instance I use Vim daily, but when I was in your situation I had nowhere near enough chance at understanding it's source code (I didn't even know every feature of Vim yet, it's just fucking huge and complex).

You can start by writing the coreutils yourself (e.g. cat, grep, ...) and then grabbing their actual source code and making a comparison. This way you can also learn a lot of new stuff by analyzing how the pros would write what you have just written.

I recommend viewing the OpenBSD source codes for the coreutils, even if you're on GNU/Linux, because GNU coreutils sources are very complex and hard to understand (mostly because they care a lot about scalability) while OpenBSD's ones are very elegant and simple to understand.
>>
How autistic is it to call Fortran functions specifically to deal with my matrices?
>>
>>58596823
de brujin indices
you use integer variables that represent how many lambdas back the variable is bound, e.g.

\x.x
would be
\0

\x.\y.x
would be
\\0
>>
>>58596877
*\\1

and Maybe a = Nothing | Just a
= () | a
= 1 + a
>>
>>58596877
I know about de brujin indices.
What would
Abs Nothing
mean?
>>
>>58596818
whnf :: Term a -> Term a
whnf (App (Abs body) arg) = body >>= maybe arg Var
whnf (App fun arg) = App (whnf fun) arg
whnf term = term

You don't use do notation, but you still make substitution a monad because then it can be used with various generic functions on monads.

>>58596823
It's an encoding of de Bruijn indices that is always well-formed.

>>58596902
It would be
Abs (Var Nothing)
, which is \0.
>>
>>58596902
\0
>>
>>58596902
>>58596926
Basically think in natural numbers. Nothing = 0, Just n = n+1. The type denotes an upper bound.

You could do the same thing with a Fin type, but substitution doesn't end up being very nice.
data Nat where
Zero :: Nat
Succ :: Nat -> Nat

data Fin :: Nat -> * where
FZero :: Fin (Succ m)
FSucc :: Fin m -> Fin (Succ m)

data Term :: Nat -> * where
Var :: Fin m -> Term m
Abs :: Term (Succ m) -> Term m
App :: Term m -> Term m -> Term m
>>
Ok I'm back. take a look at this code:
https://open.gl/content/code/c3_multitexture.txt

It blends two textures of a puppy and kitten together. Notice the shader has a uniform sampler2D for both textures. My question:

Do I need to do the same if i'm displaying multiple textures (as most programs would)? Do i need to put another uniform sampler2D call in my shader for each new texture i want to display?
>>
starting to delve int c++ but uni classes are so god damn slow so I've gone into some experimeting and playing around with formulas. I made one that just takes inputs for the quadratic formula it works for the most part but not the cleanest.
#include<iostream>
#include<cmath>
using namespace std;

int main()
{
double A_value, B_value, C_value, Discriminant_value, positive, negative;

cout << "Enter the a value " << endl;
cin >> A_value;
cout << "Enter the b value" << endl;
cin >> B_value;
cout << "Enter the c value" << endl;
cin >> C_value;
//quadric forumla -b plus or minus the square root of b^2-4ac all divided by 2a
//discriminant is the square root of b^2-4ac
Discriminant_value = pow(B_value, 2) - 4 * A_value * C_value;
cout << "The discriminant is " << Discriminant_value << endl;

negative = (-(B_value)-sqrt(Discriminant_value)) / (2 * A_value);
cout << "The negative answer is " << negative << endl;
positive = (-(B_value)+sqrt(Discriminant_value)) / (2 * A_value);
cout << "The positive answer is " << positive << endl;

system("pause");
return 0;

}
>>
>>58596991
just change the texture you're using by submitting a different uniform1i
>>
>>58596991
Actually I'm guessing the answer is "no". It doesn't make sense to have to add a "uniform" call and another "outColor" variable for every new texture I have. Correct?
>>
>>58597021
yes

>i want to draw the kitten model
glUniform1f(texture location, kitten texture index)
>now i want to draw the poppy model
glUniform1f(texture location, poppy texture)

there are going to be cases where you want multiple textures for the same thing (e.g. the blending you did)
>>
>>58597018
The weird thing is I never call uniform1i for the first texture i display and it works fine. is this command required? My whole problem boils down to i can't get the second texture to display. I'm 99% certain it's not the texture image itself, i've tried using the first png as both my first and second texture and only the first texture displays
>>
>>58597033
That's not my code, and the blending i'll be doing is just textures that have alpha channels . does your answer (yes) still stand?
>>
>>58597034
maybe it's 0 by default
>>
>>58597043
Someone else told me i only have to do BindTexture and then drawarrays/drawelemnts ... they never said anything about uniform? Maybe they were wrong
>>
>>58597042
yes, i mean an example is if you wanted to blend textures

there are other things like light maps, normal maps
>>
>>58597061
this is strictly 2d and yes i have to use opengl because i'm drawing like 700k lines per second and nothing else i tried (allegro, sdl) could handle that.

anyway i'm not doing ANYTHING fancy here except textures and alpha channels

so frustrating
>>
>>58597074
(the lines are working fine, 60fps, look great, the texture part is the nightmare)
>>
>>58597003
How to expand upon your code while journeying through C++:
1) make two functions, pos_root() and neg_root() that take A, B, C parameters and return the appropriate roots
2) make a single function, quad_root() that takes A, B, C, and a bool value to determine which root to return
3) make a single function that uses reference parameters to "return" both roots back to the main function
4) make it generic on A, B and C using templates
5) make a struct 'Quadratic' with fields for A, B and C, and a method for getting the roots
6) create two methods, one for each root, but memoize the determinant in a private field
7) overload operator<< so that you can display the pretty printed equation to stdout
8) make a initializer_list constructor
9) make Quadratic iteratable by creating .begin() and .end() methods
10) make a Polynomial base class that Quadratic inherits from, as well as a Linear class with a less expensive implementation
11) make a class for higher degree polynomials that estimates the roots
12) use template specialization to make a Poly<N> type that chooses Linear, Quadratic or Higher based on N.
>>
>>58597074
>frustrating
welcome to OpenGL, enjoy your stay
>>
>>58596426
Sorry, want to do this purely in C++ code using offline libraries/tools, hence specifying LibPNG.
>>
Implemented a sparse set, pic related.
Valgrind goes fucking nuts, though, since sparse sets are made to deal with uninitialized data. Every time I call "contains", it spews a warning at me.
>>
>>58596871
Equal if not better performance for less work? Not in the slightest my man.
>>
I'm trying to parse some facebook page post through JSON, what's the best way I could iterate through all the message and updated_time nodes without having to substring through the data? I've only really worked with XML before.

[
{
"message": "Text and Image",
"updated_time": "2016-11-24T02:10:33+0000",
"id": "113354732484372_113358972483948"
},
{
"message": "Noice",
"updated_time": "2016-11-24T02:10:05+0000",
"id": "113354732484372_113358515817327"
},
{
"updated_time": "2016-11-24T02:07:47+0000",
"id": "113354732484372_113355782484267"
},
{
"message": "This group is just to test whether or not a group must be public instead of closed to parse JSON data from the Facebook API",
"updated_time": "2016-11-24T02:07:18+0000",
"id": "113354732484372_113355372484308"
},
{
"story": "Full Name created the group Cool Beans.",
"updated_time": "2016-11-24T02:06:35+0000",
"id": "113354732484372_113354735817705"
}
]
>>
File: dess-ka.png (233KB, 524x541px) Image search: [Google]
dess-ka.png
233KB, 524x541px
how come if I have
(defpackage :nigger
... )

(in-package :nigger)

in a file, and I sbcl --load it, the value *package* is COMMON-LISP-USER
?
>>
I still can't think of anything to code, ever
>>
>>58597580
get a json parser
it'll parse it to an array of objects, which you can just do something like
json = JsonParse(data)
foreach (el in json) {
print(el["message"] + " " + el["updated_time"])
}
>>
>>58597580
>>58597704
anon should use python and the json module desu
>>
>>58597679
https://better-dpt-roll.github.io/
>>
>>58597704
How would I go about doing this in Javascript? I could do it if it were any other language but I can't figure it out with just js.
>>
>>58597747
Alright, let's give this a shot.
>>
>>58597881
JAVA
SCRIPT
OBJECT
NOTATION
>>
>>58597881
its the easiest in javascript ..being that JSON is "javascript object notation"

var obj = JSON.parse(data);
obj.forEach(function(el) {
var msg = obj.message;
var time = obj.updated_time;
});
>>
File: browser_.webm (3MB, 1920x1080px) Image search: [Google]
browser_.webm
3MB, 1920x1080px
reminder that browser #113 is out. (for those few who use it)

http://pastebin.com/JXvb4wdN
>>
>>58597917
I appreciate your dedication, but I really don't find the visual style appealing.

On the other hand, random idea: does anyone have a command-line 4chan browser?
>>
>>58597940

lol it's called elinks

no joke I recently tested my mettle and went without X11 for a whole month
>>
>>58597940
>browsing an image board with a text console
>>
>>58597974
>this thread has almost no images
and the a-nim photographs starts the shitposting
>>
>>58597974
Oh shit I forgot that part

>>58597991
That's somewhat reasonable, although >>58597974
is definitely right.
>>
>>58597900

Go figure, it's 1 am here and I'm just retarded after not doing javascript in a few months. How come this doesn't work then?

$.getJSON("LINK_TO_DATA_HERE", function(json){ 
$.each(json, function(key, value) {
if (key == "data") {
var obj = JSON.parse(value);
obj.forEach(function(el) {
var msg = obj.message;
var time = obj.updated_time;
document.write(msg);
});

}
});

});

>>
File: Untitled.png (236KB, 1296x1080px) Image search: [Google]
Untitled.png
236KB, 1296x1080px
>>58597974
>>58597999
>wall of text
>>
File: 1475180482656.png (1MB, 1100x1250px) Image search: [Google]
1475180482656.png
1MB, 1100x1250px
Javascript is the best language.
>>
>>58598028
I suppose it'd work for dbt, but it sure does defeat the purpose of other threads and even more so other boards.
>>
>>58595669
anyone?
>>
>>58598049
yeah, sometimes a gooey is really the best option.
>>
>>58597974
>>58597991

soon we'll perfect automated caption generation and you can just have the computer describe the picture to you with text-to-voice

>be laying in bed browsing 4chins eyes closed
>"there is a photograph of a green man in a ski mask holding a gun"

I would love that.
>>
>>58598020
jquery's getJSON parses the json for you
I'm not sure what (key == "data") is doing but if the json is..
{
"data": [
{ ... },
{ ... }
}

then
$.getJSON("LINK_TO_DATA_HERE", function(json) { 
$.each(data, function(el) {
// el.message;
// el.updated_time;
});
});


also, I don't do javascript..
>>
Do y'all prefer to autistically assign a variable to every value that only appears 3-4 times, or do you just work with with them as-is in the middle of the ongoing stuff?
For example:
a/b - c/d  < 1/x < e+5
# some lines later
a/b - c/d < 1/y < e+5
# tens of lines later
a/b - c/d < z*2 < e+5

or
derp = (1/x, 1/y, z*2)
trump = (a/b - c/d , e+5)

trump[0] < derp[n] < trump[1]

I can't decide which one's cleaner (relatively new to coding).
>>
If REST is supposed to be stateless, what's the best way to handle sessions?

token-based? store tokens on an in-memory key-value store?
>>
>>58597143
be back in 24 hours anon
>>
>>58597650
Can somebody answer my FUCKING question?
>>
>>58598313
>>>/g/sqt/
>>
>>58597204
it's insane! i can't fucking believe how complicated it is
>>
>>58598423
there is a reason that people have been pushing for a replacement API -- first mantle and now vulkan.

vulkan makes opengl a lot more sane, but its still magnificently verbose
> https://gist.github.com/anonymous/6235d6cbc8db277e8051413e69ce60d2
>>
Why the fuck is it so hard to create an executable with Common Lisp?
>>
File: Screenshot_2017-01-22_00-49-32.png (188KB, 1667x1019px) Image search: [Google]
Screenshot_2017-01-22_00-49-32.png
188KB, 1667x1019px
Reading Intel's Developer's Manual because I hate myself
>>
>>58598531
this, I bet any lispfag here can't even do a proper calling of an executable with command line args used

e.g
/.lispfagscantdothis.lisp jessica
jessica is retarded
>>
>>58598533
A few years ago I skimmed my 6 vol printed set (free, didn't even have to pay shipping!) and made notes of the errors I found. After like ten mistakes I just gave up and realized it was a waste of time and I should get a life.

And here I am.
>>
>>58597747
why is it better though?
>>
>>58598313

Not many of us know off hand the finer details of your specific implementation of common lisp. We'd have to do some googling, which you could just as easily do yourself.

>>58598531

It's a dynamic language and therefore needs to package its entire fucking runtime into the executable.
>>
>>58598580
Dunno, it's not mine. Probably because you can click, roll without posting shit to DPT and it provides descriptions for every challenge.
>>
>>58598655
> It's a dynamic language and therefore needs to package its entire fucking runtime into the executable.
We need to begin packaging stoptime with static languages
>>
>>58598655
'static' languages do this too, btw
for most consumer OSes C (and by extension C++ -- but the ABI breaking every version requires a new runtime library (i.e libstd++)) is the only one that gets the runtime for free.

but yes, dynamic languages must also pack up a lot of their tooling such as: the interpreter, the jit, their standard library or the image file (for languages like factor or smalltalk)
>>
>>58598742

If you don't count the standard library as a runtime, Ada and Rust can both be said to get a runtime for free.
>>
>>58598764
sure, but how useful is a language without a standard library for general use? :)
>>
>>58598771
The winapi is all I've ever needed. Does that count as a standard library?
>>
>>58598771

That is true, though in theory, they can both call into C functions for everything.
>>
Does anyone here have experience with making a GUI for a Matlab program?
>>
>>58598777
you still passively rely on the MSVCRT and most likely VCRUNTIME. but they are generally shipped with Windows (updates are backported and are available in a redistributable format)

here's an interesting question: what happens when windows runs you C program? when it calls the entry point? int main() (or I guess WinMain 'cause win32api). is that the actual entry point of the program? or is there one that Windows adds to set up stuff before calling your main?

being Socratic with this, before someone in the thread gets autism
>>
Where in the file directory should access tokens be stored?
>>
>>58598771
Ada has a runtime for bare metal which is considered free.
>>
>>58595669
does the browser's GUI element have the ID "ID"?
>>
>>58598800
>MSVCRT and most likely VCRUNTIME
No. My programs use neither of those, directly or otherwise. And I do not use C. Believe or not, there are still compilers that don't use runtimes or frameworks. I only use pure winapi.
>>
>>58598839
>most consumer OSes
of courses there's exceptions for specialized environments.

>>58598855
so you don't need to link against ucrt.lib or libcmt.lib? how does your code 'start' on Windows? does it not use
__scrt_common_main
at the very lowest level? or are you running ms-dos (or a 16 bit dos application on windows-on-windows)?

(but I'm leaning towards you using delphi/pascal/lazarus/whatever flavor)
>>
>>58598878
>I'm leaning towards you using delphi/pascal/blah blah

Yep. Something like that.
Not all of us use the latest and greatest "must have" meme language.
>>
File: 93925.png (2MB, 1280x720px) Image search: [Google]
93925.png
2MB, 1280x720px
What is the closest language to this?
>>
>>58598800

Technically, a program can link against just kernel32.dll and do a shit load of things in Windows. Also, programs compiled with MinGW do depend on msvcrt.dll, but not vcruntime.

>what happens when windows runs you C program?
The Portable Executable format (what's used for .exe, .dll, and most .sys files) defines in its header the address of the entry point for the program. This entry point is not always called main or WinMain. In .NET executables, it's actually an address of a function in mscoree.dll (hence why you can double click on a .NET .exe and not have to invoke an external program to JIT the CIL bytecode). In programs compiled with MinGW, it is typically _start, which is defined in some .o file that gets linked in with your program, and just sets up everything main needs to behave like it's operating in a standard C environment, instead of what Windows provides (i.e. using GetCommandLineA to grab the command line parameters and pass them to main).
>>
>>58598878
> Exceptions
It's really just adding a shit load of restrictions to the project and adding a few files
>>
>>58595707
When you say "real" projects, I take that to mean projects with thousands of contributors or some shit. If you can't open a random Ruby (or C) file and kind of get what's going on, then those "real" projects aren't for you. Start with something a little smaller and work you way upwards. The problem is the bigger projects just have so much going on you'll easily get lost down the rabbit hole.
>>
>>58598840
It does, i've tried with several elements with different ids.
>>
>>58598909
Python
>>
>>58597940
I could actually probably make one, but that sounds like too much work for something that could just as easily be accomplished with lynx.
>>
>>58597003
>quadratic
my nigga
>>
>>58598546
#!/usr/bin/env racket
#lang racket/base
; jessica.rkt
(require racket/cmdline)

(command-line
#:program "jessica"
#:args args
(printf "~a is retarded\n" (car args)))

~> ./jessica.rkt jessica
jessica is retarded


???
>>
>>58598995
Do it, anon. It's not like you're up to anything.
>>
>>58598886
well, I just got curious. so I went through the fpc source. and it links against a few different CRTs. cygwin, mingw and msvc's (depending on configuration).

here's the cygwin one for the entry point in fpc/compiler/systems/t_win.pas

  Procedure GlobalInitSysInitUnitName(Linker : TLinker);
var
hp : tmodule;
linkcygwin : boolean;
begin
hp:=tmodule(loaded_units.first);
while assigned(hp) do
begin
linkcygwin := hp.linkothersharedlibs.find('cygwin') or hp.linkotherstaticlibs.find('cygwin');
if linkcygwin then
break;
hp:=tmodule(hp.next);
end;
if cs_profile in current_settings.moduleswitches then
linker.sysinitunit:='sysinitgprof'
else if linkcygwin or (Linker.SharedLibFiles.Find('cygwin')<>nil) or (Linker.StaticLibFiles.Find('cygwin')<>nil) then
linker.sysinitunit:='sysinitcyg'
else
linker.sysinitunit:='sysinitpas';
end;
>>
>>58598909

Looks like Python, to be honest.
>>
working on a go compiler for x86 written in awk.
>>
File: potato.jpg (24KB, 499x376px) Image search: [Google]
potato.jpg
24KB, 499x376px
>>58595406
>no
>generic
>programming
>with
>primitive
>types

holy fuck Java not even once

pic related, Java programmers
>>
>>58599054
>CRTs, etc
That's fine and dandy, but I don't use those.
Don't get me wrong, I'm not insane enough to write machine code or even more than a hundred lines of assembly, but I'm also not using standard libraries beyond the basic winapi.
>>
>>58599106
>I literally never worked a real software development job ever in my life: the post.
Yeah so what's your idea for enterprise software or something that needs to be portable?
>>
>>58599145
>criticize lack of language feature
>immediately goes to "muh jobs"
Like clockwork
>>
>>58599145
Not anon but you can just write most java projects in C and they will turn out roughly the same. Modern libraries and setting standards for memory usage for everyone to abide by keep modern C projects pretty safe.
>>
>>58599145
Sorry I triggered you into that Job center post
Can you name me a good reason why I should only need full blown objects in my code?
why can other languages do it and Java can not? This is beyond retardation, defending a design like this is just mental
>>
>>58599145

C#, obviously.
>>
What do you guys think of Falcor?
>>
>>58599165
except for the development time..
>>
>>58599215
Pretty cool dude, man
>>
>>58599221
I disagree, in my experience C does not increase development time, and I personally feel that it has some rocking tools built around it for debugging and harnessing tests.

It's not like there is some hugely impossible mental complexity you adopt with C. I'd even go so far as to say that often C projects require less mental strain to quickly get work done in than Java projects due to the substantially thinner abstraction.
>>
>>58595406
Writing some shitty ass shipment planner for SAP in ABAP.
Don't judge me.
>>
>>58599239
but
muh memes
c is hard to work with and you have to write everything yourself from scrath
ree
>>
>>58599106
>what are generics
https://en.wikipedia.org/wiki/Generics_in_Java
Yeah, fuck Java!
>>
>>58599291
>proving his point
>>
>>58599291
Thanks for the (You)
What were you trying to say though?
>>
>>58599291

Your reading comprehension is shit. The complaint was not about a lack of generics, but a lack of an ability to use generics with primitive types. You can't make an ArrayList of int, and have to use Integer instead, resulting in an additional layer of indirection, and completely removing any of the cache locality benefits of using an ArrayList in the first place. By comparison, it is perfectly legal to have a vector<int> in C++, or a List<int> in C#.
>>
>>58599309
What do you mean?
Java literally has generic programming and autoboxes primitives.
This does not have a major effect on performance (inb4 MUH JAVA IS SUPER SLOW - go read about actual performance, since about Java 6, it's no slower than C++ for instance but is more robust in libraries and ease of use)
>>
>>58599324
>and autoboxes primitives
No.
>>
>>58599331
>No.
>can't provide an argument better say 'No.' xD
>>
>>58599324
>and autoboxes primitives
But he still can't do generics with just primitives, which was the point of the original post
>>
File: stop posting.jpg (16KB, 401x119px) Image search: [Google]
stop posting.jpg
16KB, 401x119px
>>58599341
>this post

I don't need an argument when what you say is just useless shit that has nothing to do with the topic at hand
A clear "No" is the correct answer to your shitposting.
>>
>>58599324
>Java is as fast as C++
>Slower than V8 and LuaJit

kek
>>
>>58599379
>slower than V8 and LuaJit
[citation needed]
Educate yourself
https://attractivechaos.github.io/plb/
For instance, sudoku solving which is used as a benchmark for languages, Java is just behind C and D.
>>
>>58599379
>>58599416
>java
>fast
>https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=java&lang2=gpp
lmao
>>
>>58599416
Did you notice how Sudoku is the only benchmark that Java actually wins?

And then it loses dict by 50% and uses 300% more memory in the process? HAHAHA
>>
>>58599416
These benchmarks are meaningless in the real world because they are always based around incredibly short lived applications doing a well known task.

"Oh wow, the execution time of this loop on a dozen objects closely resembles the time of C"

What we should care about is under what situations does worst case performance begin to occur in each language, and are these situations common? Can they be avoided with design decisions or will they inevitably occur?

Performance inside a tight loop on a small known problem isn't really a useful metric.
>>
>>58599324

>autoboxes primitives
The point is to have a vector... of the primitive itself. Don't box it. Just store the ints directly next to each other in memory. Not the addresses of the ints, the ints themselves. Java can't do that.

>It's no slower than C++
In benchmarks that test tightly controlled loops that are not representative of the regular usage of Java.
>>
>>58599466

>Performance inside a tight loop on a small known problem isn't really a useful metric.
Small tight loops are the only thing Java's good at!
>>
>>58599466
Feel free to hire personals to make exact copies of a program
>>
>>58599428
>>58599379
>v8
>fast
https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=java&lang2=node
>>
>>58599482
That isn't a sentence.
>>
>>58599444
All of those benchmarks should include memory usage. Java is well known to run at near-native speeds in tight loops until it needs to start dealing with objects and allocation; if you don't want to write it like it was some sort of high-level assembly this can be quite hard.

The compilation process and the nature of the JVM bytecode don't really help.
>>
>>58599496
also, it should use different JVMs.
>>
>>58599491
>implying anyone ever said it's fast
>>
Anyone know if Lua line reads include the newline? (I guess it'd be the same as C)
>>
>>58599545
From a file i mean
>>
>>58599545
can't you just write a short test?
>>
>>58599558
I'm just lazy
>>
>>58599558
and then tell me of course
>>
>>58599492
Hopefully you're clever enough to understand past that typo
>>
>>58599496
>this can be quite hard
*this can be quite hard to avoid.

>>58599511
Yeah. Also, note how much better Mono behaves with the dictionary task compared to Java. Mono has some other issues (goddamn the GC makes Oracle Java seem smooth), but at least the MS intermediate language / bytecode has always been pretty good at handling data structures.
>>
Okay, the iterator function discards newlines it seems
>>
>>58599602
Wew, today I learned
>>
Is it possible for Java to run faster than native equivalent code? How?
>>
>>58599625
Then how about you told me you fucking faggot
>>
>>58599632
If the native compiler was 'perfect' then no, it wouldn't. Otherwise it can.
>>
>>58599632
an example: bad programmers can make C slower than ruby
>>
>>58599632
There are cases where a smart JVM might benefit from being able to observe some extreme code "hotspot" in action, profile it and optimize it accordingly in a way that would be tricky to accomplish with static compilation.

In any larger program this will probably be overshadowed by the Java stack's performance issues with objects and memory access.
>>
>>58599602
>>58599646
I have no idea what the fuck you're talking about
>>
>>58599732
\/
>>58599545
>>
>>58599632
There are some opimizations that would require knowledge of run-time characteristics (they are trade-offs for different work loads).

There's ways of feeding this data into a compiler from a profiler, but that is a static optimization. JIT can change what it does as it runs.

In practice it's usually slower even with this, though.
>>
>>58599658
>native equivalent code
hurr
>>
File: 979838797977985449.jpg (63KB, 250x323px) Image search: [Google]
979838797977985449.jpg
63KB, 250x323px
>>58599145
>talk shit about Java
>b-but muh jobs
>>
>>58595406
>What are you working on, /g/?

Waiting while my Python script finishes.
I'm parsing ALL links contained in the Wikipedia, the text file weights 1.3 GB.
>>
>>58597054
Someone here. If you're sampling multiple different textures in the same shader, you need to make sure the uniform texture samplers point to different active texture units. They all access unit 0 by default.

You can do that with something like
glUniform1i(glGetUniformLocation(program_id, "mySamplerName"), 1);

to make sampler mySamplerName in a specific program read from whatever's bound to texture unit 1. This is part of the shader program's state so you can do this once right after compiling it.

To bind textures to different slots when drawing stuff, call glActiveTexture before glBindTexture.
>>
>>58600007
What are you parsing exactly?
>>
>>58600008
Oh, and make sure the shader program is the currently active one when you do that.
>>
>>58600022

All links contained in the Wikipedia.
The plain links like [[Programming]] are simply parsed as "Programming", whilst complex links like [[Computer Programming|Programming]] have to be processed to, in this case "Computer Programming".

It's easy conceptually, but takes hours to complete by brute force.
>>
>>58600045
You have download all the wikipedia pages?
>>
>>58599031
>racket
doesn't count
>>
test
>>
>>58599031
unrelated, but do you know if I can use ncurses in racket?
>>
>>58600047

I found a prepared text file with all the wikipedia links, nothing else.
>>
int[] array = new [100];
//...
if (array[0]==1) {
score++;
if (array[1]==100) {
score++;
if (array[2]==100 {
score++;
} else if (array[2]+array[1]==100) score++;
} else if (array[1]+array[0]==100) score++;
//...and so on....
}


would like some help turning this into a for loop
>>
>>58600058
why though
>>
>>58600058
but a why anon
>>
>>58600059
I don't even understand what you're coding. Could you rephrase your algorithm?
>>
File: 684810778.jpg (102KB, 942x1080px) Image search: [Google]
684810778.jpg
102KB, 942x1080px
>tfw I want to make a ffmpeg gui in C# WPF, but I don't wanna read that fucking ffmpeg documentation
>>
>>58600081
Poor little boy.
>>
>>58600062
>>58600064

I work for a Big Data Jew company.
>>
>>58600081
I'm gonna make one in VB.net... it's in my... backlog....

anybody else have programming backlogs?
>>
>>58600105
but whats the point of having all links to wikipedia when new ones appear all the time, shouldn't you just try the url and say "it doesn't exist" if it returns so?
>>
>C++
>My project
>Made a static method to keep track of every construction and destruction of every class, so I can fix memory leaks fast
>Just found out that whenever I use "return mousePoint" or whatever, where mousePoint is an existing variable, that cloning doesn't call any constructor
>Therefore, I have 60+ destructions per second, and only 2 constructions

How do I fix this? Is there a method that is called that I can use?
Or am I going to be counting return/cloning calls too

I'm a student so go easy boys
>>
>>58600125

It's for further processing, of course.
An experimental project in concept mapping. We will then use the Stanford Entity recognition and other tools.
>>
>>58600073

If array[0] equals 1, then your score variable increments by 1. (forgot to include int score=0; in the original post)

If array[0] is equaled to 100, then we also check to see if array[1] is also equal to 100. If it is, increment score once more. If array[0] and array[1] both equal 100, then we check if array[2] is equal to 100. I fit is, increment score once more. if array[0], array[1], and array[2] all individually equal 100, then we check if array[3] is equal to 100. And keep going until the length of array.

However, once a position (integer i in this case) in the array does not equal 100, we stop checking any numbers any farther, and instead check to see if array[i] and array[i+1] both equal 100, then you increment score once more.

int score = 0;
int[] array = new [100];
//...
if (array[0]==100) {
score++;
if (array[1]==100) {
score++;
if (array[2]==100 {
score++;
//...and so on...
} else if (array[2]+array[3]==100) score++;
} else if (array[1]+array[2]==100) score++;
} else if (array[0]+array[1]==100) score++


Realized I made some errors in the previous post, I fixed them here.
>>
The (dys)functional programming circlejerkers started their own generals s while ago, for only they can contain their autism.

What became if these generals? They we're pretty popular.
>>
File: tlafizz.png (17KB, 716x391px) Image search: [Google]
tlafizz.png
17KB, 716x391px
I was in here a few days ago complaining even Fizzbuzz in TLA+ took all day.

Well my solution was really complete, and I've spent another day fixing it. R8 my TLA+.
>>
>>58600168
maybe a while loop would be better?
>>
>>58600146
what's wrong with valgrind?
>>
>>58600188
Good idea. I think this may give me my desired result.

int score = 0;
int array = new [100];
int i = 0;
//...
while (array[i] == 100)
{
score++
i++
}
if (array[i]+array[i+1]==100) score++;
>>
>>58600214
Trying to do everything myself
It sounds stupid and tedious, and it mostly is, but I like to think about every little detail
>>
Every day, I pray for Death.
And yet Death never comes.
It's like God has forgotten about me.
>>
>>58600252
I smell index out of range error
>>
>>58600252
Have fun overblowing your buffer. Should be:

while (i < len && array[i] == 100) {
/* * */
}
>>
>>58600252
Here you go
int score = 0;
int array = new [100];
int i = 0;

for (int i = 0; i < 100; i++)
{
if (array[i] == 100)
{
score++;
}
else
break;

}
>>
>>58600314
ignore the
int i = 0;
>>
>>58600273
boolean isDead = false;

public static void main(string[] args)
{
while (!isDead) {
for (int i = 0; i < 4; i++) {
if (i == 4) isDead = Death();
else Pray(i);
}
}
}

public boolean Death() { return true; }

public void Pray(int daysWaitingForDeath) { if (daysWaitingForDeath == 3) System.out.println("Has God forgotten about me?"); }
>>
>>58599106
welp
T[]
why are programming languages so shit, /dpt/?
>>
>>58600146
>>Just found out that whenever I use "return mousePoint" or whatever, where mousePoint is an existing variable, that cloning doesn't call any constructor
Ho you encounter the untold truth about C++. The worst is that to allow that a copy constructor must exist (with g++) but it's not called.
>>
>>58600650
Well, thete's one non-shit language.
>>
File: h a s k e l l.png (126KB, 400x400px) Image search: [Google]
h a s k e l l.png
126KB, 400x400px
>>58600650
step into the light
>>
>>58600688
>tfw light is flowing at 1GB/s
>>
>>58600707
you can do manual memory in haskell
>>
>>58600688
No thanks; I don't like Kool-Aid.
>>
>>58600741
because you're already cool and you already have aids?
>>
Emacs users, how do you cope with pressing ctrl and alt? The keybindings are more sane than vim, but those modifier keys are fucking shit to reach.
>>
>>58595439
haxe my anus
>>
>>58595406

I'm learning C# since for some reason there are more job offers in my area for that than for python
>>
>>58600776
You maintain ctrl. You press once esc and you emit the third key.
>>
>>58600776
swap ctrl and caps lock and use thumb for alt
>>
>>58600776
Use the soft part of your palm to press ctrl and all your problems will be solved
>>
>>58600366
Haha, thanks anon.
>>
>>58595474

Says its for a TV repo
>>
>>58600746
I don't have aids and only niggers smoke Kool
>>
What's bad with JVM?
Real reasons.
>>
>>58600896
It's a VM designed for Java
>>
>>58600896
no TCO
>>
>>58600896
Java runs on it
>>
>>58600938
And 3 billion devices run Java
>>
>>58600946
and 3 billion indians shit on designated shitting streets.
>>
>>58600946
There are 3 billion dindus.
>>
Should I avoid racket?
>>
>>58600946
Around 14 billion turds get dropped every day, no surprise taking a dump is more popular than Java though
>>
>>58600946
if all that work that went into java and all its shit went into porting real languages onto those devices the world would be a better place

we probably lost like 5 years in technology development or so already because of the setback that is java and similar
>>
Is there a tutorial on getting started with GUI's for Windows in C++ thats not out of date?
>>
>>58600988
>we probably lost like 5 years in technology development or so already because of the setback that is java and similar
Elaborate
>>
>>58600992

Well, which framework do you want to use to develop GUI applications?
>>
>>58601004
Ncurses
>>
>>58601013
nigga just read the man pages and the ncurses programming howto.pdf
>>
>>58600957
Some anons suggested learning Racket as baby's first Lisp. So I started reading the book Realm of Racket.
Clojure looks nice too, but I don't know about the JVM running a functional language.
>>
>>58601013

That's a TUI, not a GUI, and any tutorial you read on it is going to be outdated because there hasn't been that many changes in ncurses.
>>
>>58601039
Tis a joke, I'm not the guy he asked
>>
>>58601004
This >>58601013 isn't me.

I don't really know. Which would be a good one to start? Qt?
>>
Can I do with CLISP, or do I need SBCL?
>>
>array-rank-limit
>65529
why the fuck do I need 65k dimensions?
>>
>>58601052

Qt is pretty decent, and more likely to find you modern tutorials, since they like to completely break API compatibility between versions. It's also highly portable.

http://zetcode.com/gui/qt5/
>>
>>58601070
Don't use clisp.
Use either sbcl or clozure cl.
>>
>>58601050
>outdated because there hasn't been that many changes in ncurses.
that logic doesn't add up
>>
>>58601097
Thank you mate.

Also. If I have done all my work up to this point on VS on Windows would this be a good opportunity to start practicing on GNU/Linux? I have xubuntu and Vim installed but nothing more.

Or should I just stick with Windows for now.
>>
>>58601096
>I
that's your limitation right there
>>
>>58601050
outdated != old
>>58601099
you have any tips for using other packages?
I use quicklisp with sbcl, but that startup time is killing me
>>
>tfw can't seem to understand how or when to use C++'s classes
hook me with a good tutorial lads please
>>
>>58601096
The real question is why did they choose 65539 over 65536?
>>
>>58601004

a really retarded aspect of c++ that you cant make a basic interface without external libraries.
if i remember correctly, that made me drop c++ a decade ago.
>>
>>58601138
It's slow on first time when it needs to download the packages but then it should be faster.
Other solution is to just use plain old asdf.
>>
>>58595406
how should one go about replacing __thread in a library? Trying to get CCV working on openbsd
>>
File: 1401041325653.jpg (18KB, 300x188px) Image search: [Google]
1401041325653.jpg
18KB, 300x188px
>Exception
>>
wondering if racket can do system's programming
>>
>>58601307
Which system's?
>>
>>58601324
systems programming
>>
>>58601380
yes if you mean posix stuff and yes if you mean operating systems since all you would need is to get the interpreter running on bare metal
>>
>>58601307
>>58601380

I'll assume you mean OS level things...

Can you align memory? Can you manually manipulate individual bits/registers? Can you compile it without a run-time (no, not just no GC, no runtime, as in no crt0 etc)?

If you answer no to any of these then FUCK no you cant.
>>
>>58601307
literally why
>>
>>58597485
You're obviously accessing out of bound, and using uninitialized data to access the dense array.
>>
>>58598909
I wouldn't recommand learning a language just because you've seen a lesbian use it in a chinese cartoon about maids and dragons.
>>
why are lispfags such good shills?
they made me learn cl, and now I have to fully learn it to see if its actually good or just a meme
>>
>>58598909
Based Python
Based anime
>>
File: 1327838056586.jpg (136KB, 400x500px) Image search: [Google]
1327838056586.jpg
136KB, 400x500px
tfw ArrayList equals LinkedList
>>
>>58601533
> CL
learn form SICP and you'll see why
>>
>>58601533
How did you learn CL? I can only find ancient books.
>>
>>58601551
I bought like 5 books.
Next, I'll buy CLOS and something about the Metaobject Protocol.
>>
>>58601551
There's recent book released few years ago which covers covers the language and current ecosystem pretty well. CL standard hasn't been updated so the old books are fine for learning the language.
>>
>>58601546
>Based
>P*thon
pick one and only one
>>
>>58601567
>>58601617
Are there any recommended books?
>>
>>58601648
Yes, where do you live? I'm currently working on a book and I could lend you a copy so to speak
>>
Whats a good book about AI?
>>
>>58601631
Python is great for scripts and GUI wrappers. Only a fool would write a full fledged application in Python.
>>
>>58601671
The Netherlands.
>>
>>58601689
I'm currently staying in Switzerland, we could meet up in some public place. Don't bring government workers of any kind with you.
>>
>>58601689
how are the raves there?
my girlfriend can't stop talking about netherlands and the raves they have
>>58601648
I recommend pratical common lisp, I think its free
also the one with "gentle introduction to symbolic computation"
>>
>>58601731
because she wants to get wasted and get fucked in a rave like the cheap slut she is
>>
>>58601756
probably, but she's only there for the music
she wouldn't do anything else
she was offered ecstacy and she declined
>>
>>58601769
so she was at a rave without you?
buddy I have to tell you something...
>>
>>58601790
before she met me
but she wouldn't lie

only red flag is she has around one thousand nudes
>>
>>58601681
>Python is great for scripts and GUI wrappers
not really. even if we for a second assume this is true it still wouldn't in any way make P*thon "based"
i do agree about anime though.
>>
>>58601790
dude, her pussy is too tight, hurts her after one fuck
no way she can fuck around, only size she can take is mine (4")
>>
>>58601831
made me chuckle
>>
>>58601831
Call campus security
>>
>>58601838
I was born with that size, not my fault.
Do you know if testosterone levels affect penis growth during puberty?
>>
>>58601731
>how are the raves there?
I don't know. Those events usually involve heavy alcohol, drug (XTC, heroine(no weed)) use and sex. You don't go to those events for the music famalam. If you want to visit 'proper' music events, go to Indian Summer Festival, Defqon or something like that.
>>58601731
>I recommend pratical common lisp, I think its free
I'll take a look at that. I'm still in doubt of learning Racket or CL. The latter seems more popular.
>>
>>58601551
Land of Lisp, practical common Lisp and there are more
>>
>>58601727
Don't tell me you're a refugee.
Going to Switserland is a bit too far IMO.
>>
>>58601858
To be honest, I still have trouble between choosing either.
CL is a fuckpain because you can't easily deploy software as binariy (everything is REPL), but at least has more libs than Racket
>>
trying to word count my extremely large text file (9 GB) causes MemoryErrors

what can I do? look for a PC with more RAM?
>>
>>58601893
>what is buffer
>>
>>58601883
Doesn't SBCL create a binary?
>>
>>58601931
yeah, but the entire runtime is include, and its like 60mb
I fucking hate those.
>>
>>58601944
if at least it was 4mb binaries like haskell
>>
>>58601944
I don't care if my toy programs are that big.
Would you recommend Common Lisp to a beginner?
>>
>>58601878
>Don't tell me you're a refugee.
Do they even take refugees? I haven't seen any at least where I'm staying.
I'm just looking to escape from a certain government and this is a pretty good place to do so, at least for the time being.
>Going to Switserland is a bit too far IMO.
We could meet up in Germany but I'm not going anywhere north of Frankfurt. "they" seem to have a stronger presence in the north.
>>
>>58601971
no, scheme is better for someone new
>>
>>58601983
what the fuck could possibly scheme have that CL doesn't
>>
Can someone recommend a good, solid Python tutorial for beginners (new to programming) ?
>>
>>58602021
Yes, this website seems to accumulate them.
https://www.reddit.com/
>>
File: 1484370726033.jpg (71KB, 540x607px) Image search: [Google]
1484370726033.jpg
71KB, 540x607px
>>58602029
>>58602033
>>
>>58602002
Scheme is a Lisp 1 thus is much simpler than common lisp and easier to grasp for someone new to lisp.
Chicken Scheme provides almost all (maybe even more) libraries common lisp has available so you're not at a loss if you use it.

Finally... learning scheme first will help you if you decide to move to common lisp in the future as most scheme tutorials are better (from what I've found)
>>
>>58601976
Yes, Switserland doesn't take any refugees. AFAIK it's used to travel to Germany, The Netherlands or France. Fun fact: Switserland is the place where Kim Jong-Un studied. The only countries safer than Switserland might be Cambodia because Interpol. Care to tell me which part of the world you are?
I'd love to meet fellow anons, but I cannot justify traveling to Germany just for that. I hope you understand that. I guess you won't go anywhere near Amsterdam, right?
>>
>>58598449
>vulkan makes opengl a lot more sane
how so?
>>
>>58602055
>no CLOS
>>
>>58602087
http://wiki.call-cc.org/eggref/4/coops
http://wiki.call-cc.org/eggref/4/tinyclos
http://wiki.call-cc.org/eggref/4/tinyclos-xerox
Or you could make your own!
>>
Fucking Lua patterns

Let's play a game, what could this possibly match:
'{[%P ,;=]+}'
>>
>>58602136
I dunno but wasn't %P for punctuation characters? in which case what's the point of , and . afterwards?
>>
>>58602068
>Care to tell me which part of the world you are?
You mean where I'm originally from? Australia, but I didn't grow up there.
>but I cannot justify traveling to Germany just for that. I hope you understand that
Sure. I wouldn't want to travel to that shithole too. Northern France doesn't seem like a good option either.
>I guess you won't go anywhere near Amsterdam, right?
Why would anyone in their right mind want to enter a country where the ICC is located?
>>
>>58602206
%p is for punctuation, %P is inverse, and then I add some other acceptable punctuation.
Basically finding a block of text with { } around it and excluding some control characters (notably {}'s and []) so it doesn't try to grab further blocks.
>>
>>58602236
>ICC located in The Netherlands
Kek, I forgot about that. Bad idea indeed.
Even though I'm Dutch doesn't mean that I'm a pawn of the government and snitch on everyone. Be wary though, the rest of the cucks in this country will.
Can't you send the book you're writing by mail? We could use ProtonMail or Tutanota to conversate.
>>
>>58602247
m8 if you want to search for text, then search for fucking text.

'{[%w_ ,;=]+}'

Always use the positive, lowercase sets rather than uppercase inversions when possible.
>>
File: 8x8puzzle.webm (2MB, 194x174px) Image search: [Google]
8x8puzzle.webm
2MB, 194x174px
2500 moves on average to solve a 8x8 puzzle.
I guess it can be better.
>>
>>58602247
>%p is for punctuation, %P is inverse,
oh so the capital %p /excludes/ punctuation?
>>
>>58602307
I guess that works too, but do you have an actual reason you should always use sets instead of inversions?

>>58602325
Yeah
>>
>>58602319
It's going too fast for me to follow. Is it a sliding puzzle?
>>
I asked several questions on Pajeetoverflow - not ONCE did I get an useful answer!

This site combines the worst aspects of Reddit (namefagging, "reputation", up/downvoting) with the worst of 4chan (sociopathic "community").
>>
File: Matt_Foley_-_SNL_Character.jpg (22KB, 421x236px) Image search: [Google]
Matt_Foley_-_SNL_Character.jpg
22KB, 421x236px
>>58600830
yeah, thats the repo for basictv

if you were the one who joined and I missed, sorry. im working with the SPARC64 guy to make it cross architecture and the IRC chat wasnt on screen

if you want a quick reply, i get notificatiins when my username is in the message
>>
>>58602356
Because it's easier to remember what is inside a set, rather than everything else.

Generally I try to use inclusive sets when looking for specific things, and exclusive sets when trying to ignore/strip things.
>>
>>58602360
yes.
>>
New thread when? I am too lazy.
>>
>>58602416
Yeah, but this way I don't have to worry about the space characters like newline and space and tabulation etc.
>>
>>58602303
>Even though I'm Dutch doesn't mean that I'm a pawn of the government and snitch on everyone.
Yeah, I understand. Sadly you're in the minority here.
>Be wary though, the rest of the cucks in this country will.
Exactly.
>Can't you send the book you're writing by mail?
It isn't even in digital form yet and I don't want to use OCR. Most of it is handwritten and I have only recently started converting the code parts which are most likely to be final.
I'll probably post it here when I'm done.
>>
>>58602365
>(sociopathic "community")
thank you for using quotes. it's good to see there are still people left who don't misuse that word
>>
>>58602448
Sure, not at the moment anyway.
Let's see 6 months down the line when you forget what %p or %P actually include.

\w and \s are so common it's practically impossible to forget what they do.
>>
>>58602505
I mean, I always have the PIL page on patterns open anyways.
>>
>>58602365
Sad!
>>
New thread
>>58595406
>>
>>58602529
Pretty much a requirement.
The lack of a range specifier always annoyed me the most, string.rep() is a verbose piece of shit.
>>
>>58602468
>I'll probably post it here when I'm done.
Fair enough, I'm looking forward to it. Maybe post a snippet of it if you feel like it?
Stay safe anon.
>>
>>58602365
I don't think I've ever gotten a useful answer anywhere. I can either figure it out/find it already answered, or it's obscure enough that nobody knows.
>>
new thread
>>58602757
>>58602757
>>58602757
>>58602757
>>
Anime thread here:
>>58602927
>>
>>58602757

Sorry if this question get asked often in here, but what would the ideal programming language to learn for someone new to coding?
Thread posts: 348
Thread images: 24


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