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

Search:


View post   

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

>>64829717
dat guy was a shame and a disgrace.

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

>>60450828
I do think quantum computing is a scam

>>60450785
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]
56994096

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

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

>>56994026
http://akaribbs.mooo.com/

>>56994021
No

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

>>56775850
https://www.cs.hmc.edu/csforall/
http://www.composingprograms.com/
http://programarcadegames.com/index.php?lang=en

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

>>54903825
The easiest machine applications are the technical/scientific computations.

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

>>54755708
Undefined behavior :P

>>54755734
>>54755709
Unicos's short were 64 bits :3

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

>>54285055
Just the truth.

>>54285086
>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)
{
x->sort();
}


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

>>54285108
False analogy.

>>54285268
nice

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

>>54269554
_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]
54052535

>>54052440
https://www.kernel.org/doc/gorman/pdf/understand.pdf

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

Ask your beloved programming literate anything.



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