[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: 323
Thread images: 13

File: dpt.png (554KB, 934x1000px) Image search: [Google]
dpt.png
554KB, 934x1000px
What are you working on, /g/?

Previous thread: >>61437065
>>
>>61442888
brogram me a benis :DDDDD
>>
repoastan question:

what's the best free online guide to Guile Scheme, or is the documentation as good as it gets

I wanna learn it so I can add module functionality to my C++ programs
>inb4 lua
I like lisp, even if I'm not very good at it
>>
>>61442832
When will this stupid "durr .NET is not portable!" meme finally die?
>>
>>61442888
<html>OP IS A COCK EATING FAGGOT
>>
>>61442914
It is portable.
>>
>>61442936
At least it's not hijab bullshit
>>
>>61442954
That's my point!
>>
>>61442914
>.NET
>not Mono
>>
>>61442960
What's so bad about a girl wearing a hijab?

Why is /dpt/ so narrow-minded?
>>
>>61442962
Oups sorry.
>>
>>61442936
You're just jelly because OP got trips and you didn't.
>>
Reminder to punish the summer kiddies by hiding your (You)s
>>
// faggot.python
if op print faggot
>>
>>61442936
Impressive programming skills my dude
>>
>>61443060
fizzbuzz();
print op is a faggot
>>
>not posting Enterprise Fizz Buzz
interface FizzBuzzable {
public int value();
public String doFizzBuzz();
}

final class FizzBuzzableNumber implements FizzBuzzable {
private final int num;
public FizzBuzzableNumber(int n) {
this.num = n;
}
public final int value() {
return this.num;
}
public final String doFizzBuzz() {
return new Integer(this.num).toString();
}
}

abstract class DivisibleNumber implements FizzBuzzable {
protected final FizzBuzzable original;
public DivisibleNumber(FizzBuzzable origin) {
this.original = origin;
}
public final int value() {
return this.original.value();
}
public final String doFizzBuzz() {
String fizzBuzzed = new String("");
if (this.isDivisible()) {
fizzBuzzed += this.fizzBuzzing();
} else {
fizzBuzzed += this.original.doFizzBuzz();
}
return fizzBuzzed;
}
protected abstract boolean isDivisible();
protected abstract String fizzBuzzing();
}

final class NumberDivisibleByThree extends DivisibleNumber {
public NumberDivisibleByThree(FizzBuzzable origin) {
super(origin);
}
protected final String fizzBuzzing() {
return "Fizz";
}
protected final boolean isDivisible() {
return ((this.value() % 3) == 0);
}
}

final class NumberDivisibleByFive extends DivisibleNumber {
public NumberDivisibleByFive(FizzBuzzable origin) {
super(origin);
}
protected final String fizzBuzzing() {
return "Buzz";
}
protected final boolean isDivisible() {
return ((this.value() % 5) == 0);
}
}

final class NumberDivisibleByThreeAndFive extends DivisibleNumber {
public NumberDivisibleByThreeAndFive (FizzBuzzable origin) {
super(origin);
}
protected final String fizzBuzzing() {
return "Fizz Buzz";
}
protected final boolean isDivisible() {
return (((this.value() % 3) + (this.value() % 5)) == 0);
}
}
>>
File: RenderDoc.png (19KB, 654x326px) Image search: [Google]
RenderDoc.png
19KB, 654x326px
How do people digest asm you don't know the full purpose of?
Do you translate it or just dig in immediately?
>>
>>61443154
what don't you understand?
>>
File: Iranian_Fashion.png (655KB, 1166x701px) Image search: [Google]
Iranian_Fashion.png
655KB, 1166x701px
>>61442976

>Not using .NET Core
>Not embracing the future of technology before it's even stable or even useful

>>61443055

You need a colon after op, and parentheses around faggot.

>>61442980

If Islamic women were told by society and by their family that they were free to wear whatever they want, how many of them would still choose to wear the hijab?
>>
>>61442914
read closer
it just says C# is less portable than java
it says nothing about .NET's portability
>>
>>61443180
I'm just wondering mainly.
I usually write shaders in HLSL or GLSL and I'm thinking if I should just translate it for myself or if it's wiser to just read it as is.
>>
>>61443196
the hell happened between 1970 and 1980?
>>
>>61443154
why do you think are programming languages used?
>>
>>61443218
https://en.wikipedia.org/wiki/Iranian_Revolution
>>
>>61443201
>.NET
fuck off pajeet
>>
>>61443218

https://en.wikipedia.org/wiki/Iranian_Revolution
>>
>>61443223
Because they're easier to understand. But i'm not asking about that dummy. I'm asking about what your approach to this is.

I don't have the source.
>>
>>61443207
just write your own
>>
>>61443237
>>61443228
>supported by various leftist and Islamist organizations
fugging gommies reeeee
>>
>>61443201

C# is portable everywhere .NET is portable.
>>
>>61443255
>just reinvent the wheel
Why do I even bother asking. I should just have translated it immediately.
/dpt/ is for dummies.
>>
>>61443237
>>61443262
>tripfag
found the pajeet
>>
/dpt/:
>how do I use that library?
write one on your own

/stackoverflow/:
>how do I write this
use this library
>>
>>61443089
>throw away your valid code
It's dead code. I'm reading the RDTSC, I'm storing it. Later I'm reading RDTSC again and calculating something I don't use.

It's plainly dead code.
Would you expect your compiler to not eliminate dead code? It's as dead as code gets. It's this:
int x=a; //a is declared elsewhere
//cycles pass
int b=x-a; //a has been/can have been altered

Note how b isn't being used and x is only used in calculating b.

This is exactly what's going on in my case except it's done inside a constructor/destructor. Would you expect a declared unused std::vector to just stick around when it's not used?

Sepples programmers will make any excuse for their cruddy langauge.
>>
>>61443261

Basically. Despite trying to seem as tolerant and progressive as possible, the left doesn't actually like women. Even Chairman Mao tried selling 10 million Chinese women in a trade deal.
>>
>>61443262
yeah, but java still hits more systems than C# tho, doesn't it?

I'm not seeing what was incorrect in the original reply

what do you disagree with it about
- java is more portable than C#
- Java has more libraries
- .NET is all C# really holds over Java in terms of libraries
>>
>>61443196
>If Islamic women were told by society and by their family that they were free to wear whatever they want, how many of them would still choose to wear the hijab?
I've been to Islamic countries and I know for a fact that they are not forced to wear the hijab. The fact that they choose to wear it is just used to perpetrate the myth that they're not free not to wear it created by the islamophobic right.
>>
>>61443309
Can I see your code? I'm curious now.
>>
>>61443316
Dumb tripshit.
>>
>>61443342
>>61443342
>I've been to Islamic countries and I know for a fact that they are not forced to wear the hijab

sure, not by law, but there's always stories of women going without them and getting fucked up/killed and everyone just kinda turning a blind eye
>>
>>61443398
>muh stories
>it's true, I saw it on Fox News!
Anon, please!

The funniest part is how you take issue with a radical Muslim minority forcing women to dress in a certain way but you don't say a word about the large majority of our hypocritical Western society shaming women into shaving their armpits or face social stigma.

It's almost as if you're not really worried about freedom, almost as if freedom's just a facade and a pretense and your real motives are racist and xenophobic.
>>
>>61443207
What do you use to lint your GLSL shaders? The reference compiler sucks. I fucking hate being spammed with this shit every time I recompile shaders
./glslc model.vert
model.vert
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.

cp model.vert bin/
>>
Is there a way to link to a major version of a library. I want to link to libGLEW.so instead of libGLEW.so.1.13 or libGLEW.so.2.0 so I can have my binary work on both my computer and my server.
>>
>>61443437
I don't remember any stories of western women having acid thrown in their faces for refusing to shave their pits
>>
>>61443437
this reads like low grade b8

you can do better than this anon
>>
Hey /dpt/ help a brother out.
Am doing x86 asm and trying to do stuff with negative numbers, however the results come out all fucked up.
IE -4/2 gives me 7FFFFFFE, notice the 7 instead of an F that can be negated.
What am I supposed to do?
>>
>>61443437
It's the armpit shaving guy again. No one is coercing you into shaving your armpits, but it's the toll you pay to get your ass fucked.

When you're being intimidated into hijab, that's a little different. Not to mention hijab reduces women to chattel. You're not being turned into a sex slave by shaving your armpits, no matter how much you want to be one.
>>
>>61443466
install gentoo
>>
>>61443490
>It's the armpit shaving guy again
lol is he a regular around here
has he ever posted code or does he just bait?
>>
>>61443445
You could link to a local copy of the shared library. But it would probably be easier to install an older version of libglew on your computer

apt-get install libglew=(version you want)
>>
>>61443490
>muh stories
>>61443457
>intimidated into hijab
So basically you guys' argument is just to repeat yourselves ad nauseam because a lie repeated enough times becomes a truth?

Stop watching Fox News. I'll say it again, I have actually BEEN to ACTUAL Islamic countries (UAE and Indonesia, to be specific) and know for a fact that is not true.
>>
>>61443331

Yes, but it's worth keeping in mind that when you are talking about Java vs C# portability, you're more or less talking about JVM vs CLR (aka .NET) portability.

>>61443342

>I've been to Islamic countries
Which ones? Are they run by the Qur'an as we see in Iran and Saudi Arabia, or are they merely majority Islam like Turkey? Is there a culture of secularism, or is there a de-facto Islamism? Even if it's not illegal per se, it might be the case that your father or husband will beat you if you go out of the house without a hijab on. In some countries, notably Saudi Arabia, women cannot leave the house without permission of a male guardian, which may be her brother, father, or husband. Those men will almost always enforce the hijab requirement.
>>
>>61443539
>can't even reply properly
kek
>>
>>61443539
>the entire muslim world is the same
wow anon way to paint with broad strokes
>>
>>61443357
>I'm curious now.
It's the most trivial shit anon.
Why are you curious? Because you're too stupid to understand it before despite my super concise explanation?
struct ScopeTimer
{
unsigned long long startTime;
void endAction(unsigned long long){
//printf("FrameTime:%f\n",time);
};
ScopeTimer(){
unsigned int dummy;
startTime=__rdtscp(&dummy);
}
~ScopeTimer(){
unsigned int dummy;
unsigned long long endTime=__rdtscp(&dummy)-startTime;
endAction(endTime);
}
};
//Usage
ScopeTimer scopeTimer;
//Inside a block you wish to time

Maybe you'll learn something.

Now if I wanted to use this construct I have to make a macro, something like
#ifndef _DEBUG
#define TIMERBLOCK(x) ScopeTimer (x);
#else
#define TIMERBLOCK(x)
#endif


And this is probably the most trivial case where RAII can be removed by the compiler. Can't imagine how much it shits up your code if you use that shit normally. It optimized away the call but it left in the instructions.

Clang.
>>
>>61443466
>gives me 7FFFFFFE
How do you know that?
>>
>>61442888
Today I learned how to use std::thread in C++, its surprisingly simple and convenient.
>>
>>61443579
Like in any languages.
>>
>>61443579
I'm proud of you anon
>>
What would you call "knowing a range of languages"?
Developer tools?
>>
>>61443566
Except you did it first, jackass.

>>61443563
>I don't have an argument but look, you have made a mistake! heh, tough luck, pal!

>>61443549
Then the problem is clearly Saudi Arabia, not Islam (or the hijab).
>>
>>61443574

Because I dump hex results and check.
>>
>>61443624
>I dump hex results
how?
>>
>>61443573
>ifndef
meant ifdef obviously.
>>
>>61443549
Iran and Saudi Arabia COMBINED represent under 8% of the total Islamic population of the world.
>>
>>61443609
>"knowing a range of languages"
variety;
a lisp
a scripting lang
a C dialect
an ASM lang
+ python and javascript because everyone knows them nowadays
>Developer tools?
that's an incomplete question anon
>>
>>61443631

I made a forth OS.
>>
Aaaaaand another thread ruined by discussion about some desert religion.

>>61442960
Thanks for starting this, faggot!
>>
>>61443613
>I don't have an argument but look, you have made a mistake! heh, tough luck, pal!
nah, it's more like I gave up on the idea of you arguing with me in good faith, so now I can just laugh at you and dismiss your points out of hand
>>
New thread?
>>
>>61443656
Something that would go on a resume. For instance instead of writing:
>I know a wide range of languages
what else could you put? Something more professional sounding.
>>
>>61443684
>New thread?
Are you a bot?
>>
>>61443579
Getting a thread running isn't the hard part. Data races aren't even the hard part. The hard part is minimizing the time wasted synchronizing.
>>
>>61443674
Told you faggots in the previous thread that the problem wasn't the pic the OP used, but Islamophobia.
>>
>>61443700
No, I'm just asking for a new thread.
>>
>>61443702
>The hard part is minimizing the time wasted synchronizing.
This.
That's why virtually every language construct I see that's made for doing threading is useless to me.
I wish someone would give a shit about threading.
>>
>>61443722
Use OpenMP.
>>
>>61443539

>UAE and Indonesia, to be specific

https://en.wikipedia.org/wiki/Legal_system_of_the_United_Arab_Emirates
>The UAE penal code is not based strictly on Islamic Sharia, but derives elements from it. Sharia law does exist in the UAE but is only used in specific circumstances, such as in the payment of blood money. Individual emirates have also suspended some Sharia punishments such as flogging, replacing them with jail terms.

https://en.wikipedia.org/wiki/Law_of_Indonesia
>Law of Indonesia is based on a civil law system, intermixed with customary law and the Roman Dutch law.

Way to go. You went to two Islamic countries not actually run by Islamic law, except maybe in civil matters (UAE)

>>61443652

And they are not the only Islamic countries to practice Sharia

https://en.wikipedia.org/wiki/Application_of_Islamic_law_by_country
>>
>islambaphobiyerrr
the problem is summer kiddies who don't know when to keep their mouths shut.
you're also a part of the problem
>>
>>61443702
I'm sure you're right. If I want hardcore parallelism I'll use CUDA though, I'm working in science. I just wanted to get used to the standard library feature, and I was surprised by how easy it is to make something basic run faster.
>>
>>61443738
So you admit that the problem isn't the Islamic religion per se, but the lack of separation between church and state?
>>
>>61443684
yes please
>>61443689
experience with the language by itself isn't very useful or impressive, detail what major libraries you have experience with, and major projects you've made
sum it up in a moderately sized paragraph
if you use up too much space, cut away the less important shit. have one good paragraph explaining all of the most complex shit you've worked with/on. you can explain further at a job interview

alternatively use bullet points and explain in 1-2 lines the most complex things/ interesting things you've done with each language
>>
>>61443764
Yes the problem is that orthodox islam is totality, not just a religion. There's no "render unto Caesar" in Islam.
>>
>>61443661
The problem is in the dump of the value.
>>
>>61443764
the islamic religion more often than not seeks to become the state tho
see >>61443799
christianity has clauses that say you listen to the gov first unless there's a direct major conflict between belief and religion.
islam has no such clause
>>
Pick one:
>mutex/semaphore
>async/threadpool
>Communicating sequential processes
>Software transactional memory
>Actors
>>
>>61443844
f. writing single-threaded code
>>
>C++ Primer
>1400 pages
"""""""""""""""Primer"""""""""""""""
whats ur issue, sepples
>>
>>61443764

Let me ask you something: if you Google "Turkish women", how many of them are wearing a hijab? Not a ton. Probably about 1 in 10. Turkey has no Sharia law (although Erdogan is worrying, and they need another coup, preferably one that succeeds), but most of its population are Muslims. Of course the problem is separation of Church and State (or Mosque and State as it may be). The problem is that a lot of the middle east likes that idea of Islamic law.
>>
>>61443466
Are you using idiv rather than div?
>>
so what the shit is std::forward ?
>>
>>61444035
Forward iterator.
>>
Write a C program to check whether a number is hexadecimal or not
>>
>>61443972
crazy ain't it?
>>
>>61444052
That's impossible though. Is 1 hexadecimal or not?
Is 10?
>>
>>61444043
lol no

it's related to std::move
>>
Will artificial intelligences ever produce perfect code? Or least code as good as, or better than the world's best programmers?
>>
>>61444035
It's what you use instead of std::move when you're using universal references. Scott Myers has a great book on the matter that you should buy.
>>
>>61443972
>Using pig disgusting C++ in 2017
Time to use a modern safe language such as Rust people.
>>
How does Javascript know whether the contents of a {} is an object literal or a code block?
>>
>>61444125
>ever
Yes. If we live long enough as a species this will happen.
>>
bogpill me on Rust
>>
>>61444144
>Rust

can it handle low level memory? how?
>>
>>61444144
>JUST
Not second to haskell in syntactic pig disgustingness
>>
how long does it take to learn to program if you have such a low IQ that you would ask an open-ended vague question like this in the first place and plan on using C#??
>>
>>61444169
unsafe mode
>>
>>61444136
a whole book to find a use case for std::forward?

you fucking people lost your minds
>>
>>61444192
you already have a use case for std::move don't you?
Same shit but for universal references.
>>
>>61444183
ok but what's the syntax like?
>>
IDLE's been hanging on me with how much data I'm feeding it. What DE do I use with Python now?
>>
>I've been programming in C and C++ for over 25 years. I have a PhD in Computer Science from a top-ranked program, and I was a Distinguished Engineer at Mozilla where for over ten years my main job was developing and reviewing C++ code. I cannot consistently write safe C/C++ code. I'm not ashamed of that; I don't know anyone else who can. I've heard maybe Daniel J. Bernstein can, but I'm convinced that, even at the elite level, such people are few and far between.
http://robert.ocallahan.org/2017/07/confession-of-cc-programmer.html
ahahahhAHAHAHAHAhaha. oh damn. ahhaAH.
>>
>>61444125

As soon as AI can learn to speak perfect English and also read the minds of managers and ask the right questions, then yes. The job of a programmer is to transform an abstract idea into a program. Computers are great at generating code, but they suck at understanding abstract ideas.
>>
>>61444207
yeah move is straightforwards

universal reference is T&& with a template param and only that, right?
>>
>>61444264
Couldn't there conceivably be an AI that can speak with a team of developers and managers and understand exactly what needs to be implemented, and do it at at level of at least the greatest programmers on Earth?
I know this might not ever happen, or at least for a long, long time.
>>
File: fuckenidiv.png (12KB, 720x401px)
fuckenidiv.png
12KB, 720x401px
>>61443466
>>61443975

Yeah, reading more about it it turns out that idiv uses a 64bit register combining EDX:EAX(apparently this is the notation for combined registers wew lad) so one has to extend the sign to the edx part using cdq(which I was missing).
It works now, fucking x86 documentation mang.
>>
>>61444288
Mostly.
If the type T is deduced, then the && is deduced either to an rvalue or lvalue ref as appropriate. Similarly, std::forward will pick rvalue or lvalue as appropriate rather than std::move which gives an rvalue
>>
>>61444311

>understand exactly what needs to be implemented
That's the problem.
>>
>>61444366
Right, but it's not as if humans are perfect at that either.
>>
>>61444288
Or auto iirc

https://isocpp.org/blog/2012/11/universal-references-in-c11-scott-meyers
>>
>>61444311
The first half of that already exists. It's called a prolog interpreter.

Problem is it's slow as fuck.
>>
>>61444360
if the nested callable also accepts a T&& param do we even need forward, or can just pass the argument as is?
>>
>>61444252
So this is why they make rust?
I don't see how you can have issues writing safe C though.
>>
>>61444213
fn main() {
unsafe {
std::::io::::println!!();
}
}

$ rustc main.rs

Error your code is unsafe :-DDDDD
>>
>>61444252
No way in hell would I ever trust my life in the hands of a machine or mechanism that is powered by software written in C or C++.
>>
>>61444476
>flies in planes
>uses cars
>attached to hospital equipment during triple bypass surgery
>>
>>61444252
this is why their browser sucks

safe code doesn't just happen, you write it like software for airplanes
>>
>>61444522
oh god...it worse than I thought.
>>
>>61444386

Right, and you expect a developer is going to be capable of producing a program that can do his job better than himself? You're literally trying to put yourself in the shoes of the person asking you to make a program to figure out what they want from what they're not telling you. Managers don't know shit about programs, so the job of the developer is to fill in the blanks and ask questions. We suck at this, but an AI will be worse for quite a while.

Natural language processing is a hard task already. Critical thinking is an even harder task.
>>
>>61444252
Daniel J. Bernstein can't write secure code

https://en.wikipedia.org/wiki/Qmail#Security_reward_and_Georgi_Guninski.27s_vulnerability
>>
>>61444728
https://en.wikipedia.org/wiki/Djbdns
>>
>>61442888
It's so wonderful to speedup code by at least 10X.

>>61442910
Use Chicken instead of Guile. Check out the bind egg. Makes FFI so fucking easy.
>>
>>61444449
Install Anaconda and PyCharm.
>>
C++ references are retarded
>>
>>61444763
>>61444728
>>61444476
>>61444252
Reminder that Redox OS is already on version 0.3.0. Soon we won't have to rely on any software written in C for our day-to-day computing.
>>
>>61444883
>Soon we won't have to rely on any software written in C
>Does he say as LLVM, which took a billion time the effort some toy front-end took is still written in C++
>>
Explain why I SHOULDN'T define an abstract Video class as a basis for my renderer and then specialize it through virtual methods for the various platforms such as OpenGL, Direct3D etc.

Hard mode:
>no Pajeet, no POO
>>
>>61444960
OOP hate is a meme
OOP has its use cases
>>
Soon C will be dead and airplanes will run on Javascript.
>>
>>61444960
Because you should avoid inheritance. Use an adequate design pattern instead.
>>
>>61444827
>Use Chicken instead of Guile. Check out the bind egg. Makes FFI so fucking easy.
what exactly makes it easier?
it seems both are mostly R5RS implementations, and chicken's bind documentation mentions that it only works for a subset of C/C++
>>
>>61444975
>C will be dead
Haven't people been saying this for like 20 years or so?
>>
>>61444883
So when are we going to see Steam and SteamOS games ported to Redox?
>>
>>61444960
abstract classes that don't actually do or implement anything are dumb, that's why.
you're saving no real effort in the long run. just adding more shit you'll need to work around. you don't need them to inherit from the same class to have similarly named methods. there's literally no argument for why you WOULD do what you are talking about
>>
>>61444998
Bind covers the overwhelming majority of FFI cases, at least for my C uses.

It's literally as easy as
bind-options export-constants: #t)(bind* "#include \"engine.h\"")
. That's an actual line from my code which imports:
         init
cleanup
clear_screen
make_basicblock
make_ultrabasicblock
make_air
unload_block
getneighbor_coords
outline_block
finite_draw_cursor
load_image
diorama_begin
diorama_add
diorama_end
unload_diorama
diorama_alter
diorama_getblock
diorama_getneighbor
diorama_getx
diorama_gety
diorama_getz
make_diorama
menu_make
menu_render
menu_alter
menu_hide
menu_show
finite_begin
finite_register
finite_end
unload_finite
finite_getblock
finite_getstate
finite_getneighbor
finite_getdiorama
finite_getdiorama_n
draw_compiled_finite
finite_alter
finite_render_depth
make_finiteworld
finite_getx_ct
finite_gety_ct
finite_getz_ct
finite_gettotal_ct
finite_getd_x
finite_getd_y
finite_getd_z
read_block_data
block_data_begin
block_data_add
block_data_end
xoroshiro_randomize
xoroshiro_random_flonum
TOP
BOT
LEFT
RIGHT
FRONT
BACK
opposite_side
SOLID
TRANSLUCENT
SEETHROUGH
WATER
update_screen
framesleep
finite_mouse_pick
finite_mouse_pick_with_side
target_framesleep
program_running
debug
mouse_x
mouse_y
mouse_x_rel
mouse_y_rel
mouse_pressed
mouse_down
mouse_released
mouse2_pressed
mouse2_down
mouse2_released
letter_pressed
letter_down
letter_released
give_player_coordinates
key_pressed
key_down
key_released
warp_mouse
set_relativemouse
mouse_relative
poll_events

I have a little more code on top of that because I prefer using lists instead of vectors, but yeah, bind is great. The one restriction is you can't pass struts, but instead pointers to struts.

Even if it doesn't work on some of your stuff, you can just use the lowlevel FFI for that.
>>
>>61444882
Yes, they really are. The entire language is retarded, actually,
>>
>>61445084
So are you saying it's smarter to do
switch(rendererType)
case OpenGL:
GLDrawer.draw(stuff);
break;
case Direct3D:
DXDrawer.draw(stuff);
break;
}

