[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Maintenance is complete! We got more disk space.
Become a Patron!

/g/ - Technology


View post   

[ Toggle deleted replies ]
>> No.64829854 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

dat guy was a shame and a disgrace.

>> No.60450883 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

I do think quantum computing is a scam

Sorry. Here a very new programming language for you http://gravity-lang.org

Gravity is a powerful, dynamically typed, lightweight, embeddable programming language written in C without any external dependency (except stdlib). It is a class based concurrent scripting language with a modern Swift like syntax.

Gravity supports procedural programming, object-oriented programming, functional programming and data-driven programming. Thanks to built-in special methods it can also be used as a prototype-based programming language.

>> No.56994096 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

"There are people who actually like programming. I don't understand why they like programming."
-- Rasmus Lerdorf, creator of PHP.

>The c part has more than one IO call
Into the trash it goes.



>> No.56775933 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]


>> No.54903947 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

The easiest machine applications are the technical/scientific computations.

>> No.54755828 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

Undefined behavior :P

Unicos's short were 64 bits :3

>> No.54285314 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

Just the truth.

>So we can't say that structured data + functions that operate on them -> coding style is OOP.
That's a data type, if the data type is encapsulated by a set of procedures or functions then it's an abstract data type.

An Abstract type doesn't abstract the implementation of its procedural/functional interface (P/FI) contrary to an object that's why you have typeclasses in haskell or modules in ocaml.

An object also hides its data under a PF/I but also hides the implementation of that P/FI. You can access the PF/I only through the object.

Classes, closures, prototypes is irrelevant here.

You need to both know what's an object and an ADT to really understand them.

A concrete example of a difference between ADT and Object in pseudo C

* adt:
* - implementation is not hidden
* - have to modify sort() for every new type
void sort (adt x)
switch (type(adt))
intarray: intarray_sort(x);
floatarray: floatarray_sort(y);

* object:
* - implementation is hidden
* - no need to modify sort() for every new object
void sort (object x)

ADT and object also have important differences in extendability and high order programming.

False analogy.


>> No.54269654 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

_function (const double a, const double b);

#define function(x, y) \
_function(_Generic(x, const double *: *x,\
const double : x),\
_Generic(y, const double *: *y,\
const double : y))

>> No.54052535 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]


>> No.50930959 [View]
File: 447 KB, 900x506, cake.webm [View same] [iqdb] [saucenao] [google] [report]

Ask your beloved programming literate anything.

View posts [+24] [+48] [+96]