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

File: sicp.jpg (436KB, 520x1187px) Image search: [Google]
sicp.jpg
436KB, 520x1187px
old thread: >>57130506

What are you working on, /g/?
>>
>>57134410
Figuring out how to get my terminal to print LaTeX.
>>
File: compiling.jpg (14KB, 400x400px) Image search: [Google]
compiling.jpg
14KB, 400x400px
>>57133714
>top tier programming food
Anything you can prep with low effort that has good nutritional value, and that you don't have to take your hands off of your keyboard to consume
I prefer Soylent. It has the added benefit of being cheap as fuck (2 dollars a meal, ish)
>>
>>57134410
>reinterpret_cast
She uses C though.
>>
>>57134440
Any ideas?
>>
How do people find Django?
>>
>>57134457
They have pretty shit quality control. I like shit you can throw into an oven.
>>
>Stella no mahou
Oh hey, I started watching that...

The one programmer girl is definitely kind of... off.

>>57134440

cat whatever.tex

Maybe you wanted to do something other than printing it?
>>
>>57134511
No. I've been looking for terminal emulators with framebuffers, but haven't found one yet. I want to play around with matrix programming to help me study for linear algebra, but printing matrices sounds like a nightmare.
>>
>>57134526
>hey have pretty shit quality control.
Explain?
I've not had any troubles yet. My only complaint is the (lack of) taste, but that's kind of nice because it means that you can add your own shit to flavor it since it just kind of tastes like an even milder version of cream of wheat so any flavor won't clash
>>
>>57134525
a free man
>>
>>57134469
the original comic is even worse, she hands him a Unity book
>>
File: sudda.jpg (3KB, 184x184px) Image search: [Google]
sudda.jpg
3KB, 184x184px
>>57134525
his job is to go out and kill white people
>>
>>57134530
Obviously. I want a terminal emulator that can render it. I'm still looking.
>>57134555
They shipped a batch that got loads of people sick. From what happened there, and videos I've seen of them, it still doesn't look like they're built to feed people, they act a lot like a start-up.
>>
>>57134570
>It's a black male thing
>>
>>57134440
w3m uses a hack to display images on xterm, maybe you could use that.

Otherwise if it's only math symbols you can try to build an ASCII art kind of output like maxima does.
>>
Can anyone explain me in simple words why I have to do this for static members in templated classes:

template <int value>
class some_class
{
static int count;
public:
some_class()
{
some_class<value>::count++;
}

template <int value>
int some_class<value>::count;


Why do I have to redefine count under the class again and why can't I access it as a normal member, like in a class wihout a template?
>>
>>57134655
forgot a } in this snippet, just imagine there was one.
>>
>>57134655
static means the member is associated with the class itself and not the object.
>>
>clang 3.9 has been out for years
>arch is still shipping 3.8
>3.8 has a broken asan implementation that crashes on start
wew
>>
>>57134689
Yeah, but why do I have to redefine it? shouldn't it do that automatically?
>>
Implicit Vs. explicit garbage collection
>>
>>57134749
None.
>>
>>57134749
Explicit is pretty good. Anyone who says otherwise is memeing.
>>
>>57134749
>>57134787
implicit is comfy though
>>
File: 1476318838519.jpg (34KB, 380x364px) Image search: [Google]
1476318838519.jpg
34KB, 380x364px
>>57134579
> they act a lot like a start-up.
Well I mean, they are a start up if I'm not mistaken.
I'm not going to pretend that Soylent is god's gift to man as some do, but gorram it's cheap and easy to prep. The kitchen in this building is downstairs and I wasn't given space to store pots, pans, or anything else so if I want to cook I have to bring all my shit down, clean it, then bring it back up, EVERY time I want to cook... which just kinda isn't reasonable, in my opinion.
My options were Soylent, something much less healthy (instant noodles etc), or something much more expensive (daily delivery)

I dunno mayne, soylent is pretty good at what it does, which is remove all the time you spend prepping and eating food from your life
>>
>>57133714
>>57134457

>programming food
I don't really have a special programming food myself. I just make sure to eat a dead animal every day. Eat chicken for cheap (and somewhat health) protein, lean red meat for iron and a general testosterone boost (which is important for concentration and spatial reasoning), etc...

>>57134655

Template classes can have both static and non-static members just like any other class. The question to ask yourself is why you are using a static member for this particular case.

>>57134714

First of all, it is not limited to templates. Let us look at the following code:

#include <iostream>

struct foo {
static int k;
};

int main(void)
{
foo::k = 2;
std::cout << foo::k;
return 0;
}


This compiles with an error because foo::k is undefined. The reason is this: static class variables are still just global variables. If you include a header file with a struct definition into multiple source files, should the struct be constructed as a declaration of that global variable, both source files including it will have a different global variable associated with k. So instead you have the type definition saying there's a global integer foo::k somewhere, and in another source file, declaring where it is.
>>
File: animae.png (235KB, 1168x725px) Image search: [Google]
animae.png
235KB, 1168x725px
Animu indexer

Slowly getting information for shows. Every 100~ API requests I make to aniDB I get banned for 24+ hours, need to make 3000 requests.
>>
so is everything a list in lisp?

(3)
is just a cons cell with 3 as its car and nil as its cdr??
>>
>>57134860
>should the struct be constructed as a declaration of that global variable, both source files including it will have a different global variable associated with k
Ah, it leaves you scope options, I see. Thanks.
>>
>>57134859
>be me two seconds ago
>talking up the good shit about soylent
>Pour two water bottles worth because I might as well
>chuck one in the fridge while I pour the other
>Go to close the fridge door
>I didn't put the cap on
>there is now a beige liquid absolutely covering everything in my refrigerator
Fuck me, dude.
>>
>>57134870
Did you need to register for that API?
If not, share it over several IPs. Either by changing or using proxies.
>>
>>57134457
I like Piccolinis, refrigerated mini pizzas that you can simply throw into the oven.
>>
>>57134911

More or less.

>>57134902

>so is everything a list in lisp?
Well, if you don't count numbers, strings, vectors, functions, and pretty much everything that isn't a list...

Anyways, (3) in lisp evaluates to an error, because there is no function named 3. If you wanted a list literal, you'd use something like (list 3), (cons 3 '()), or just '(3).

[1]> (3)