rather than
renderer->draw(stuff);
>>
>>61445157
seems interesting. But I'll probably still use guile tho, learning it will let me make extensions for GDB, emacs, and shit. I'll definitely keep chicken in the back of my mind if I decide Guile's too autistic tho. it definitely seems alot more lightweight.
>>
>>61442888
An "antivirus program".
>>
>>61445204
Honest question, are you really going to write an opengl and a directx version of your renderer?

That seems like a lot of fucking effort for very minimal payoff. All you're losing is fucking Xbox. No one gives a damn about Xbox.
>>
>>61445204
you're going about it backward then
you want a single class that can correctly pick which class's functions to use, you don't need two classes inheriting from a class that implements nothing and just outlines shit
>>
>>61445254
Then this just pushes the switching back to the class implementation, on top of having two classes anyways.
>>
>>61445238
Back in the day, some games had to use several APIs. There was D3D, OpenGL and the godly 3dfx Glide.
>>
>>61444985
>inheritance is shit
>design patterns are shit
which is it /dpt/? reminder that you can't win. so just say fuck it and object orient the FUCK out of your software
>>
>>61445276
yeah, but that's better. than three classes, one of which never gets used and is just inherited from, and two frontward facing classes

this would have 3 classes, 2 for the class to access, and 1 frontward facing class
>>
>>61444883
>"durrr it's SAFER"
>still no os written entirely in baremetal Idris with no C support which would be even safer still
moshilla pls
>>
>>61445332
>one that is never used, just inherited from
jesus. just stick to writing your little toy C / Lisp programs and let the big boys discuss OOP
>>
>>61445346
>write OS in Idris
>three generations of people die before building is complete
>once over the programming AI notices it was in debug mode
>>
>>61445332
>one of which never gets used and is just inherited from
But it gets used in the actual code. Virtual inheritance allows me to transparently call either of the subclass without having to care about which one was instanced.
>>
>>61445346
I'd fucking kill myself if I was forced to program in Idris.
>>
>>61445353
AHAHAHAHAHAHHAHAHAHHAHAHAHHAHHAHAHHA
Fag
>>
>>61445298
Thank God those days are past, unless of course you're a nerd virgin working at Activision having to port Call of Duty 2018 to Xbox.

