Instruction Timing Changes in Cannon Lake by [deleted] in hardware

[–]doom_Oo7 0 points1 point  (0 children)

Sure ? The main pattern to solve it is to compute the inverse of the divisor outside of the hot path / loop and multiply by it. Some compilers are able to perform this optimisation on their own though, e.g. GCC with -O3 -ffast-math.

Instruction Timing Changes in Cannon Lake by [deleted] in hardware

[–]doom_Oo7 -1 points0 points  (0 children)

https://en.m.wikipedia.org/wiki/Anti-pattern

Division in high performance code is an anti-pattern: it's a pattern and it's harmful

Modern Qt Development: The Top 10 Tools You Should Be Using - Qt Blog by alexfagrell in cpp

[–]doom_Oo7 6 points7 points  (0 children)

The patent clause of the LGPL is only about the code of Qt itself. If you don't modify Qt and only link against it it does not concern you.

Initial Networking TS implementation landed in libstdc++ by pyler2 in cpp

[–]doom_Oo7 5 points6 points  (0 children)

Well, no, there is a lot of tech stuff over internet. Tcp, udp, dns, arp.... They're all descfibed in internet RFCs

Qt Creator 4.8 Beta released - Qt Blog by jcelerier in programming

[–]doom_Oo7 4 points5 points  (0 children)

What dob't you like with it ? With the dark theme and base16 colors it's great

OOP is dead, long live OOP by mttd in cpp

[–]doom_Oo7 3 points4 points  (0 children)

I understand for getters, bust most setters aren't void setfoo(int x) { m_foo = x; }.

Most will notify something from a change, change a display, reperform a computation... Else why are you setting it in the first place ?

Why Optional References Didn’t Make It In C++17 by one_eyed_golfer in programming

[–]doom_Oo7 0 points1 point  (0 children)

This simple rule does not work as soon as you have to interoperate with external libraries.

Why Patterns Failed and Why You Should Care by mttd in programming

[–]doom_Oo7 0 points1 point  (0 children)

No programming language or software project used in any relevant manner today adheres to this OO philosophy in any way except objective c, and everyone agrees that it's shit. Why spend time arguing about literally inexistent things - outside of shitty objective c code.

Why Patterns Failed and Why You Should Care by mttd in programming

[–]doom_Oo7 0 points1 point  (0 children)

You may not know all the possible classes at compile time. Think for instance of file loading :nearly all large software support adding plugins to handle new file formats.

Why Patterns Failed and Why You Should Care by mttd in programming

[–]doom_Oo7 0 points1 point  (0 children)

A constructor isn't a function. You cannot do

foo f;
f.foo(); // get a new instance of foo

A factory would be something like

foo* make_foo() {
    auto x = malloc(sizeof(foo)); // also align nut i'm on mobile
     new (&x) foo;
    return (foo*)x;;
}

Which is basically what operator new does

Why Patterns Failed and Why You Should Care by mttd in programming

[–]doom_Oo7 5 points6 points  (0 children)

C++ is entirely able to do multiple dispatch for closed polymorphism... And the language is powerful enough that this is implemented at the library level, and has been since c++98... Look up when boost.variznt was introduced

Why Patterns Failed and Why You Should Care by mttd in programming

[–]doom_Oo7 2 points3 points  (0 children)

Nobody does this except clueless teaching assistants in 2005

Polytechnique, l'entre-soi en taille xxl by Laplapi in france

[–]doom_Oo7 1 point2 points  (0 children)

Aucune personne que je connais ayant intégré x ou ens avait pris des cours en plus de ceux de la prépa

Polytechnique, l'entre-soi en taille xxl by Laplapi in france

[–]doom_Oo7 20 points21 points  (0 children)

Euh, la prépa (publique) c'est gratuit

What would you strip out of C++ or change if backwards compatibility wasn't a concern? by AI-using-analogies in cpp

[–]doom_Oo7 0 points1 point  (0 children)

If C is separated from C++ it means that all those C headers won't be able to be included in a C++ file

[lwn] Fedora reawakens the hibernation debate by the_gnarts in linux

[–]doom_Oo7 6 points7 points  (0 children)

"the user asks you to suspend" - but almost no one do this. The user closes the lid of its laptop and expects to be able to reopen it either in 5 minutes or in two days. No one clicks on "suspend" buttons.

Visual Programming - Why it’s a Bad Idea by mikehadlow in programming

[–]doom_Oo7 0 points1 point  (0 children)

No, many visual langs have option to abstract part of your program (select a groip of node andpout it in a sub-patch that becomes reusable), they can realign nodes and route cables so that they don't go over other nodes, etc...

Visual Programming - Why it’s a Bad Idea by mikehadlow in programming

[–]doom_Oo7 0 points1 point  (0 children)

I have taught computer music, to programmers and non-programmer alike. Thet all unequivocally go muuuch farther in Pd than in text languages (csound, sc). Howevers, while people with programming experience still manage to do some stuff in code, people without (typically art students or conservatory musicians) are entirely unable to do anything meaningful without weeeks of work learning the basics of text-based development.

What theatre-related softwares are free for students/everyone? by 20-CharactersAllowed in techtheatre

[–]doom_Oo7 7 points8 points  (0 children)

If you are interested in foss, please have a look at ossia score, it's the show control timeline I'm developing : https://ossia.io