*** - EVAL: 3 is not a function name; try using a symbol instead
The following restarts are available:
USE-VALUE :R1 Input a value to be used instead.
ABORT :R2 Abort main loop
Break 1 [2]> (list 3)
(3)
Break 1 [2]> (cons 3 '())
(3)
Break 1 [2]> '(3)
(3)


(scheme is similar to this)
>>
>>57134929
The API is fucked. You need to register, but you don't get a key or anything, you just have to put your clients name. You could literally go onto their wiki, pick out a client name, and use that for the HTTP API. I think the bans are placed on both IP and client name though.

I'll probably just boot up some Digital Ocean servers for a few hours if I get a permanent ban
>>
>>57134410
>riding in on a reinterpret_cast
wat
>>
>>57135015
>(scheme is similar to this)

You forgot to mention that Scheme is better.
>>
>>57135033

clojure > racket > scheme > common lisp > emacs lisp

Did I get that about right?
>>
File: nasm.png (45KB, 1266x696px) Image search: [Google]
nasm.png
45KB, 1266x696px
>>57134410
Trading 4 hours of sleep or so to get started learning NASM

I want to completely get rid of the c standard library in my projects and use my own implementation instead and this is sort of the first step towards that.

Plus moving towards someday being fluent in assembly which is generally good.
>>
How much should I code a day before i am considered competent
>>
>>57135100
Except for clojizz, yup.
>>
>>57135115
expert coders code at least 10 hours a day to maintain their skills
>>
>>57135115
you will never be considered competent
>>
>>57135113
I hope you're just meming. You don't need to write more than 20 lines of assembly to implement a functional C stdlib.
>>
File: This_face_goes_on_for_Miles_0.jpg (238KB, 961x1222px) Image search: [Google]
This_face_goes_on_for_Miles_0.jpg
238KB, 961x1222px
>>57135121
Time to get cracking
>>
>>57135129
Implementing c stdlib is just a way for me to learn, with the added bonus of having my own implementation which I really want also.
>>
how do I become a badass hacker like john carmack
>>
>>57135172
Install Gentoo.
>>
>>57135176
Carmack didn't come up with Q_rsqrt.
>>
>>57135119

Clojure's pretty nice. Great standard library, and it targets any choice of the JVM, the CLR, or JavaScript.

>>57135129

There are more than 20 functions in the stdlib.h alone. You cannot implement that in 20 lines of assembly.
>>
>>57135200
Yes I did
>>
>>57135207
His point was that you can write most of the C stdlib in C.
>>
>>57135176
Is that real?
>>
>>57135176
cute coding gf that will come cuddling to me for help when ;___;
>>
>>57135220
You can write practically the entire thing in C, except for the tiny function that does syscalls for you.
>>
>>57135213
>-----Original Message-----
>From: John Carmack
>Sent: 26 April 2004 19:51
>Subject: Re: Origin of fast approximated inverse square root
>
>At 06:38 PM 4/26/2004 +0100, you wrote:
>
>>Hi John,
>>
>>There's a discussion on Beyond3D.com's forums about who the author of
>>the following is:
>>
>>float InvSqrt (float x){
>> float xhalf = 0.5f*x;
>> int i = *(int*)&x;
>> i = 0x5f3759df - (i>>1);
>> x = *(float*)&i;
>> x = x*(1.5f - xhalf*x*x);
>> return x;
>>}
>>
>>Is that something we can attribute to you? Analysis shows it to be
>>extremely clever in its method and supposedly from the Q3 source.
>>Most people say it's your work, a few say it's Michael Abrash's. Do
>>you know who's responsible, possibly with a history of sorts?
>
>Not me, and I don't think it is Michael. Terje Matheson perhaps?
>
>John Carmack
>>
>>57135184
I want to but people around me won't let me.
>>
>>57135262
Exactly.
>>
>>57135100
>clojure > racket

What in god's name am I reading?
>>
>>57135220

In which case, maybe 20 lines of assembly might be necessary. Or 0 with inline assembly, since the only time one would need assembly for a C stdlib is for syscalls.
>>
>>57135100
And OCaml and Haskell are far better than all those meme languages
>>
>>57135302
>You don't need to write more than 20 lines of assembly to implement a functional C stdlib.
>>
File: 2016-10-19-003538_296x248_scrot.png (23KB, 296x248px) Image search: [Google]
2016-10-19-003538_296x248_scrot.png
23KB, 296x248px
>>57135279
Kill them.
>>
>>57135302
>since the only time one would need assembly for a C stdlib is for syscalls
Think again.
>>
>>57135291

The truth.
>>
File: 13775726487.png (557KB, 650x800px) Image search: [Google]
13775726487.png
557KB, 650x800px
>>57135100
clojure is a disgrace
>>
>>57135176
The replies though... Top fucking kek
>>
Function overloading is really convenient. I'd be really annoyed without that.
>>
>>57135264
>int i = *(int*)&x;
Is this really faster? How?
>>
>>57135339

hurr
>>
>>57135463
In C++, that would be:
int i = reinterpret_cast<int>(x);

It's a no-op; it basically just changes the type from float to int without touching the data.
>>
>>57135491
Does this mean the int is actually a pointer?
>>
>>57135530
No.
>>
>>57135491
int i = *reinterpret_cast<int*>(&x)
>>
>>57135547
Casting between pointer types is reinterpret_cast, yes, because that also doesn't touch the data and simply changes the type.
>>
>>57135241
Fast inverse root algorithm? Yes. And it's fucking amazing.
>>
>>57135463
integer arithmetic is faster than floating point
>>57135530
no, it's evil sorcery that seduces the compiler to think of x as an address to something that is thought of as an integer pointer and then de-referenced as such.
>>
 
#include <iostream>
int X=1;
template<typename ...F>
class Fizz : F...{ public: virtual ~Fizz(){(X%3==0)?std::cout<<"Fizz\n":std::cout<<X<<"\n";++X;}
template<typename ...B>
class Buzz : B...{ public: virtual ~Buzz(){std::cout<<"Buzz\n";++X;}
template<typename ...FB>
class FizzBuzz : FB...{ public: virtual ~FizzBuzz(){std::cout<<"FizzBuzz\n";++X;}
};};};
int main()
{
Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<
Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<>::FizzBuzz<Fizz<Fizz<Fizz<Fizz<
Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<
Fizz<>::Buzz<>::FizzBuzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<
Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<>::FizzBuzz<
Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<
Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<>::FizzBuzz<Fizz<Fizz<Fizz<Fizz<
Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<
Fizz<>::Buzz<>::FizzBuzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<
Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<>::FizzBuzz<
Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<Fizz<Fizz<Fizz<Fizz<Fizz<>::Buzz<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> FizzBuzz;
return 0;
}


Finished my FizzBuzz.
>>
>>57135573
What's even cooler is that it's implemented in silicon as part of SSE. Though I believe now it uses a LUT for the initial approximation instead of that "magic" operation.
>>
a portal opens, and it leads to the year 2050. if you walk through it, everything in your brain related to programming will be erased except for the knowledge of 3 computer programming languages. which 3 do you take with you?
>>
>>57134457
It's a good idea to learn how to cook and cook by batch.

Prepare at least three days' worth of meals. Cook them in one go and store them in the icebox in plastic containers, then nuke them if you're going to eat.

Soylent is a good snack but not nutritious or filling enough.
>>
File: my birthdays.png (208KB, 819x819px) Image search: [Google]
my birthdays.png
208KB, 819x819px
>>57134410
I dont know what the fuck to learn anymore.

I wanna do stuff with C++ but I dont have a clue where to go anymore. Someone please tell me what am I supposed to do?
>>
>>57135592
How are LUT's implemented in hardware?
A big ass multiplexer?
>>
File: cpld-fpga-21-638.jpg (39KB, 638x493px) Image search: [Google]
cpld-fpga-21-638.jpg
39KB, 638x493px
>>57135624
pretty much. if you're interested, look up (pun intended) implementations of fpga circuitry
>>
>>57135623
Yes, learn ASM.
>>
>>57135623
Embedded programming or messing around with Arduino.
>>
Anyone here have any good links to tutorials for NASM? Preferably windows to start with but linux works fine aswell.
>>
>>57135730
>tutorials
>not looking for a book
>>
>>57135623
read books
>>
>>57135764
Books are fine also. Generally anything that can get me started.

Got any recommendations? :)
>>
>>57135794
"microwave cooking for one"
>>
C++ is a damn fine language because it allows you to do all the nice things in libraries instead of baking them into the language. But G-d damn are the implementations of those features ugly.
>>
>he uses
void thisIsAFunction(){}
[/code}
instead of
void this_is_a_function(){}
>>
>>57135849
C++ is a massive feature creep that always gets large projects a bloated unreadable codebase behind so many abstractions second only to java where you literally spend 90% of your time just trying to read the damn thing but there is no clear oversight because the abstractions has abstracted away the entire program and the guys who wrote those abstractions quit five years ago and you can't fix their shit becase Q4.
>>
not sure about the style I should use
here's what I have
(defun my-abs (x)
(cond ((> 0 x) (- x))
(t x))
)