Of course it should also be noted that the APIs are far more verbose and complicated these days, with programmable shaders and all.
>>
>>61445428
Doesn't apple explicitly ban 4chan "apps"?
>>
>>61445442
Does he have to distribute it from their store? I only use Android so I'm asking.
>>
Why is VB.NET still a thing?
>>
>>61445460
Why does .NET still exist?
>>
>>61445442
There was more to the video, the gif got cut off. I'll post again in a second.

By default NSFW boards and images are disabled. I'll also be censoring swear words (all can be disabled in the settings). But yes, normally the App Store will ban all 4chan related apps (there is only a single app on the App Store that allows you to browse 4chan).

The plan is to also put it on Cydia.
>>
>>61445365
>write OS in Idris
>each generation that passes as it's building goes back to the project website to query the server for the status of the build process
>"there is as yet insufficient data for a meaningful answer"
>heat death of universe comes to pass
>new universe runs on Idris
>because of this the speed of light is 1km/hr
>>
>>61445474

Same reason the JVM exists.
>>
>>61445460
<xml literals />
>>
>>61443196
1930s the best
>>
>>61445484
>>61445442
>>61445455
Here's the video of a prototype 4chan app built with OCaml I'm working on. The video is on iOS but also works on Android.
https://im.ezgif.com/tmp/ezgif-1-4945d874ae.mov

