Random Chitchat 2017
I've been recently into c++, had my first segfault a few days ago.

What I still don't get, why can't things not be thread safe automagically? Can't we just assume it's thread safe? I mean, if I have a pointer in both threads, why can't I just use it in both or at least read only. Damn.
Thanks given by:
Because the CPUs aren't clever enough to make things thread safe automagically. The only languages which provide automagic thread safety do so at the cost of significant overhead, speciallism, or a lot of careful language design from the start. You can use data from multiple threads if all threads use it read-only, but I don't think we do that anywhere in the code at the moment.
Thanks given by:
There is a new language named Rust and it has very nice features:
  • zero-cost abstractions
  • move semantics
  • guaranteed memory safety
  • threads without data races
  • trait-based generics
  • pattern matching
  • type inference
  • minimal runtime
  • efficient C bindings
In this case Rust checks the code on compiling for data races, missing move's and more.
Thanks given by:
I've been following Rust for a while as it's the language used in Servo, Mozilla's experimental browser engine, but I'll have to play with it some longer to get used to the syntax.
Thanks given by:
There is also a unix-like os written in rust Big Grin
https://www.redox-os.org/
Thanks given by:
Yeah I know, I have it as a VM on my laptop Smile
Thanks given by:
From OpenHub.net:
Over the past twelve months, 40 developers contributed new code to Cuberite. This is one of the largest open-source teams in the world, and is in the top 2% of all project teams on Open Hub.
( https://www.openhub.net/p/cuberite/factoids )
:D
Thanks given by:
AwesomeBig Grin
Thanks given by:
Nice idea from google Confusedhy:
https://security.googleblog.com/2017/05/...r-and.html
Thanks given by:
@xoft Currently we have entities and for example the pickup entity that inherits from it. Couldn't we do the same with mobs, too?
Thanks given by:




Users browsing this thread: 2 Guest(s)