this is good right?
>>
>>57135888
  /**
* Contains the actual implementation of the @c tuple template, stored
* as a recursive inheritance hierarchy from the first element (most
* derived class) to the last (least derived class). The @c Idx
* parameter gives the 0-based index of the element stored at this
* point in the hierarchy; we use it to implement a constant-time
* get() operation.
*/
template<std::size_t _Idx, typename _Head, typename... _Tail>
struct _Tuple_impl<_Idx, _Head, _Tail...>
: public _Tuple_impl<_Idx + 1, _Tail...>,
private _Head_base<_Idx, _Head, __empty_not_final<_Head>::value>
{
template<std::size_t, typename...> friend class _Tuple_impl;

typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited;
typedef _Head_base<_Idx, _Head, __empty_not_final<_Head>::value> _Base;

static constexpr _Head&
_M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); }

static constexpr const _Head&
_M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); }

static constexpr _Inherited&
_M_tail(_Tuple_impl& __t) noexcept { return __t; }

static constexpr const _Inherited&
_M_tail(const _Tuple_impl& __t) noexcept { return __t; }

constexpr _Tuple_impl()
: _Inherited(), _Base() { }

explicit
constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail)
: _Inherited(__tail...), _Base(__head) { }

template<typename _UHead, typename... _UTail, typename = typename
enable_if<sizeof...(_Tail) == sizeof...(_UTail)>::type>
explicit
constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail)
: _Inherited(std::forward<_UTail>(__tail)...),
_Base(std::forward<_UHead>(__head)) { }

What did they mean by this?
>>
>>57135888
tfw that point where writing C++ is faster than reading C++ code
>>
personal poll
http://www.strawpoll.me/11458028/
>>
>>57135888
>abstract abstraction
Also, you forgot to mention the unending tests because nobody knows what the fuck the program do.
>>
File: soylentpowder.jpg (138KB, 988x1500px) Image search: [Google]
soylentpowder.jpg
138KB, 988x1500px
>>57135597
But anon, that's a lot of effort, especially since I need to cart all my cooking shit down to the basement kitchen
>Not nutritious enough
That's just objectively false
>>
>>57135924

C++: you better get it right first time, because that shit is write-only!
>>
>>57135925
UTF-8 naming master race
>>
>>57135923
wtf
>>
File: Custom Function.png (73KB, 502x947px) Image search: [Google]
Custom Function.png
73KB, 502x947px
Anyone willing to help me with a javascript function in Google Sheets? I can't figure out what I did wrong, it outputs 4 no matter what the input is.
http://pastebin.com/tKY8rahL
>>
>>57135923
Easy.

Tuple implementation, recursive temple inheritance where there child gets the variadic arg list as the new template and you cut off one of them each time by having <typename T, typename Args ...> and then you have an empty specialization for when you hit the end.
>>
>>57135948
only 84 grams of protein per 2k calories? that's literally worse than little ceasars cheese pizza
>>
>>57135967
You could be programming an OS with less line of codes. Not even kidding.
>>
>>57135969
Could you write this in less than 1500 lines?
>>
>>57135948
If you don't have time to cook yourself a nice meal, your life isn't worth living.
>>
C++ guy here.
Thanks for all the answers.

Will check all that out in the morning.
>>
>>57135992
Yeah I'm new to this. How would I compress this? I didn't think you could since its not numerical.
>>
>>57135948
People that buy this are legitimately autistic. It's not hard to cook a chicken breast and put it on a bed of lettuce.
>>
>>57135967
=
==
===

all not the same
>>
>>57135923
What the fuck am I reading here?
>>
>>57135948
>soy
enjoy your gyno bruh
>>
>>57135996
Well technically you can just write it then just paste it onto two really long lines. So yes.
>>
>>57136017
>Implying literally don't have the time
Don't you think that I'd be cooking if the rewards from eating freshly cooked food were worth it for me for the time spent into it? I just don't WANT to spare the time, it's not that I literally can't.

>>57135973
>Recommended protein intake is 56 grams per day for the average sedentary man.
>Soylent has 84
If I was lifting I'd be drinking shakes as well m8