>>61445474
For many reasons. C# is here to stay.

Check out this experimental project. The future is lit for C# and Web Assembly.
https://github.com/SteveSanderson/Blazor

>>61445518
Because many developers are productive in it. Scala, Kotlin,.. JVM isn't going anywhere either.
>>
>>61445332
>>61445376
Here are the class definitions to illustrate
{
private:
std::map<std::string, Texture*> mTextures;

protected:
std::map<std::string, Texture*>& texturesMap();

public:
Video();
virtual ~Video();

virtual void addTexture(const Image* image,
const std::string textureName) = 0;
const Texture* getTexture(const
std::string name);

virtual void render(Sprite*
sprite) = 0;
virtual void render(RenderComponent*
component) = 0;
virtual void clear(float r, float g, float b,
float a) = 0;
virtual void draw() = 0;
};

class OpenGL final : public Video
{
private:
GLFWwindow* mWindow;
GLShader* mTriangleShader;
unsigned mVAO, mVBO, mEBO;

public:
OpenGL();
virtual ~OpenGL();

GLFWwindow* getWindow();

virtual void addTexture(const Image* image,
const std::string textureName) override;

virtual void render(Sprite*
sprite) override;
virtual void render(RenderComponent*
component) override;
virtual void clear(float r, float g, float b,
float a) override;
virtual void draw() override;
};

