Eg: Robin Kills the Enemy
255 karma · joined June 2, 2012
Eg: Robin Kills the Enemy
One of the guys working on Redox OS make a library called cake which provides macros for a Makefile style script: https://github.com/ticki/cake
[1] For example:
* `u16` would now be: `const u16` * `int` is no longer a type. * `slice::as_ptr` is now a method, so using transmute to extract the pointer from a slice is probably not ideal. * `core` is a crate that includes things like transmute so you don't need to manually include rust intrinsics etc.
I've also seen is used to implement a distributed malloc. When a segfault occurs, the handler messages the programs peers asking if they have the data for that address. If so the peers sends the page and the handler maps in a new page for that address with the correct data in it. This is essentially implementing a page fault handler in user space. (For some network backed memory).
> some mobile games
Cutting a sentence in half is pretty silly.
His actual point is there are a lot of Games with poor game design. This is probably related to the barrier of entry of Mobile games. It costs very little to put together a App and launch it on Google Play or Apple's Store. Compared with building actual arcade machines (or paying someone else to build them) and shipping them to Arcades.
For example: on a network service, you have 1 thread listening for new connections, when a new connection is made. It starts a new thread, which calls the handler. The listener thread then goes back to listening for new connections.
Now the advantages can depend on your green threading implementation. If a listener thread blocks on reading from Disk or a DB. Then the listener thread can still wait for new connections and other connection handlers can still operate. Making you network application responsive, without increasing latency on clone syscalls.
Of course you can achieve this in other ways.
I had it in once (it's one the options in zsh setup)
Once I was cleaning my home directory:
rm -rf tec<Tab>
rm -rf IdeaProjects<Ret>
I'm a bit too quick to press enter after tab. So i deleted the wrong folder.I do still have it auto correct case. So `doc<Tab> -> Documents`
Most motherboard vendors also thrown stuff onto enterprise motherboards for doing things remotely. They can have issues: https://www.youtube.com/watch?v=GZeUntdObCA
"Last October, Microsoft and Docker, Inc. jointly announced plans to bring containers to developers across the Docker and Windows ecosystems via Windows Server Containers, available in the next version of Windows Server."
http://azure.microsoft.com/blog/2015/04/08/microsoft-unveils...
Telstra didn't update because of a battery issue. Which was true... the battery died quickly if you left the GPS on. I didn't use the GPS much so I left it off. (This issue has since been resolved, then telstra enabled the update)
Considering I didn't even have Telstra as a carrier. it was because JB-HIFI is a Telstra reseller that this happened.
It's because the Manufacturer agreed to only update when Telstra updated. It's all through the Sony update software.
Although the "Only run on Apple Hardware" would probably be fine.
(See the above posters link: https://nikic.github.io/2012/06/15/The-true-power-of-regular...)
Nvidia have been pushing for bindless graphics.
http://developer.download.nvidia.com/opengl/tutorials/bindle...
In this way: Dos 5.0 Installes windows 1.0 -> windows 2.0 -> windows 3.0 -> windows 3.1 -> windows 95 -> windows 98 -> windows 2000 -> windows xp -> windows vista -> windows 7.
He skipped ME because he couldn't update ME to 2000. All through this he had Doom installed and it ran successfully on vista without modification.
Starting with green threads is really easy too:
extern crate green;
extern crate rustuv;
#[start]
fn start(argc: int, argv: *const *const u8) -> int {
green::start(argc, argv, rustuv::event_loop, main)
}
fn main() {
// this code is running in a pool of schedulers all powered by libuv
}
Edit:
You can also start up a new libgreen scheduler pool at any time and add some native threads to the pool. So you can have some threads running with libgreen and some with libnative. (So you could theoretically embed a go program inside a rust program)`5` would be signed or unsigned if left off. Depends on how you use it.
So you could try.
use std::num::abs;
let v = vec!['a', 'b', 'c', 'd'];
let x = 3;
let c = v[x]; // v.index (operator overload) constrains x to type uint.
let y = abs(x); // error: failed to find an implementation of trait core::num::Signed for uint.
// abs can't constain the type to an int because abs can take anything that
// implements `Signed` (eg BigInt)
If you wanted to make sure that x was signed. let v = vec!['a', 'b', 'c', 'd'];
let x = 3i;
let y = abs(x); // Ok as x is signed.
let c = v[x]; // error: mismatched types: expected `uint` but found `int`
If you really wanted to index to try an index with an int you can use a checked cast. let casted = x.to_uint(); // Returns None if x is negative or Some(x) if it's postive.
Also a generic int doesn't have to be int or uint, it can be any integer value: signed: i8, i16, i32, i64 or int. Unsigned: u8, u16, u32, u64 or uint.