|
has anyone made the go 2 considered harmful joke on this page
|
![]() |
|
![]()
|
# ? Jun 6, 2023 21:39 |
|
https://twitter.com/daemon404/status/1068195760704012294 rust is a cult, says golang user
|
![]() |
|
pokeyman posted:has anyone made the go 2 considered harmful joke on this page Don't think so
|
![]() |
|
Kevin Mitnick P.E. posted:do you mean scale 7 or 7 significant digits quote:All numbers have a fixed 7 decimal places, and the maximum permitted value is +- 99999999999, or just under 100 billion.
|
![]() |
|
it also appears to use floats for any division of two "Fixed" numbers. nice
|
![]() |
|
yikes edit: had to look because no way it works that way code:
simble fucked around with this message at 23:17 on Nov 29, 2018 |
![]() |
|
code:
|
![]() |
|
code:
|
![]() |
|
So I want to learn C++. Does anyone have any book recommendations for modern C++? I'm worried if I just start googling and trying things that I'll end up writing C with classes and my code will be posted to this thread for eternity.
|
![]() |
|
modern c++ is c with templates and an angry horde of nerds strangles you if you use a pointer or throw an exception
|
![]() |
|
Asleep Style posted:So I want to learn C++. Does anyone have any book recommendations for modern C++? I'm worried if I just start googling and trying things that I'll end up writing C with classes and my code will be posted to this thread for eternity. Necronomicon, if you get the first edition it's bound in real human flesh
|
![]() |
|
Kevin Mitnick P.E. posted:modern c++ is c with templates and an angry horde of nerds strangles you if you use a pointer or throw an exception pointers kick rear end tho
|
![]() |
|
Asleep Style posted:pointers kick rear end tho yeah i know but c++ programmers are dumb
|
![]() |
|
Asleep Style posted:So I want to learn C++. Does anyone have any book recommendations for modern C++? I'm worried if I just start googling and trying things that I'll end up writing C with classes and my code will be posted to this thread for eternity. there’s a book called “modern c++” that I think is good idk I never read it once you have a basic command of the language read and follow these
|
![]() |
|
in c++ you have references, which are pointers except you don't need to use ->
|
![]() |
|
Kevin Mitnick P.E. posted:yeah i know but c++ programmers are dumb Sounds like I'll fit right in. Phobeste posted:there’s a book called “modern c++” that I think is good idk I never read it Word, thanks.
|
![]() |
|
Kevin Mitnick P.E. posted:modern c++ is c with templates and an angry horde of nerds strangles you if you use a pointer or throw an exception and if you write "proper" modern c++ another angry hoard of nerds will strangle you because you're making an unreadable nested template nightmare or not using their preferred subset of features there is no way to win at c++
|
![]() |
|
The_Franz posted:making an unreadable nested template nightmare hi yes this is my current hell someone give me a new job
|
![]() |
|
still waiting for c with typeclasses :/
|
![]() |
|
pokeyman posted:has anyone made the go 2 considered harmful joke on this page that's pretty good imo
|
![]() |
|
c++'s unique strength is writing parameterized programs that generate specific programs, which is something that most people don't want to do most of the time. they want to write the specific programs directly. it takes a ton of code and consideration of minutiae to write a "correct" C++ template that is suitable for inclusion in a library and people get salty over that fact because they just want to parameterize over the type of some operation and not worry about every potential interaction with other client code's reference types etc luckily i haven't had to write c++ recently but any template that i'm writing that's not going into a library (which is all of them since i don't write libraries) is probably not going to cover every edge case wrt perfect forwarding and other poo poo that will end up getting compiled out or not even instantiated in the first place because im only instantiating it with ints. it's basically a case of premature optimization if you're working overtime to satisfy client constraints that you made up yourself for no reason
|
![]() |
|
yeah, but on the other hand, who cares if you vanish into your own rear end in a top hat perfecting your template code?
|
![]() |
|
c++ is too hard
elite_garbage_man fucked around with this message at 06:14 on Nov 30, 2018 |
![]() |
|
Kevin Mitnick P.E. posted:still waiting for c with typeclasses :/ It's called Rust friend
|
![]() |
|
Just reviewing some of our business logic and came across thiscode:
|
![]() |
|
Volte posted:c++'s unique strength is writing parameterized programs that generate specific programs, which is something that most people don't want to do most of the time. they want to write the specific programs directly. it takes a ton of code and consideration of minutiae to write a "correct" C++ template that is suitable for inclusion in a library and people get salty over that fact because they just want to parameterize over the type of some operation and not worry about every potential interaction with other client code's reference types etc This is a really interesting post. Gonna have to think hard about if these are the type of problems I would like to have at my job.
|
![]() |
|
i'm working on a project that needs to be able to detect the presence of one specific object in a video stream. imagine like jian-yang's hot dog/not hot dog software, essentially, but maybe even simpler because i'm looking for literally the same object over and over again instead of a general category of hot dogs. however, the object has a fairly complex shape and i need to be able to detect it from any angle. i feel like this can be done fairly reliably today on desktop hardware with a well-trained neural network, but I don't know anything about what software i should be looking into. anyone got any names?
|
![]() |
|
Sagebrush posted:i'm working on a project that needs to be able to detect the presence of one specific object in a video stream. imagine like jian-yang's hot dog/not hot dog software, essentially, but maybe even simpler because i'm looking for literally the same object over and over again instead of a general category of hot dogs. however, the object has a fairly complex shape and i need to be able to detect it from any angle. I did something similar a while ago using tensorflow without too much headache. I followed whatever docs they had at the time which basically involved getting two sets of images, one with the object in it and one without. Then it was pretty much just passing the paths to those sets as args into 'train.py' and waiting. Searching for "tensorflow object detection training" looks like it gives some decent tutorials.
|
![]() |
|
Volte posted:c++'s unique strength is writing parameterized programs that generate specific programs, which is something that most people don't want to do most of the time. they want to write the specific programs directly. it takes a ton of code and consideration of minutiae to write a "correct" C++ template that is suitable for inclusion in a library and people get salty over that fact because they just want to parameterize over the type of some operation and not worry about every potential interaction with other client code's reference types etc Is this why game engines are written in c++? because they're literally programs that are generating specific game programs?
|
![]() |
|
Finster Dexter posted:Is this why game engines are written in c++? because they're literally programs that are generating specific game programs? it’s mostly that c++ will be portable across multiple platforms and has the correct balance of performance and convenience for things like games
|
![]() |
|
hellll yes, spent the entire afternoon documenting something I did months ago and remembered how clever it is ![]() otoh pretty sure nobody else reads our confluence site apart from me
|
![]() |
|
Powerful Two-Hander posted:hellll yes, spent the entire afternoon documenting something I did months ago and remembered how clever it is at least go to the bathroom to jo like that
|
![]() |
|
gonadic jo denial
|
![]() |
|
gonadic io posted:at least go to the bathroom to jo like that i can't charge my crystal if there's nobody else with me
|
![]() |
|
Powerful Two-Hander posted:i can't charge my crystal if there's nobody else with me so that is the two-handed technique. powerful. ![]()
|
![]() |
|
lmbo at the last four posts
|
![]() |
|
Krankenstyle posted:so that is the two-handed technique. powerful. ![]() edit: definitely compared to the German "broken" style
|
![]() |
|
Sagebrush posted:i'm working on a project that needs to be able to detect the presence of one specific object in a video stream. imagine like jian-yang's hot dog/not hot dog software, essentially, but maybe even simpler because i'm looking for literally the same object over and over again instead of a general category of hot dogs. however, the object has a fairly complex shape and i need to be able to detect it from any angle. are you trying to find the location of the object within the image or just whether or not the image has the object in it?
|
![]() |
|
Powerful Two-Hander posted:
all man bracing
|
![]() |
|
![]()
|
# ? Jun 6, 2023 21:39 |
|
gonadic io posted:It's called Rust friend i said c with typeclasses not impl CompilerFucksYouForever for C
|
![]() |