>>57136030
It's okay for people to do things differently anon
>>
>>57136056
Can you write it in less than 56k characters of the basic character set?
>>
>>57135869
bait
camelCase is objectively better
>>
>>57136070
>He classifies himself as sedentary
N E E T
E
E
T
Cave goblin detected
>>
>>57135573
Not fast approximate inverse square root, you derp. The social media bollocks in the image.
>>
>>57136070
>cooking is a waste of time

look into food prep
You dedicate a few hours per week preparing ingredients and then you store them in the fridge so they're ready to go for every meal.
You also spend less time washing dishes because you only prep ingredients once per week.
>>
>>57136027
GPA=s=>4-s.charAt(0)+65+(s.length>1?({43:0.3,45:-0.3}[s.charAt(1)]):0);
>>
>>57136079
Just include a whole lot of define statements. IE:

#define AA template
#define AB std::size_t
#define AC typename
#define AD struct
#define AE _tuple
..

AA<AB _idx, AC _head, AC... _tail>
AD AE_impl<_idx,_head,_tail>
...
>>
File: Screenshot_2016-10-19-01-42-55.png (2MB, 1357x1968px) Image search: [Google]
Screenshot_2016-10-19-01-42-55.png
2MB, 1357x1968px
/dpt/ what do you do if you're in love but you you're already married to programming?
>>
>>57136048
Idiomatic C++.
>>
>>57136172
Fap
>>
File: 1476805167990.jpg (36KB, 540x405px) Image search: [Google]
1476805167990.jpg
36KB, 540x405px
A tech artist at my workplace started learning C++ as his first language this week and the week before that. He attended the "modern C++" bullshit course and listened to propaganda like

> C got it all wrong
> Pointers are unnecessary
> Don't use arrays
> Don't use char* use std::string it is faster.
> STL is always better than custom implementations.

The first thing he said after that course was:

> I'd rather just use arrays and char* instead, that seems more logical.

Pic related.
>>
>>57136196
> C got it all wrong
Wrong.

> Pointers are unnecessary
Wrong.

> Don't use arrays
Correct.

> Don't use char* use std::string it is faster.
Correct.

> STL is always better than custom implementations.
Wrong.
>>
>>57136172
cry myself to sleep
>>
>>57136225
How fucking autistic can you get anon?
>>
>>57136225
t. ignorant pedantic brainwashed sheep.
>>
>>57136225
>> Don't use arrays
>Correct.
i agree on the rest of points, but you're gonna have to explain in your own words why you think like this, because i happen to think you're full of shit
>>
File: jejj.gif (2MB, 265x308px) Image search: [Google]
jejj.gif
2MB, 265x308px
>>57136173
>>
>>57136196
> Pointers are unnecessary
> Don't use arrays
good lord these people should be arrested
>>
>>57136122
Does shit as stupid or more stupid as this get posted all the time on social media? Hell yeah.
Is it possible this was ironic by the original author but taken as serious by a bunch of commenters? Bet on it.
Is this tweet on her timeline? No.
>>
File: Custom Function 3.png (20KB, 1233x204px) Image search: [Google]
Custom Function 3.png
20KB, 1233x204px
>>57136135
Thanks anon, but how would I put this in the Google code sheet? Don't you have to define the GPA variable first? I'm really new to this.
>>
>>57136250
I think he is
>implying
that you should use vectors instead
>>
>>57136070
You're gonna be a flabby weak sack of shit sooner or later if you get most of your nutrients from that meme
>>
>>57136281
>2000 calories and 82g of protein
>Not including the non-soylent food I eat, which is almost exclusively straight meat
I think I'll be fine
>>
>>57136280
>>57136250
What I mean is you should not use C-style arrays except in trivial cases. std::array and std::vector should be used instead.
>>
>>57136225

>> Don't use arrays
>Correct.

Yeah, no. This is going to be more of a problem going forwards especially when Cilk Plus is getting some of its proposals in C and C++ and one of the things they will add is Fotran/Python array sections/slices syntax into the standard. Unless C++ can add an elegant(haha) std syntax to do these operations in std::array or std::vector, they still have a place to be used.

https://www.cilkplus.org/tutorial-array-notation

Here's the proposal for C2X:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2081.htm
>>
>>57136017
>>57135973
>>57136030
I don't get it, why are you guys so concerned about some chucklefuck who wants to malnourish himself to death?

It's like trying to convince creationists to wear seatbelts because god isn't going to save them them from harm: we're better off without them.
>>
>>57136225
>>57136250
>std::string is faster
>Forced heap allocation
>>
>>57135623

Memeskell.
>>
File: 1474747642950.jpg (30KB, 500x587px) Image search: [Google]
1474747642950.jpg
30KB, 500x587px
>I don't get it, why are you guys so concerned about some chucklefuck who wants to malnourish himself to death?
>It's like trying to convince creationists to wear seatbelts because god isn't going to save them them from harm: we're better off without them.
>>
>>57136313
but a vector is just a representation of an array for plebs who can't into memory management so what you're saying is use arrays without knowing you're using arrays
>>
>>57136325
Because I'm not a jaded fuck like you.
>>
>>57136332
shit, sorry, glanced over that lol
>>
Ruby any good?
>>
>>57134410
What do you lads use to host code? thinking of getting digital ocean and setting up gitlab so I don't have to worry about SJWs taking down my repos
>>
>>57136339
Did you miss the part about std::array?
>>
File: 555.jpg (34KB, 338x305px) Image search: [Google]
555.jpg
34KB, 338x305px
>>57136337
>>57136341

>be whiteknights, be smug and call others edgy
>>
>>57136271
var GPA=s=>4-s.charCodeAt(0)+65+(s.length>1?s.charCodeAt(1)==43?0.3:-0.3:0);
GPA("A+"); // Return 4.3

You don't need to use the "function" statement
>>
>>57136357
there was no part about std::array... what are you talking about?
>>
>>57136377
>std::array and std::vector should be used instead.
>>
>>57136339
Basically. There's no reason not to.
>>
>>57135923
All the underscores and shit are needed so user macros don't fuck shit up since template code is always in headers that you include (leading underscore + Capital and leading double underscore for names are reserved for the implementation)
>>
>>57136382
fug, sorry, i'm distracted.

i'm not a c++ programmer so idk, is the standard array still implemented as a c-style array or is there some overhead and magic going on in the background?
>>
>>57136196
But arrays *are* awful, Anon.
>>
>>57136269
I was fully aware of the first two. The third is unfortunate, because only the opposite finding would prove anything either way.
>>
>>57136401
No, it's implemented as a C-style array. It just has nice properties:
>non-mandatory automatic bounds checking
>doesn't decay to a pointer
>has STL iterators
etc.
>>
Why is c++ so embarrassing?
http://stackoverflow.com/questions/7781746/efficient-way-to-implement-a-bounded-string-formatting-operator-for-use-with
>>
>>57136366
why not just explain it?
is s the parameter of GPA? why the +65+? what if no +/-?
>>
>>57136339
>for plebs who can't into memory management
When will /dpt/ wake up and realize that the "manual memory management" high horse is archaic and detrimental to the software world?
It's like, believing that we should still be writing in assembler because it's faster.

