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

>find an interesting software library which has a well-documented

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: 28
Thread images: 7

File: 929194859924.jpg (45KB, 720x720px) Image search: [Google]
929194859924.jpg
45KB, 720x720px
>find an interesting software library which has a well-documented API
I can find plenty of APIs listed but how do I find the specific libraries they use?

Why do they call OpenAL and OpenGL libraries if they're actually APIs?

What the fuck even is a library and what the fuck is an API?

If OpenGL is an API then what library does it allow interfacing with????
>>
>>62261039
Why are you 'tisming. Just use whatever you want for the job that needs doing.
>>
>>62261072
I have to write about a software library and its main APIs but I don't know what's a well-documented library with well-documented APIs

Is OpenGL an API or a library?
>>
>>62261186
its a library that has an api, dumb frogposter

use wikipedia
>>
>>62261306
>use wikipedia
>Open Graphics Library (OpenGL)[3][4] is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics.

Wow! You're wrong!
>>
>>62261343
>open graphics library
>library
dumbass frogposter
>>
>>62261375
No. It's an API

If it's a library then why can't you list the APIs it features?
>>
File: 1504536131998.jpg (52KB, 506x689px) Image search: [Google]
1504536131998.jpg
52KB, 506x689px
>>62261388
time to bump your bait thread with unrelated anime pictures
>>
File: 1503111559868.jpg (68KB, 757x1024px) Image search: [Google]
1503111559868.jpg
68KB, 757x1024px
this one is related actually
>>
>>62261414
STOP BULLYING ME

The question is
>Find an interesting software library which has a well-documented API. What is the purpose of the library and on which operating system does it run?
And
>Describe the main APIs of your library
So, in the case of OpenGL... It's a library and an API and the library is called OpenGL and the API is called OpenGL?

What about the python standard library? What are the APIs there?

What about the Facebook Graph API? What library does it belong to?
>>
>>62261414
>>
Any library that you can integrate in other projects has an API.
The API is just a way to interact with the library so that you can use certain features of the library in your program.
>>
>>62263486
But what does it mean to "describe the main APIs of a library"?

Give an example
>>
>>62261625
API: documented way to call code and get a return value (optional)
Library: some code grouped together under a common theme, locally installed on your device

So things like Qt are a library, that also have a documented API. There are web services that provide an API you can call, but it's not running on your machine so it's not a library.

Example API:
foo(): call this to print "hello world"
>>
>>62261039
OpenGL is a very special case. OpenGL is a a standard. The way OpenGL is standardizing is by specifying is by specifying the API - a set of C functions, types and header files that you can use in your program. OS and GPU vendors implement OpenGL - by creating a library that provides the API described in the standard. Nvidia has its own OpenGL library, AMD has another one, but they both provide the same API. Drop OpenGL. It's a special case, and most, 99.9999% of libraries are not standardized.

>>62263575
Here is API for the SDL library: https://wiki.libsdl.org/CategoryAPI
To describe the API of the library you list and describe functions, types and other things provided by your library that the programmer can use.

>>62261625
>What about the Facebook Graph API? What library does it belong to?
It does not belong to any publicly available library if it's a web API, which I'm sure it is, since it's facebook. You access that API using the HTTP standard.

>What about the python standard library? What are the APIs there?
https://docs.python.org/3/library/index.html

>Describe the main APIs of your library
This statement is not meaningful as you imagine it to be. I understand that it's a part of homework, but it's a badly worded task. Find a small library that has few functions available, and rephrase the documentation for those functions.
>>
>>62263617
So, in a programming language you have a standard library that offers a range of items that you can make use of.

Say you use the print function in a program you write. Is that print function an API?

OR

Is the API a more abstract concept specifying proper protocol of just how you call functions and present arguments to them? But then what is the scope of the API? Would you say that every interaction with the standard library is through a single API?

Or something else...
>>
>>62263740
API is not a thing that is strictly defined. A lot of projects provide what can be easily classified as an API, but never mention the abbreviation in docs.

API is a list of things the programmer can use in something (sometimes API describes the way to access a remote server instead of a local library) with instructions how to do that and explanation what precisely those things do.

>Is the API a more abstract concept specifying proper protocol of just how you call functions and present arguments to them
That description is more fitting for ABI - literally specifies how to place arguments into memory/registers when sending them to function.
>>
>>62263740
>Is that print function an API?
printf is part of stdio.h, and stdio.h is part of the API.
>>
File: c4a.jpg (12KB, 238x192px) Image search: [Google]
c4a.jpg
12KB, 238x192px
>>62263735
>This statement is not meaningful as you imagine it to be. I understand that it's a part of homework, but it's a badly worded task
THANKS. This is what has been driving me insane.

So, it is correct to say that functions (print), types (int, float), classes, etc.. offered by the standard library make up the API as, at the level of use by the developer, their implementation details are abstracted away?
>>
>>62261039
dumb frogposter
>>
File: 1828348573.png (47KB, 758x631px) Image search: [Google]
1828348573.png
47KB, 758x631px
>>62263793
I feel like everyone just pretends to know what an API is and that's why precise definitions are so difficult
>>
>>62261414
Shit, he's using the highest tier of debate
.. smug anime pictures
>>
>>62263832
int and float types are a part of language, so they are not a part of an API. A library that creates type CURL as a pointer to void, does provide that type as a part of its API.

I wouldn't use a language's standard library to talk about APIs, since standard libraries are 1. huge 2. never called APIs by their developers.

Try libcurl maybe.
https://curl.haxx.se/libcurl/c/

You'd need to provide short description for four functions: curl_easy_init, curl_easy_cleanup, curl_easy_setopt, curl_easy_perform
>>
>>62263832
>>62263916
Actually, now that I think of it, applying this statement to CURL, it can be clearly said that CURL library provides two main APIs, Easy, for synchronous web requests, and Multi, for asynchronous web requests.
>>
File: 1409806758443.jpg (130KB, 807x605px) Image search: [Google]
1409806758443.jpg
130KB, 807x605px
>>62263916
You're the best

Here's a picture of a cute girl for your troubles
>>
>>62264598
100% slavic
>>
>>62263793
So is an api literally just whenever the programmer for something creates parts of code for other programmers to use/hook into it?
>>
>>62264866
Yes. I is the meaningful part in API, interface. Wiki page for API pretty much says the same:
> it is a set of clearly defined methods of communication between various software components.
Thread posts: 28
Thread images: 7


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