Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Tox

Name: Anonymous 2014-06-23 12:55

Tox, the distributed instant messaging program, just got a new GUI client that is written in PURE C WITHOUT ANY DIRTY TOOLKITS. Calls Xlib and the win32 api directly.

Pretty interesting.

https://github.com/notsecure/uTox

Name: Anonymous 2014-06-23 16:31

>>37
Don't forget IEC

#ifdef INT_FAST8_MAX
(u)int_fast(8, 16, 32, 64)_t are not optional

Name: Anonymous 2014-06-23 16:37

>>41
Good point; for decent targets you could definitely get away with

#include <stdint.h>

typedef int_least8_t least8;
typedef int_fast8_t fast8;

#if INT8_MAX
typedef int8_t i8;
#endif


Really though I'd probably wrap everything in a test macro to handle weird systems that don't care about full ISO compliance (never minding POSIX).

Name: Anonymous 2014-06-23 16:45

#include <stdio.h>
#define VERY_ACCELERATED_SPRINTING_PRINT vasprintf

inline INT_FAST8_MAX FAST_division(const INT_FAST8_MAX a) {
register INT_FAST8_MAX b = a;
return b << 2;
}

int main() {
VERY_ACCELERATED_SPRINTING_PRINT('%d', FAST_division(2));
register INT_FAST8_MAX f = 0;
return f;
}


gcc -Ofast --funroll-loops --fffffast-math blazing.c

HOLY COW I'M TOTALLY GOING SO FAST OH F***

Name: Anonymous 2014-06-23 16:50

>>43
OMG OPTIMIZED

Name: Anonymous 2014-06-23 16:55

>>43
You dickshit, this
i) makes use of non standard functions (vasprintf) that is SLOWER than snprintf and even more slower than sprintf and you don't even make use of its output
ii) INT_FAST8_MAX is not a type and you need to #include <stdint.h> first

Name: Anonymous 2014-06-23 17:00

>>45
You dickshit, this
i) post wasn't even serious

Name: Anonymous 2014-06-23 17:00

>>46
I know but this does not mean you have to post incorrect code

Name: Anonymous 2014-06-23 17:14

>>13
>>36

But notsecure only uses ~0 only when assigning values to unsigned stuff. So there's no portability issue.

Concerning the int.h or a test macro to handle weird systems, I think he has other priorities, such as getting video working. Would you mind doing a pull request or posting the necessary changes in this thread? That would be pretty helpful.

Name: Anonymous 2014-06-23 17:19

so many autists antibumping

Name: Anonymous 2014-06-23 17:22

typedef uint8_t char_t;
WTHHH
this is lame as hell, it uses uint8_t in a place where it is not needed (breaking comportability) and it violotates the POSIX standard (you can not define things that end with _t)

>>48
But notsecure only uses ~0 only when assigning values to unsigned stuff. So there's no portability issue.
0 itself is a signed int, it does not matter if it assigns it to a unsigned

posting the necessary changes in this thread
s/int8_t/int_fast8_t

and since you talking about int_leastN_t being ugly then why is he using _Bool instead of bool?

Name: Anonymous 2014-06-23 17:24

>>48
Optimise your quotes, cretin.

Name: Anonymous 2014-06-23 17:29

>>50
s/int8_t/int_fast8_t

Isn't that a less readable approach?

What about an int.h or a test macro to handle weird systems?

Name: Anonymous 2014-06-23 17:32

>>52
Anyone can create a int.h (with test macros) in a few minutes, let him do it himself

Name: Anonymous 2014-06-23 17:32

I don't really think the developer has time for this stuff right now, he is working of getting video, now that audio was added last week.
Pull requests would surely make him happy, I believe.
If you aren't in the mood, just keep complaining and I hope he eventually deal with all by himself.

Name: Anonymous 2014-06-23 17:35

I don't really think the developer has time for this stuff right now, he is working of getting video, now that audio was added last week.
Are you kidding me? This is a 5 minutes job

If you aren't in the mood, just keep complaining and I hope he eventually deal with all by himself.
I am not complaining nor I care about utox. it is better than most other software anyway

Name: Anonymous 2014-06-23 17:39

Are you kidding me? This is a 5 minutes job
Oh, I thought it was more work.

I am not complaining nor I care about utox. it is better than most other software anyway
Got it.

Name: Anonymous 2014-06-23 17:40

>>56
I may make a patch if I ever stop being lazy