>>57136401
It's possible to write C++ array structures with compile-flag-optional bounds checking, better iteration syntax, and other benefits (e.g. automatic memory management) with literally no overhead in the compiled executable. pointer-to-first-element "arrays" need to die.
>>
This might be a silly question...

Everywhere I see, at work or at conferences people are trying their damnest to move away from C and low level as much as possible.

Will C in the near future ever be rendered obsolete as a language to develop applications in?

(I really hope not, partly because I love the language because minimalism but also because I'd rather quit being a programmer than work in high abstraction land.)
>>
>>57136490
C is dangerous, C is unproductive, and C is old.
I can't say that the high level language we have now are perfect, but there are very very few good reasons to prefer C.
Before you opine, what's the largest project you've written?
>>
>>57136490
its ded
>>
>>57136490
people have already moved away from C. no one uses C except for things that require C
>>
File: Really_Makes_You_Hmmm.png (3MB, 1058x999px) Image search: [Google]
Really_Makes_You_Hmmm.png
3MB, 1058x999px
>>57136490
>Minimalism
>>
>>57136490
Yes, people are using C++ nowadays.
>>
>>57136478
both your responses were to me. so i'll adress them same time.

i'm a professional C programmer for embedded systems. i would say i don't agree with 90% that gets posted here so my opinions are definitely not /dpt/s.
lower level languages are faster, yes, do you need to program in them? if you want your system to be fast, yes.. if you idgaf then no. choice is yours. i like fast software.
>pointer-to-first-element "arrays" need to die.
i think you're confusing arrays with lists here
>>
>>57136490
>I'd rather quit being a programmer than work in high abstraction land.
Because your only skill is rewriting code with slight changes that could be done automatically were it polymorphic?
>>
>>57136533
>a.out

What are the chances he compiled with -O3?
>>
>>57136569
100% since it says -O3 in the image.
>>
>>57136554
Are you inferring that he meant singly linked lists by 'pointer-to-first-element "arrays"'? Because I don't think he did.
>>
Rate my Maybe:

template<typename T>
class Maybe {
public:
Maybe() { }
template<typename U>
Maybe(Maybe<U>&& o) {
if (o.set_) {
set_ = true;
new (&val_) T { std::move(o.val_) };
o.unset();
}
}
template<typename U>
Maybe(const Maybe<U>& o) {
if (o.set_) {
set_ = true;
new (&val_) T { o.val_ };
}
}
template<typename U>
Maybe<T>& operator=(Maybe<U>&& o) {
if (o.set_) {
*this = std::move(o.val_);
o.set_ = false;
} else {
unset();
}
return *this;
}
template<typename U>
Maybe<T>& operator=(const Maybe<U>& o) {
if (o.set_) {
*this = o.val_;
} else {
unset();
}
return *this;
}
template<typename... U>
Maybe(U&&... v) {
set_ = true;
new (&val_) T { std::forward<U>(v)... };
}
template<typename... U>
Maybe<T>& operator=(U&&... val) {
this->~Maybe<T>();
new (&val_) T { std::forward<U>(val)... };
set_ = true;
return *this;
}
~Maybe() {
if (set_) { unset(); }
}
T& operator*() {
assert_set();
return val_;
}
const T& operator*() const {
assert_set();
return val_;
}
T* operator->() {
assert_set();
return &val_;
}
const T* operator->() const {
assert_set();
return &val_;
}
operator bool() const {
return set_;
}
private:
bool set_ = false;
union { std::remove_const_t<T> val_; };
void assert_set() const {
assert(set_ && "Maybe is empty");
}
void unset() {
assert_set();
val_.~T();
set_ = false;
}
template<typename U>
friend class Maybe;
};
>>
>>57136599
>no comments
how am I suppose to read this???????
>>
File: run ali.jpg (59KB, 640x360px) Image search: [Google]
run ali.jpg
59KB, 640x360px
>>57136533
>ada_run.ali
run, ali!
>>
>>57136582
there's actually a possibility that he edited the picture, so no, it's not 100%
>>
>>57136622
He also could have edited the run times, or anything else, by that logic.
>>
>>57136533

Activated my thinking center.
>>
>>57136554
>>57136593
In C, "char*" means pointer to character. You can interpret it as an array of chars, or you can interpret it as a pointer to the first character in the array, both are equally valid without further context.
They could have added like, 5 features to C, and it would have still been very minimal with low level memory management / pointer arithmetic, but would be much safer and less ugly.
>>
>>57136466
b--but ... i'm shitposting... what would be the point if my comments were actually helpful :^)

function GPA(input) {
/* In ascii, each characters are associated to a decimal number
and in this case, uppercase A is 65, B is 66, etc... */

/* The next variable store the grade corresponding to the first letter (at index 0) */
var grade = 4 + 65 - input.charCodeAt(0);

if (input.length > 1) { // If the sign is present
/* This is a ternary operator, it behaves like
if ( condition ) { a;}else { b; } statements.
It works like that: (condition ? a : b) */
grade += input.charAt(1) == "+" ? 0.3 : -0.3;
/* "+=" is a shortener for "grade = grade + x" */
}

return grade;
}


Also, don't learn Javascript. Learn python, C and Haskell.
>>
>>57136645

why so many comments? The code is self evident
>>
>>57136645
thank you

>>57136662
I would hate to work with you, stop assuming
>>
File: PizzaQuest.png (116KB, 1366x768px) Image search: [Google]
PizzaQuest.png
116KB, 1366x768px
Can someone help me with this project im working on for shits? Trying to make a simple yes or no based text adventure with C# in visual studio using an ASP.NET web form. Just want a question to pop up when a user presses the yes or no button and then also when they press it again. I'm new to C# so i dont know the syntax all too well.

>Pic related

If anyone could provide me some basic example to work off of for how i should be writing this that would be great
>>
>>57136643
>In C, "char*" means pointer to character.
yes, that's true, but an array is usually understood as statically allocated by char arr[]
might be a difference of lingo so i misunderstood your point(er)
>>
>>57136645
>has a comment saying A is 65
>still uses magic numbers in his code
Here is your diploma.
>>
File: PizzaQuest2.png (37KB, 986x346px) Image search: [Google]
PizzaQuest2.png
37KB, 986x346px
>>57136674
>>
>>57136528
Check the tiobe index.

>>57136545
You say that like it's a good thing.

>>57136557
No, because I enjoy doing platform specific low level implementations and that is what I do, In C++, which I bloody hate.

For example, writing a fine grained platform specific routine for a library usually boils down to another C++ programmer asking me why im not using shared pointers and lots of other unneccessary features that are not needed. (But they are ""safe"", so they should be used)
>>
>>57136662
It's an efficient way to learn

>>57136667
Actually, he would hate to work with you
>>
>>57136700
my books and my teachers tell me to comment everything

its good practice and better be safe than sorry
>>
>>57136682
Just wanted to make it short while explaining why it's work
>>
File: soobin.jpg (1MB, 4096x2730px) Image search: [Google]
soobin.jpg
1MB, 4096x2730px
https://github.com/blog/2267-introducing-github-community-guidelines

it's safe to code again
>>
File: 74221-120-93CB883E.jpg (237KB, 900x675px) Image search: [Google]
74221-120-93CB883E.jpg
237KB, 900x675px
how do I start amassing a github portfolio?
I refuse to do meme projects
>>
>>57136753
Start something you like.
>>
can someone tell me what I can do so clisp accepts my file?
(defun play (f s)
(cond ((equal f s) 'tie)
((or (and (equal f 'paper) (equal s 'rock))
(and (equal f 'rock') (equal s 'scissor))
(and (equal f 'scissor) (equal s 'paper)))
'first-win)
(t 'second-wins))
)
>>
>>57136746
more bullying than stack overflow?
>>
>>57136764
what if I hate everything?
>>
>>57136746
>Building software should be safe for everyone.
All C and C++ repos have been given their 2 weeks notice.
>>
File: 2dd.jpg (37KB, 600x600px) Image search: [Google]
2dd.jpg
37KB, 600x600px
I just started my compsci degree. Doesn't this look a little crazy for assignment 1 in an intro to java course?

>design a program that takes an integer and then tells you every combination of 1s, 5s, 10s, and 25s which sum to the inputted integer
>for example, if you inputted 10, the output should be:

1x10
2x5
1x5, 5x1
10x1
>>
>>57136773
Why do you wake up everyday?
>>
>>57136793
to hate the shit out of everything
>>
>>57136779
>which sum to the inputted integer
?
did you mean the product of?
And no, not really. That is just loops and modulo desu.
Have you guys done smaller assignments before this?
It should just be consistent with the reading
>>
File: group-project.png (9KB, 1006x111px) Image search: [Google]
group-project.png
9KB, 1006x111px
i'm in charge of the database and database access methods for our group project so i learned PHP and made the scripts. we're over halfway through the semester
>>
File: fefe.png (660KB, 1106x1012px) Image search: [Google]
fefe.png
660KB, 1106x1012px
>>57136793
if I don't post frogs, who will?
>>
>>57136800

This is the first assignment. We've only just began learning syntax and operators.

I did mean the sum. It's like questions like: "you have 86 cents, how many nickels, dimes, etc can you have that sum to 86 cents. Give all combinations of coins".
>>
>>57136779
yeah
if you haven't covered loops and ifs

its simple but I remember our teacher forbid us from using them until we got to them during 101 classes
>>
>>57136813
maybe i am retarded, but I don't think the example you posted does that
>2x5
this doesn't add up to 10?
>>
>circular linked lists

Am I right that this is basically just a linked list but a pointer is added to the head and tail of the list, and when iteration is involved, when you hit the tail just roundrobin to the head?
>>
>>57136798
You should make a botnet in ASM then. Google hiring you in less than an hour is guaranteed. Don't worry about laws, they'll fix that for you.
>>
>>57136838

For 10 cents, there's these possible combinations of coins:

>1x10, or one 10 cent coin
>2x5, or two 5 cent coins
>1x5 + 5x1, or one 5 cent coin and five 1 cent coins
>10x1, or ten 1 cent coins
>>
>>57136779
Look up the modulo operator (%)
>>
>>57136779
it's making you think. sounds good to me
>>
>>57136808
So you're that guy hu
>>
>>57136840
for a singularly linked circular list you point the last ->next to the head
for a doubly linked circular list you point the last ->next to the head AND the head-prev-> to the last
>>
>>57136849
I see now
conditionals and modulo should cover it
>>
>>57136746
So basically I have to accept anyone's pull request if they're a transtrender special snowflake or I'm getting my account deleted?
>>
>>57136746
how long would linus last on github
>>
>>57136807
>PHP (96.4%) Java (3.6%)
Kill meh

Also, only 8 commits though. You could always revert everything
https://github.com/fooman/speedsteradvanced
>>
somebody give me a practical usage of Scala before I blast myself
>>
>>57136872
>head->prev
retard
>>
>>57136899
oh shit, you are actually on the level on intelligence of a spellchecker
amazing
>>
File: e68.jpg (28KB, 665x662px) Image search: [Google]
e68.jpg
28KB, 665x662px
>>57136807
I had a group project last year. There was a grill in my group. She said at the start she can only do html so shes gonna do all the front-end. While the rest of us our doing real work she doesn't even do that. She still didn't know how to use github or even access our aws when we were done the project and presented it. She gave us maybe 10 lines of useful code (which someone else had to commit to the github).
This girl had an internship at google before this project. She will go on to have a high-paying job without doing a single bit of work in her life.
MFW
>>
>>57136926
>level on intelligence of a spellchecker
top irony
>>
>>57136872
Or you just use a circular buffer and don't waste time with inefficient data structures only a pajeet would use.
>>
>>57136936
female privileged
>>
>>57136936
Being a girl in a first world country is literally life on easy mode.

This is why so many guys become transgender.
>>
>>57136936
Git gud. Be an elevated human being like me and stop caring about unnecessary stuff.
>>
>>57136893
well congratulations, you tracked down my group's project. what's the next step in your master plan?
>>
as somebody whose best language is c#

tossing pointers around makes me feel like a smug edgy teenager recording videos of myself doing awkward stunts with airsoft pistols, then watching them repeatedly (alone, of course) while nodding in admiration of how awesome I am

i like this feeling. is it a bad reason to continue learning c?
>>
>>57136960
I don't care about it inasmuch as it affects me. The project was probably easier without an extra person male or female to fuck it up. I just can't understand how people can actually go through life like this.
>>
>>57136946
>he doesn't even understand the performance trade offs of lists vs. arrays
crypto-pajeet trying too hard not to look like a pajeet detected
>>
>>57136956
Only if you look good.

But then again, this helps for guys as well.
>>
File: Screenshot_2016-10-19-02-51-28.png (1MB, 1305x1066px) Image search: [Google]
Screenshot_2016-10-19-02-51-28.png
1MB, 1305x1066px
Is he right?
>>
>>57136992
She was attractive. She had a permanent bitchface though.
>>
>>57136983
There aren't many real-world situations where a linked list is faster than an array-based list. Basically, whenever you're adding elements somewhere in the middle way more than you're ever accessing anything in the list, let alone going over the whole list.

You can also generalize "list" to "deque" and this still holds.
>>
>>57137003
>permanent bitchface
Only adds to it, like with men.
>>
>>57137006
oh ok, what if say, your list is being built up by randomly incoming strings like say, names of people and you're bubbling them into order?
how much faster is three pointer operations against reallocating and memmoving a whole array?

seriously, shut the fuck up and go back to school
>>
>>57137046
>oh ok, what if say, your list is being built up by randomly incoming strings like say, names of people and you're bubbling them into order?
>Basically, whenever you're adding elements somewhere in the middle way more than you're ever accessing anything in the list, let alone going over the whole list.

>seriously, shut the fuck up and go back to school
Ironic coming from someone who sounds like the typical algorithmic complexity overstating street shitter.
>>
>>57136981
>is it a bad reason to continue learning c?
The only thing I don't like about C, is that there isn't a lot of job offers in my area.
>tossing pointers around makes me feel like a smug edgy teenager recording videos of myself doing awkward stunts with airsoft pistols, then watching them repeatedly (alone, of course) while nodding in admiration of how awesome I am
I get the same feel when doing anything with recursion.
>>
>>57136977
Thanks. So I'm planning to wait for Trump, a.k.a Hitler2, to be elected and infect GPS satellites with botnets effectively starting a nuclear apocalypse.

I'm also currently building a railgun superstructure around Jupiter orbit to destroy the world in the event some humans survive.
>>
>>57137067
neetshit detected
>>
>>57137076
>Thanks. So I'm planning to wait for Trump, a.k.a Hitler2, to be elected and infect GPS satellites with botnets effectively starting a nuclear apocalypse.
you don't really think he's going to be elected do you? if you've watched CNN/MSN/any other legitimate news station in the past year you'd know it's basically a 1 woman race at this point
>>
>>57137046
Exactly what I would expect from a pajeet to say. Congrats.
>>
>>57137091
Exactly what I would expect from a pajeet to say. Congrats.
>>
>>57137091
>>57137098
Exactly what I would expect from pajeets to say. Congrats.
>>
>>57137123
>>57137098
>>57137091
Exactly what I would expect from pajeets to say. Congrats.
>>
>>57137091
>>57137098
>>57137123
Exactly what I would expect from pajeets to say. Congrats.
>>
>>57136996
What's this from?
I'm kind of paranoid about abbreviating my function names now.
>>
>>57137091
>>57137098
>>57137123
>>57137152
>>57137153
me
>>
>>57137091
>>57137098
>>57137123
>>57137152
>>57137153
So that's what recursion is!
>>
>>57137088
I'm sorry but the majority don't use logic and coherent thinking to chose their candidate.
>>
>>57137153
>>57137152
thank you for correcting the record
>>
>>57137168
...? clinton has a 20 point lead.
>>
>>57137162
>>57137162
>>57137162
>>57137162
Samefag
>>
>>57137156
SE
System engineer
>>
>>57137076
>So I'm planning to wait for Trump, a.k.a Hitler2, to be elected and infect GPS satellites with botnets effectively starting a nuclear apocalypse.
>I'm also currently building a railgun superstructure around Jupiter orbit to destroy the world in the event some humans survive.

You are dumb.
>>
>>57137178
>Clinton is the logical candidate
>>
>>57137190
>Tripfag
Haha no.
>>
>>57137208
What's wrong with tripfagging?
>>
>>57137232
post your face when you just got TOLD by a nigga

https://www.youtube.com/watch?v=YgHNtzxO0y8
>>
>>57137232
Is your identity revelant? No.
>>
>>57137232
bait
also, tripping is good because it allows me to filter you shitters
>>
>>57136645

Superior (written in coffeescript)
bail = (message) ->
console.error message
process.abort()

gpa = (input) ->
code = input.toUpperCase().charCodeAt(0)
base = 69.0 - code
modifier = input[1]

return 0.0 if code is 70 # Grade F
bail "invalid letter grade" unless code in [65..68]
switch modifier
when '+'
if code is 65 then bail "A+ grade does not exist"
else base + 0.3
when '-' then base - 0.3
when undefined then base
else bail "unrecognized grade modifier"
>>
are we tripping now
>>
File: Screenshot_2016-10-19-03-22-07.png (2MB, 1357x1972px) Image search: [Google]
Screenshot_2016-10-19-03-22-07.png
2MB, 1357x1972px
Why aren't you programming with a qt?
>>
should i learn Ada? it looks like a very aesthetic language and i like the picture of Ada Lovelace as the logo as well as the name
>>
>>57137319
Because I only know touch-typing, I can't do 'intense sexual typing'.
>>
>>57137319
>error: 'qt' was not declared in this scope

>>57137362
it's okay, actually
>>
>>57137387
>it's okay, actually
Lies
>>
>>57137319

I have not had a need for a cross-platform GUI framework, so I don't tend to use Qt much. Sorry.
>>
>>57137319
no qts want to program with me
>>
>>57137429
Programming jokes are universally groaners desu
>>
>>57137445
>no qts want to program
There. I abstracted your assertion.
>>
>>57137472
I'm a qt
>>
How many people are in this board?
>>
>>57137503

Prove it.
>>
>>57137503
be my qt bf?
>>
>>57137515
62
>>
>>57137528
I'm cross-gender and bloated
>>
>>57137515
We have probably under 200 active posters on a given day.

People lurking is probably in the thousands.
>>
>>57137564
why are they silent
>>
>>57137584
Would you rather they post and flood the thread?
>>
>>57137515
I am.
>>
hey /dpt/, since I have repeatedly failed at getting a job, I need a project to show off. I'm working on a regex-searchable dictionary, but there are only so many features I can think of adding in.

What do?
>>
>>57137545
Wow. This website really is unpopular, for a reason though. I guess I'm going back to R eddit (omg this is even censored...). At least, they have a proper ranking system and discussions are not made by useless autistic pedophiles bashing at each other.
>>
>>57137599

put it on your shithub and move on
>>
>>57137599
treat github as your job for 3 months while you apply to kind of shitty jobs so they can be your practice jobs and help you get better at interviews if you get them. you can back out after the interview even if they pick you and they won't care since they have a shitload of other people who want it too
>>
>>57137362
It's top notch 2bh
>>
>>57137607
>Many people upvote it, therefore it's better
Yeah go back there. We don't want people kike you here.
>>
>>57137564
I'm sure if there were only 200 people posting the board would have a much higher quality.
>>
>>57136767
Remove the stray quote after rock, and don't put the close paren on a line by itself
>>
>>57137607
Retarded thinking, the post.
>>
>>57137647
But there have been 68 unique posters inthis thread. Look at the right bottom corner
>>
> reading data from a .obj file with c++
> have to malloc the array of vertices/elements so I can return the array's pointer from a function as a local variable and have all the elements be sequential
> compare the output of what I have written to read from the file to a copy pasted copy of the vertices/elements from the file itself
> every index of both arrays is the same
> each array gives me a different output when I try to draw it with openGL
> neither makes remote sense anyway
>>
>>57137362
It's not considered a modern language by many, but jobs that ask for it exist and are mostly well paid.
>>
>>57137673
And I'm talking about a board with more than a hundred threads.
>>
>>57137614
what do you mean move on?

>>57137636
I've been applying to every coding job I can get. It's not panning out
>>
>>57137711

Go do something else

your regex dictionary is finished
>>
>>57137711
>I've been applying to every coding job I can get. It's not panning out
did you even read my post? i said basically do NOT that
>>
>>57137675
It's as capable as c++, but with the benefit of not trying to be the be all end all of languages. So the syntax isn't a huge mess.
>>
>>57137735
sorry, I honestly skipped the second half of that.

>>57137721
oh...

I don't really have any more ideas.
>>
Btw are mods able see our IP or not?
>>
>>57137675
There really is no reason to not be considered a modern language, the latest standard is Ada 2012.
Besides, most people I see online decrying it as an old or outdated language haven't used it since the 80s.
>>
>>57137774
Of course, faggot, how else do you expect bans to work?
>>
>>57137554

>bloated
Clearly not a qt then.

>>57137584

Nothing important to say?
>>
>>57137800
b--but faggot, bans could be server side and nowadays it's common to have IP at least hashed
>>
>>57137774

Probably. It used to be that way on 8ch before Firetires decided to hash everything due to abuse.
>>
>>57137846
That's only because half the users on 8ch upload cp.
>>
>>57137791
It does not matter for public approval what people that use the language think or know about the language. People judge you and your projects generally without expertise.
>>
>>57137846
I think it's a bad design choice. The whole website is a PHP mess though so no wonder.

Pretty sure a pure C server could handle as many requests /s with better optimization and webp image encoding
>>
>>57137852
Nah. It's one faggot that keeps changing IP and posting every 12 hours on the hour. The pedos on /b/ mostly keep things to "barely legal".

>>57137879
Site was written in PHP because it was inherited from another codebase. Site doesn't really have too many performance issues. Just bugs from time to time.
>>
>>57137910
So why is Nishimura saying boards will be deleted if donations don't increase?
>>
>>57137966
Blackmailing people on niche boards that might me more willing/able to pay to keep their special community alive..
>>
https://github.com/opal/opal/issues/941
>>
File: 1476837161437.jpg (7KB, 259x194px) Image search: [Google]
1476837161437.jpg
7KB, 259x194px
>>57137991
>>
>>57138065
>If you want him removed, start working on Opal and contributing as much as him to everything he did for Opal so we have a replacement that's more in orientation with your morals and views.
>
>Protip: you won't because you can't.

Funny how easy it is to spot anons outside 4chan :^)
>>
>>57137966
I think we're talking about different *chans now.

Anyways, 4chan's issues aren't necessarily due to the codebase. It's a revenue problem. You've got a site with 150 million views per month, and yet nearly every advertiser wants to stay away from it like the plague. To put that number into perspective, 87 million people watched the first presidential debate across all news networks. Yet despite our popularity, adviertisers overlook us because

A. A large percentage of us use adblockers
B. We allow porn
and
C. A good portion of our users are pretty fucking racist, and it would trigger an outburst from SJWs to be supporting our site.

That said, Wikipedia runs ad-free as well, and stays afloat for the same reasons 4chan is willing to stay afloat -- begging for money every so often.
>>
>>57138065
>>57138090
Wait, I didn't see his avatar because of umatrix... but I think my comment is still valid
>>
>>57138120

And once 4chan goes away, free speech on the internet is finally over.
>>
>>57138181

New sites will pop up to take its place, if need be. Alternatively, Martin Shrkreli will buy it out.
>>
NEW THREAD!!

>>57138224
>>
>>57138120
If I had the money to buy and run it, I'd do it.

I like to fuck with people, and making random changes to just watch the butthurt would sure be entertaining for a while.
>>
>>57136936
Reminds me of a group project I had, this retarded girl was my partner and we were doing a 3D seismic interpretation class... Of course I ended up doing 99% of the work because her attempts were shit, the parts she did do were blatantly wrong, estimates for oil and natural gas were retardedly high etc. She basically had no idea wtf she was doing, no idea how to use the software or how seismic works, no idea how to calculate reserves, or really anything.


Of course she immediately got multiple job offers at big oil companies and now makes 6 figures doing jack shit.


Fuck the industry, fuck female privilege, fuck all this bullshit.

"oil is a good old boy's club!" my ass. Every single remotely attractive (i.e. <300 lbs) girl in my department immediately got multiple offers for internships and jobs despite some not even meeting the minimum requirements for GPA and the like, and having no research or really anything else to show.

Utter bullshit.
>>
>>57137872
Yeah I know, it's just stupid of them to do that. Same with saying Fortran is outdated (bonus trigger points for calling it FORTRAN) like naggers the latest standard is Fortran 2008 and includes all manner of cutting edge features like co-arrays. Yet it gets judged on Fortran 77, and Ada 2012 despite being an awesome, clean, readable, modern language is judged on what it was back in like 1983. Yet people don't judge Python on what it was in '95, or C circa '73 or C++ circa '83.

Same with Common Lisp too, the complaints about the language are far more outdated than the language, like being too big and bloated? It's positively slim compared to "modern" garbage like Java.


tl;dr normies are fucking retarded.
>>
>>57138065
I've read that thread multiple times and every time it gives me cancer all over again.
>>
>>57138685
What happened to you so you hate yourself this much
Thread posts: 329
Thread images: 33


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

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


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