The in my code I chose by using
Video* renderer = new OpenGL();
...
renderer->render(sprite);

The abstract class allows me to do the call on Video*.
>>
>>61445574
>not 1940s
poor taste
>>
>>61445708

you could be done already if you just did it all in functions outside of any namespace above main().
>>
>>61445556

I... what? Who the hell decided that this was a good idea to put into a language?
>>
>>61445708
>current year
>storing raw pointers in STL containers
this is how you get horrible bugs anon, no well-defined ownership semantics. Use smart pointers instead.
>>
>>61445708
If I were you, I'd do further abstraction. I can also tell just by looking at your methods that your program would run like shit.

If you have 1 million sprites on the screen, making 1 million calls to render per frame is going to commit a jihad on your performance. Hell your program would probably struggle with 10,000 sprites. Your program needs to do batched rendering, there's no point in using VBOs and in that case you should just use OpenGL 1.0.

Write your program to have a "client-server" relationship between the renderer and the high level code driving it, so that the renderer doesn't need to have information and instructions fed to it every frame, but the instructions just change what it is rendering.

Also what the fuck is a Texture*? Textures are just GLuints in OpenGL.
>>
>>61445844
>Your program needs to do batched rendering, there's no point in using VBOs and in that case you should just use OpenGL 1.0.
Left out an otherwise after batched rendering. Please don't use OpenGL 1.0 and write your program properly using techniques that aren't from the 90s.
>>
>>61445844
>I can also tell just by looking at your methods that your program would run like shit. If you have 1 million sprites on the screen, making 1 million calls to render per frame is going to commit a jihad on your performance. Hell your program would probably struggle with 10,000 sprites. Your program needs to do batched rendering, there's no point in using VBOs and in that case you should just use OpenGL 1.0.
It doesn't though. Sprites are instanced. Only draw() does the call. Notice how there's a single VBO.
>Also what the fuck is a Texture*? Textures are just GLuints in OpenGL.
The point is not to only use OpenGL.
I'll look at the server thing.
>>
>>61445896
If you have a draw() method, that means you'll draw sprites call by call, you should have a method named drawSprites() or something like that.
>>
>>61444457
Man, I used to hate :: as well, but it does help prevent ambiguity

For examply a.b.y.m(), you don't know if you are doing (a.b.y).m() or (a.b).y::m() or not
>>
>>61445896
So if the scene doesn't change you don't call render at all, and it still renders the scene? That's some confusing terminology anon.

Why would you crate a private variable for an otherwise purely abstract class though anon? You're forcing implementation details onto the interface.
>>
>>61445936
draw is the method that calls the glDrawElementsInstanced and swaps the buffer.
How else would you suggest I store the table of (abstract) textures?
>>
File: 83497rweusifh.png (125KB, 934x1000px) Image search: [Google]
83497rweusifh.png
125KB, 934x1000px
>>61442888
your png is now optimized
>>
>>61445807
If you don't want bugs, why don't you just use Rust?
>>
>>61444144
>STOP USING C++ ITS NOT A SAFE SPACE
We know.
>>
>>61445807
>Use smart pointers instead
I fixed it.
>>
>>61445957
render is a weird name for a method which registers a sprite to the vbo. How do you unregister sprites form the vbo.
renderer->unrender(sprite);
???

