You are not logged in!

F.A.Q
Log in

Register
  
 
  
(nobody)
...and 23 guests

Last 5 registered
Oplandisks
nothingstar
N_loop
yipe
foxtrotromeo

Browse members...
  
 
Members 8025
Messages 2592655
Today 12
Topics 126283
  
 
Messageboard index
C programming
 

offline umbroman3 from United Kingdom on 2021-08-09 19:08 [#02610593]
Points: 5626 Status: Lurker



Let's go


 

offline recycle from Where is Phobiazero (Lincoln) (United States) on 2021-08-09 22:20 [#02610612]
Points: 38237 Status: Addict



I only do F programming


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-09 22:23 [#02610613]
Points: 30221 Status: Addict | Followup to recycle: #02610612



do your fingers smell after you program?


 

offline EpicMegatrax from Greatest Hits on 2021-08-10 08:02 [#02610626]
Points: 18477 Status: Lurker



C and C++ are different orders of magnitude. with sheer C,
there is no object-oriented whatever. no classes; no
inheritance. you don't even have objects... you just have,
essentially, what is effectively the primordial ooze
precursor of objects: a structure, aka "struct"

a struct does not have methods. it is just a data
struct[ure]. you have to define it completely upfront: i
want two 32-bit integers and a 1k string. and it is baked
into the binary when compiled; the computer sets it all
aside in advance and if you don't have enough to set aside
you get a rude error and please go buy more RAM.

but, with the proper design patterns, you can very carefully
sit down and kind of pretend that you actually have
object-oriented whatever.

C++ introduced actual classes, inheritance, whatever. Then
there is an ANSI spec. Then there's the STL, the Standard
Template Library. Then the STL becomes really really fucking
complicated. now C++ has fucking versions FML

but i suppose nothing lasts forever. and something lasts
never. let's gon't


 

offline EpicMegatrax from Greatest Hits on 2021-08-10 08:04 [#02610627]
Points: 18477 Status: Lurker



you'd use C to write a driver for a wifi chipset, these
days. low-level, i need to manipulate tiny deep obscure
hardware registers, kind of stuff. once that's over with,
you use C++. then, typically, you get lazy and move on to a
scripting language. only gets worse from there


 

offline umbroman3 from United Kingdom on 2021-08-10 13:14 [#02610649]
Points: 5626 Status: Lurker | Followup to EpicMegatrax: #02610626



Cheers mate! Interesting post


 

offline mappatazee from ¨y¨z¨| (Burkina Faso) on 2021-08-12 00:10 [#02610689]
Points: 14271 Status: Lurker



No reason to use C++, it's really a legacy programming
language. Rust is pretty good.


 

offline mappatazee from ¨y¨z¨| (Burkina Faso) on 2021-08-12 00:30 [#02610690]
Points: 14271 Status: Lurker



for your consideration
https://thephd.dev/your-c-compiler-and-standard-library-wil
l-not-help-you


 

offline mappatazee from ¨y¨z¨| (Burkina Faso) on 2021-08-12 00:30 [#02610691]
Points: 14271 Status: Lurker



LAZY_TITLE


 

offline dariusgriffin from cool on 2021-08-13 02:11 [#02610712]
Points: 11903 Status: Regular



i like c#


 

offline EpicMegatrax from Greatest Hits on 2021-08-13 05:44 [#02610713]
Points: 18477 Status: Lurker | Followup to dariusgriffin: #02610712



you're clearly worse than hitler


 

offline EpicMegatrax from Greatest Hits on 2021-08-13 05:45 [#02610714]
Points: 18477 Status: Lurker



Qt/C++ is pretty wonderful for cross-platform development,
if you hate the electron framework (and what it has done to
desktop messaging platforms) like i do. javascript
everything? suck my balls.


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 18:46 [#02610900]
Points: 5480 Status: Addict



What about it?
I would seriously avoid writing any C if you can...
It is good for knowing exactly what machine code is going to
be coming out of the compiler for whatever it is you are
writing, that's about it.
Good for bits of things that need to be as fast as
possible.
.. Fucking 50 years old... when is the anniversary?
C++ is fucking evil as far as im concerned but C++17 make a
lot of things a lot nicer... But its still fucking evil. An
ex-collegue of mine who had been around the block many times
used to cross himself when it got mentioned.



 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 18:48 [#02610901]
Points: 5480 Status: Addict



You can bang stuff out in Python or JS at an order of
magnitude faster than stuff in C, possibly several orders
depending on what it is


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 18:52 [#02610902]
Points: 5480 Status: Addict



>>> javascript everything? suck my balls.
Have you heard Douglas Crockford talk about JS, or read his
books? He makes a very decent case for there being a
somewhat decent language buried in there, if you stick a
strict subset.


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 18:53 [#02610903]
Points: 5480 Status: Addict



(Crockfords cool for other reasons too, look him up; old
Atari programmer, worked for Lucasfilm)


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 19:09 [#02610904]
Points: 30221 Status: Addict



LAZY_TITLE



 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 19:12 [#02610905]
Points: 5480 Status: Addict



lol that's a "Sign in to confirm your age" ... and be fucked
if i'm giving google my CC number
Turing tar pits are cool doe


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 19:15 [#02610906]
Points: 30221 Status: Addict



I find the abstraction of logic really dead interesting, I
was trying to get my head round Gödel's incompleteness
theorem the other day, but I still don't understand it


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 19:17 [#02610907]
Points: 5480 Status: Addict



nor do i really.. been meaning to have another go at reading
GEB:EGB


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 19:21 [#02610908]
Points: 5480 Status: Addict



weirdly enough i was thinking about it briefly today: a
record player that plays a record that makes the record
player self destruct.... it's been a while.


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 19:21 [#02610909]
Points: 30221 Status: Addict | Followup to steve mcqueen: #02610907



Yeah need to have a look of that myself, he did something
really weird like broke down all logical operators to having
their own distinct number/symbols and added them together in
some way to prove you can't logically prove some things. I'm
paraphrasing cos it just seemed a bit unintuitive


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 19:23 [#02610910]
Points: 30221 Status: Addict



LAZY_TITLE


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 20:29 [#02610920]
Points: 5480 Status: Addict



what it means to me is that there is no method of
representation that can encapsulate conciousness...
conciousness is always outside of any system, by definition.
Now, if we understand the physical world via a 'system' -
ie. physics, then this means that conciousness is
non-physical. That is a big lovely 'WTF'
It has always been a nice glimmer of hope to me.
I think the standard of pop science books has gone down
somewhat since GEB:EGB was in the top sellers; kinda
reflected in New Scientist going to shit too, maybe...


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 20:30 [#02610921]
Points: 5480 Status: Addict



Or am I thinking about Horizon, or both.


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 20:32 [#02610923]
Points: 30221 Status: Addict | Followup to steve mcqueen: #02610920



I was thinking about that alot, what Roger Penrose says
about consciousness https://www.youtube.com/watch?v=hXgqik6HXc0 that it's not a
computation


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 20:32 [#02610924]
Points: 30221 Status: Addict



rather


 

offline steve mcqueen from caerdydd (United Kingdom) on 2021-08-18 20:42 [#02610925]
Points: 5480 Status: Addict



lol yeah, that sums up what i was trying to say a lot
better!
(Have u listened to Penrose on J.Rogan podcast? It is so
mental that he got him on there..brilliant)


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 20:50 [#02610927]
Points: 30221 Status: Addict | Followup to steve mcqueen: #02610925



i probably should, Rogan gets on my wick a bit! Penrose is
just great/relaxing to listen to


 

offline Hyperflake from Wirral (United Kingdom) on 2021-08-18 20:51 [#02610928]
Points: 30221 Status: Addict | Followup to Hyperflake: #02610924



@ around 5:59 he says "red blood cecil" rather than red
blood cells the corrects himself hehe


 

offline EpicMegatrax from Greatest Hits on 2021-08-19 08:47 [#02610974]
Points: 18477 Status: Lurker | Followup to steve mcqueen: #02610900



i said qt/c++

i was writing a video editing app for a client running OSX.
i did all the development on linux and then built it for OSX
on an old macbook they sent me. only bugs we ever hit were
stuff involving keys you don't have on a linux PC, i coded
the combos in but i had to the macbook to test 'em. then
things i didn't even really have like magic mouse whatever.
aside from that, fucker worked like a charm

client said, "hey, for a laugh, i compiled it on windows,
and it works there too! but since windows \ instead of /
like everyone else file ops are pretty iffy"

then you could also compile it for android and iOS but so
much of that thing is keyboard/mouse based, don't know what
the fuck you'd do with it there. but it would launch, and
arguably work as designed

and it will be lightyears faster than anything javascript
ever sharts out. native multithreading. true hardware access


 

offline EpicMegatrax from Greatest Hits on 2021-08-19 08:48 [#02610975]
Points: 18477 Status: Lurker



at least on platforms that allow it, anyways.


 

offline EpicMegatrax from Greatest Hits on 2021-08-20 07:53 [#02611005]
Points: 18477 Status: Lurker



ruby off the rails on diamonds


 


Messageboard index