Name: Anonymous 2014-06-23 17:43

>>57
I will be eagerly waiting.
For some reason, it makes me happy seeing developers working together. It gets me almost moist.
Something that I would love is it to compile without warnings, but there are so many of them, that I doubt it will ever be done.

Name: Anonymous 2014-06-23 17:44

Clang's -Weverything or go home!

Name: Anonymous 2014-06-23 17:49

>>58-59
faggots
alias c="gcc-4.9 -fdiagnostics-color=always -g -gdwarf-4 -Og -Wall -Wextra --std=c11 -Wpedantic -Wno-empty-body -Wno-unused-parameter -fno-diagnostics-show-caret -fsanitize=undefined -fsanitize=address -fno-omit-frame-pointer -Wno-unused-function -fcilkplus -pthread -lpthread -D_XOPEN_SOURCE=700"

Name: Anonymous 2014-06-23 18:15

>>59
clang is ghetto apple halfmast piece of beef
i will piss on you motherfucker

Name: Anonymous 2014-06-23 18:41

>>61
Use GHC!

Name: Anonymous 2014-06-23 19:04

C a shit.

Name: Anonymous 2014-06-23 19:08

>>63
You mean you see a shit? What does it look like?

Name: Anonymous 2014-06-23 19:25

C
Why not use ATS?

Name: Anonymous 2014-06-23 20:28

HOLY SHIT, /g/ still on with this shit!
We've solved that AGES AGO:
https://en.wikipedia.org/wiki/Off_the_record_messaging#Client_support
https://en.wikipedia.org/wiki/SILC_%28protocol%29

Their time could be better used in projects like
https://en.wikipedia.org/wiki/Cjdns
https://en.wikipedia.org/wiki/Gnunet

I guess autistic /g/ will always stay autistic. By definition, they are hipsters

Name: Anonymous 2014-06-23 20:42

>>66
But those aren't user-friendly, so nobody uses it.
Also, it depends on a server, that isn't too secure. uTox is distributed.

Name: Anonymous 2014-06-23 20:43

>>66

It will never end.

The main core developer has committed code for the last 366 days, straight. https://github.com/irungentoo

Name: Anonymous 2014-06-23 20:54

>>64
But those aren't user-friendly, so nobody uses it.
https://www.youtube.com/results?search_query=Jitsi

Also, it depends on a server,
These clients support Off-the-Record Messaging out of the box.

Niggar, if you are gonna lie, do better.

>>68
yeah I saw. It too depressing to watch.

Name: Anonymous 2014-06-23 20:56

>>65
because they're too dumb to grasp dependent types

Name: Anonymous 2014-06-23 20:59

Trivia: even most uTox's icons are written in C. svg is bloat. Eventually, it will all be C. Even notification sounds will be in C, probably some sine waves or something (can't remember the developer exact words).

How cool is that?

Name: Anonymous 2014-06-23 21:02

>>71
Stop astroturfing, it's obvious you're the OP of this thread. You're risking a ban. We've had a few threads about Tox already, most of us just aren't interested in /g/ projects.

Name: Anonymous 2014-06-23 21:05

>>72
Sorry, I didn't know we had threads about it earlier, never saw one.
Anyway, I am mostly talking about uTox, a Tox client. Not Tox itself.
Sorry, Mr. Anonymous.

Name: Anonymous 2014-06-23 21:10

>>72
The idea started on /g/, but it isn't really a /g/ project. But whatever

Name: Anonymous 2014-06-23 21:12

The tox developers are horrible people. They are ignorant and feel they are `competing' with the other open source telephony/chat alternatives. They are also making their users vulnerable by encouraging them to use a p2p software in pre alpha stage. The only software I will write for tox will be maleware. now please go away before I turn your wall paper in goatse.

Name: Anonymous 2014-06-23 21:14

>>72
Wait, are there mods now, or is that Admin-sama?

>>75
300% agreed.

Name: Anonymous 2014-06-23 21:16

>>76
It's me. I'm still the only one.
>>73,74
Why did you split that into two posts?

Name: Anonymous 2014-06-23 21:20

>>76

Yes there are mods now. I'm looking at your i.p. right now kiddo, watch your mouth or i'll send a virus to your mom's computer.

Name: Anonymous 2014-06-23 21:23

>>77
Ah ok.

Name: Anonymous 2014-06-23 21:26

>>78
no please don't I spent a fortune to buy windows 8.1 for her!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List