Texture management aren't really the duty of the renderer though. The renderer doesn't own textures just as it doesn't own sprites. The thread that create those sprites with those textures owns them.
>>
>>61446060
>How do you unregister sprites form the vbo
For now I only add components.
>The renderer doesn't own textures
This is true, thanks.
>>
C, Rust, or Go. Which is worth deep diving into?
Rust seems great but I honestly can't tell with how hard people meme it around here. C is classic and most portable, but still worth being familiar with nowadays?

Probably going to try my hand at a Gameboy emulator
>>
>>61446085
Then how do you avoid duplication when you update a sprite's position? You aren't iterating through the list of sprites every frame right?
>>
Ayo hol'up

Java interfaces can implement multiple interfaces, but java classes can't extend multiple abstract classes?

Am I getting this right?
>>
>>61446100
>You aren't iterating through the list of sprites every frame right
Each actor has a RenderComponent (the one pointed to by the second overload of render) which takes care of updating its sprites if needs be.
>>
>>61446112
extending abstract classes is deprecated. Inheritance was a mistake.
>>
>>61446100
>>61446115
That's a sprite, I should probably just make it a struct.
class Sprite
{
public:
const Texture* mSheet;
unsigned mX, mY;
unsigned mWidth, mHeight;
float rotation;
float scale;
// Origin relative to top left
unsigned mX0, mY0;

public:
Sprite();
Sprite(const Texture* texture, unsigned x,
unsigned y, unsigned width,
unsigned height);
virtual ~Sprite();
};
>>
>>61446094
Go, is unironically the most likely to turn into something of substance out of it and Rust

C is good to learn, but very few new programs are being written in it, your choice tho m8
>>
>>61446115
So you iterate through all the rendercomponents each frame? Or are the rendercomponents tightly coupled with the renderer and update the VBO themselves?
>>
Convince me to learn erlang.
>>
>>61446142
>So you iterate through all the rendercomponents each frame
I iterate through each actor which updates its rendercomponent, there is no difference from the engine's point of view between updating the actor and rendering it since rendering is part of updating the rendercomponent.
>>
>>61446162
Nah
>>
>>61446164
Is it really that bad?
>>
in my course, we are talking about ASM, and there was a question like:

"What options could you have to store the variable q, in the following code?
Discuss the advantages and disadvantages of it."
int div(int n, int d)
{
int q = 0;
while (d <= n) {
n -= d;
q++;
}
return q;
}


i think the answer is something like using a register or stack but idk
>>
>>61446178
Why use a great language when you could use a good one?

That's Erlang, in a nutshell.
>>
Anyone know a place to find homework problems I can practice with. And I don't mean the stupid shit off of project euler or codechef.
>>
>>61446282
HackerRank sir
>>
>>61446163
So how do the sprites get updated in the VBO? glBufferData every frame? Persistent map? A persistent map leaves you very vulnerable to synchronization problems if you try to do the natural way OOP taught you to.

If the rendercomponents are the ones who copy the sprites to the vbo with glBufferSubData or non-persistent maps, then why are you registering the sprites to your renderer? And when do the rendercomponents update their data? When the actor updates them, or after all the actors have ticked? If it's when the actor updates them, then you're going to get fucked by synchronization.
>>
Emacs, vim, or spacemacs?
>>
>>61442888
what should be my first language?
>>
>>61446349
VS Code
>>
If, let's say, completely theoretically speaking, someone had full access to the windows source. This is just hypothetical and I'm asking for a friend. But what kind of information could be safely extracted and leaked? What kind of information would be most useful? Not that I know anyone in that situation who might also be disgruntled. Just thinking out loud.
>>
>>61446349
ed
>>
>>61446349
>em "2 peddles and 5 crutches for your 3 assistants" acs, vim, or unusably broken emacs?
>>
>>61446382
I'm thinking it's a bad fucking idea because M$ will find out and they will rape you in the ass.

Just write intricate, bad, code like >>61443126 while waiting for your two weeks to pass if you want revenge.
>>
>>61446382
the core system & drivers.
Maybe even throw in the UWP as well.
>>
File: cute anime pic 0492.jpg (39KB, 374x347px) Image search: [Google]
cute anime pic 0492.jpg
39KB, 374x347px
>>61446400
>em "2 peddles and 5 crutches for your 3 assistants" acs
>>
>>61446033
You should stop using C++ because C++ is a steaming pile of horse shit
>>
>>61446375
bash or whatever shell your system comes with. Learn to use your system before programming.

And as an intro to programming, actually learn it. Most people claim to know shell because they use a shell, their shell scripts are garbage.
>>
Is anybody here in a graduate program?
What exactly is the process to apply and enter for one?
Do you need some kind of exceptional extracurricular work or can you just be a solid student?
>>
>>61446379
I don't want to install another web browser engine.

>>61446388
I'm not good enough for ed.
>>
>>61446465
Step 1: find a graduate program.
Step 2: apply to it.
>>
>>61446349
It doesn't fucking matter, stop procrastinating and start writing code you
>>
>>61446469
>>61446349
do you use lisp? if yes, use emacs
if you don't? use vim

simple
>>
>>61446493
I use scheme
>>
>>61446426
What part? As >>61446425 mentions, the code isn't a good idea, but compiling a functional diagram would be harder to trace. But is it enough? Would something more specific help? Also of course leaking massive parts are not too good an idea for the same reason.
I was thinking, the binary format spec if my friend can get ahold of it, as well as parts of directx (but so far he might have only seen minimal fragments of it sprinkled in the os source, and perhaps he hasn't located the directx vsts project).
What parts of the drivers are useful? Generally, windows drivers are shit and outdone by everyone else. Anything in particular where this isn't the case?
>>
>>61446432
He's mocking the alt+shift+ctrl combinations that emacs uses, ignoring the fact that vim uses a shitload of shift-based characters so you're doing the same shit anyways.
>>
>>61446469
>l another web browser engine.
Its desktop though, and cross-plat
>>
>>61446501
use emacs then. it has a built in REPL and you can evaluate whatever you're writing with just Ctrl-x+ctrl-e
>>
>>61446465
Approach a prof at a lab you want to do your master's at. He'll probably asked to interview you. Just talk about your life and shit. Ask about the details on what the lab works on and the likes. The prof can also get you the school-specific resources for applying.
Schools generally have a specific GPA cutoff that's not too hard to get to, but not downright trivial. For mine it was 3.5. Others can be more or less harsh. It would have helped if you had taken research internships during your summers, though.
>>
>>61446142
I changed the terminology a bit so that it is more natural.
class Video
{
public:
Video();
virtual ~Video();

virtual void add(Sprite*
sprite) = 0;
virtual void add(RenderComponent*
component) = 0;
virtual void clear(float r, float g, float b,
float a) = 0;
virtual void render() = 0;
};

>how do the sprites get updated in the VBO?
Each RenderComponent knows its index (or rather the first of the 4 vertice).
>then why are you registering the sprites to your renderer
The renderer was the one who knew where the corresponding texture was for the sprite and set the correct one. If I put the textures somewhere else it's no longer needed.
>When the actor updates them
Yes. Synchronization issues haven't happened yet, are you talking about the fact VBO can change as the draw call returns but shaders shaders are not done rendering yet, thus using the next data?
>>
>>61446504
But go look though the WINE stuff to see what they have the most issues with.
DX might be a good start though.
>>
>>61446508
>shift
>as bad as alt+shift+ctrl+esc+yourmum alt+ctrl+esc+mydick alt+uranus to invoke the 'insert a character' command
>>
https://pastebin.com/vs1bzvqM
how can i change the arraylist functions to just use [ ] arrays instead, and how would i also make a linked list version of this java deck class replacing the arrays?
>>
>>61446516
emacs and vim and spacemacs are all desktop and cross-platform without the overhead
>>
>>61446517
Wrong. Scheme needs geyser. Also geyser is a buggy piece of garbage.
>submit something
>it works! wow! geyser is great!
>5 minutes later without submitting anything
>entire emacs crashes, CcCcCc does nothing etc.
>infinitely repeatable.
>>
>>61446570
Quality of life comes at a price.
Ill pay for the little extra ram and install size to never have to touch a vimrc ever again.
>>
>>61446563
>Having to memorize 14 different keybinding layouts for all 30 of Vims mode
>vs hitting ctrl or shift plus a key, possibly a secondary key if its an advanced function
wow they're both shit
>>
>>61446545
By synchronization issues I mean not just data races but also your program getting stalled out on the VBO being locked from the CPU.
>>
>>61446540
>It would have helped if you had taken research internships during your summers
Well I'm finishing my undergrad this year, so I guess there's still time.
I spent all my summers just doing more courses.
>>
>>61446587
what are you on
in what world does emacs not support scheme
>>
>>61446617
I see, I wasn't aware this could be an issue. Thanks for the feedback btw.
>>
File: woah.jpg (42KB, 320x240px) Image search: [Google]
woah.jpg
42KB, 320x240px
>>61444052
>>
@61446613
>
>>
File: ur rong.png (91KB, 1128x596px) Image search: [Google]
ur rong.png
91KB, 1128x596px
>>61446587
see, geiser is not required,
if it's buggy, skip it
>>
>>61446611
>to never have to touch a vimrc ever again
That's why I'm considering emacs or spacemacs.
>>
Going through a network programming book.
Can someone give me an example of an ip address that lies between this range?
>>
>>61446690
Maybe, got any cute anime girls?
>>
>>61446690
224.0.0.1
>>
>>61446726
holy fuck im retarded.
>>
>>61446690
224.0.0.1
>>
>>61446673
emacs is worse.
If VSC is out, just use vim.
>>
>>61446673
Emacs is literally unusable without constant and unending fiddling with the emacs config, though. That's because of the core design of emacs: everything is ad-hoc. Making a plugin work with other plugins cannot happen without ungodly amounts of manual configuration. That's why bigger plugins have 30 subpackages specifically designed to adapt config for compatibility with other packages. But they understandably can't keep up with all the packages that exist, let alone tweaks to them, nor to updates to emacs.
For example, pop-win mode still doesn't know about a lot of core emacs *windows* which need to be manually added to its handling list, and it gets worse if you have any plugin that creates or modifies windows (think org-mode).
>>
>>61446773
Or neovim.
>>
>>61446611
I probably haven't changed my vimrc in like 2 years. The only thing I've done related to vimrc is copy it to another computer.
>>
Write a C program to check whether a number.
>>
>>61446820
bool check_whether(int n)
{
return rand() % 2 == 0;
}
>>
>>61446820
>whether a number.
>>
>>61446819
>not checking your .vimrc into git
>>
>>61446819
Same.
>>
>>61446840
>>61446820
>C programmer
>Single digit IQ
Who knew
>>
>>61446820
#include <stdio.h>
main() { printf("%p", &main); }
>>
>>61446819
Its not just the vimrc.
Vim is entirely composed of quirks.
From the redundant input modes to the commands to how you manage plugins. And then theres Vimscript.

Its an entire ecosystem of tedium, where there shouldnt be any. And most TE's nowadays streamline all that at no loss of power.
>>
>>61446871
>IQ
>measure of quality

brainlet (american) detected
>>
>>61446820
void check_weather() {    
printf("%s", "Rainy!");
}
>>
>>61446854
>not using bzr in 1500427951
>>
>>61446871
What the hell are you memeing about?
>>
>>61446033
>my choice of language is based on the kind of people I think use it
neck yourself
>>
>>61446778
>Emacs is literally unusable without constant and unending fiddling with the emacs config
Literally the only thing I've done with the config is set an easier shortcut to fix indentation.
What the hell are you on about?
>>
>>61444883
Lmao Redox is complete trash.
>>
>>61447020
Elaborate.
>>
>>61446778
I've literally never opened up the emacs configs

stop downloading so many plugins you don't need and you'll probably find you have less issues
>>
>>61447039
It's capable of nothing
>>
File: guyfieri.png (22KB, 128x128px) Image search: [Google]
guyfieri.png
22KB, 128x128px
>>61447042
>>>61446778
>>Emacs is literally unusable without constant and unending fiddling with the emacs config
>Literally the only thing I've done with the config is set an easier shortcut to fix indentation.
>What the hell are you on about?

This.
I just add major modes to my .emacs.d/init.el.
>>
>>61447054
Can you explain your claims? What do you mean capable of nothing?
>>
>>61447010
rust user detected
>>
>>61447072
are you saying it's incapable of nothing?
can it solve the halting problem then?
thought so...
checkmate atheists
>>
>>61447016
>I have never used emacs
I mean, suit yourself if you don't want to use it. But don't pretend you know shit about it.
>>
>>61447072
Capable of nothing as in it's capable of nothing.
>>
>>61447087
wtf santa is real now
>>
>>61446455
is there a good resource for learning this? im googling right now but im also asking you guys
>>
>>61447090
I use emacs every single day
Not everybody feels an autistic need to rice the shit out of every single thing they use.
>>
>>61447092
What "thing" do you want it to do?
>>
>>61447108
>I used emacs for one day
huh, sweaty...
>>
File: 1495061282892.gif (1MB, 307x449px) Image search: [Google]
1495061282892.gif
1MB, 307x449px
>>61447118
>He doesn't have the same autistic configuration problems as me! HE DOESNT USE IT REEEE
I pity you
>>
File: 1471435905316.jpg (235KB, 866x1300px) Image search: [Google]
1471435905316.jpg
235KB, 866x1300px
>>61447111
NO GAYMEZ XDDDDDD
>>
>>61447054
So it's just like Linux?
>>
>>61447111
>Can't even compile C++ code on it
>Can't even run mpv on it
>Can't even run firefox on it
>Can't even run geany on it
>Trash UI design
>Microkernel (lol)
>>
I have been studying http://higherorderfun.com/blog/2012/05/20/the-guide-to-implementing-2d-platformers/

I have been able to incorporate this code:
float t = float(centerX - tileX) / tileSize;
float floorY = lerp( leftFloorY, rightFloorY, t );
float ceilY = lerp( leftCeilY, rightCeilY, t );


I think I understand it now that I have played around with it. However, this only resolves the y-axis, I still have a problem with the x-axis. I am not sure what the appropriate formula would be to use with the formula I have for vertical collision.
>>
>>61447165

I'd just like to interject for moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!
>>
>>61447158
It's OK, wetty. I'm sure you'll be better one day.
>>
>>61447171
>Can't run X program on it
That's not Redox's fault. If your program has a port for Redox, I don't see why won't they run on it.

This is like saying "Steam has no port for Linux so Linux can't run steam" in 2010
>>
>>61447171
>expecting a cult to let other religions practice in their church
>>
File: 1469368162310.png (1MB, 1920x1080px) Image search: [Google]
1469368162310.png
1MB, 1920x1080px
Why did Redox rip icons from iOS?
>>
>>61447171
Cringed
>>
>>61447216
I believe these icons are called something like numix square or something. Redox being TRUE *nix, it does not have a de-facto icon theme
>>
>>61447216
>Redox
>Rust the OS
>Why did they steal their look from apple?????
Could it be that users of both operating systems and users of Rust are transexuals?
>>
Drivers running in userspace is the stupidest joke ever.
>>
>>61447171
>Can't even compile C++ code on it
Hmmm
https://twitter.com/redox_os/status/817036994899570688
>>
>>61447256
t. a masterful joke
>>
>>61447256
This adheres to the truest form of unix philosophy
>>
>>61447271
The unix philosophy is shit.
>>
>>61447263
Based
>>
>>61447284
That's your opinion
>>
>>61447284
You're'd've'st shit
>>
>>61447284
t. systemd user
>>
>>61446162
Erlang solves a very narrow domain of problems related to requiring separate processes that may fail, and how to recover.

Look at how you have to deal with strings and shit like that (math too) in erlang, and you'll realise that you're better off picking a language that better targets your problem space.

You'll be able to find examples of people implementing stuff they shouldn't in erlang, but there are always those kind of dipshits (on HN yesterday there was someone who'd built a neural net in erlang, i.e. they were multiplying matrices in a language that is known to be shit at that).
>>
>>61447323
>someone who'd built a neural net in erlang
I never understand why someone would do something like that, or e.g. building a terminal emulator in js
>>
>>61447263
wtf, this is actually impressive
>>
>>61447345
>e.g. building a terminal emulator in js
It's all they know.
>>
>>61447347
The main guy on Redox is actually pretty competent, desu.
https://youtu.be/eH5JgMlNE8o

Too bad the Rust community will eventually kill it, painfully and slowly with terrible decisions.
>>
>>61447105
For bash, take any shell scripting tutorial until you're somewhat comfortable.

Then forget %90 of it, take up the wooledge to tell you what you're doing wrong

http://mywiki.wooledge.org/BashPitfalls

And then pick up the GNU bash manual.

https://www.gnu.org/software/bash/manual/

Although I've never read it, Greg has a bash tutorial. It may or may not save the first 2 steps.

From what I can tell this guy is either a bash maintainer or just somebody who interjects too often on the bash mailing list, either way he knows bourne shells.

http://mywiki.wooledge.org/BashGuide
>>
>>61447383
I watched the video few months back. He actually is pretty good. Apperently he works in system76 too. A true open source guy.

Too bad he's not edgy enough for /g/ so /g/ chooses to worship an autistic basement dweller that calls people nigger because it appeals to their mindset.
>>
>>61447302
>He doesn't know that systemd follows the unix philosophy
And it's still shit.

The unix philosophy is a mistake.
Separating programs and piping data from program to program, with all the overhead that comes with it is a stupid fucking idea.
Running drivers in userspace is an even stupider fucking idea and offers NO advantage whatsoever. No seriously, there are only downsides, no upsides.

Having small and composable programs is wrong.
Having small and composable libraries is correct.

>Your kernelspace driver crashes
Your system is fucked
>Your userspace driver crashes
Your system is fucked
>Your kernelspace driver has not crashed
Your system runs fast, and is less complex
>Your userspace driver has not crashed
Your system runs slow, and is more complex (and therefore buggy).

Go back to sucking Tanenbaums microdick.
>>
>>61447431
>Your userspace driver crashes
>Your system is fucked
wtf!? Userspace drivers will reload without having to reload the fucking kernel.
>>
>>61447453
Yeah, and your system is still fucked regardless.
>>
>>61447425
Nah, its mostly because Rust already has an infamous rep so most anyone associated with it will get written off.
>>
>>61447464
No it isn't.
>>
New thread:
>>61447463
>>61447463
>>61447463
>>
>>61447383
I don't know what the meme with rust community is. There's the SJW subset of course but the actual useful part of the community produces generally pretty good content and doesn't seem to care about the coc bullshit, for instance.
>>
>>61447471
Yes, it is.
It doesn't matter if your disk driver is in userspace, your system is still fucked if it crashes and reloads.
>>
>>61447489
t. literal inbred
>>
>>61447489
GPU drivers, Wireless drivers etc won't affect the system as much
>>
Are microkernels the OOP of operating systems?
That is to say, fucking shit.
Thread posts: 323
Thread images: 13


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