On Saturday, 9 January 2016 at 21:09:05 UTC, Jason Jeffory wrote:
It might, which is why I asked, seems like it would be
something trivial to do if the address of the function and
relative address of the "variable" can be gotten at "compile
time"(not sure it is possible by maybe one could
Instead of something like
DoSomething(UserSettings["width"]);
Which requires an access to UserSettings, which may be slow in
time critical code(but you want to provide some way to configure
various behaviors), why not use self-modifying code?
DoSomething(3); // 3 maybe the default, but a
On Saturday, 9 January 2016 at 10:41:23 UTC, Rikki Cattermole
wrote:
I've been looking into this issue for web routing.
Over all its definitely more performant.
But:
- You need some way to generate code
- ABI compatibility
- Host binary compatibility (not the same as ABI)
- Front end for the
On 10/01/16 3:50 AM, John Colvin wrote:
On Saturday, 9 January 2016 at 11:38:06 UTC, Rikki Cattermole wrote:
Enums are free and global variables may have cache misses issue
An enum isn't guaranteed to be embedded in the instruction stream,
there's still plenty of opportunities for cache
On 10/01/16 12:32 AM, Jason Jeffory wrote:
On Saturday, 9 January 2016 at 10:41:23 UTC, Rikki Cattermole wrote:
I've been looking into this issue for web routing.
Over all its definitely more performant.
But:
- You need some way to generate code
- ABI compatibility
- Host binary compatibility
I've been looking into this issue for web routing.
Over all its definitely more performant.
But:
- You need some way to generate code
- ABI compatibility
- Host binary compatibility (not the same as ABI)
- Front end for the "language" to specify what to generate
I'm either going sljit way or my
On Saturday, 9 January 2016 at 11:38:06 UTC, Rikki Cattermole
wrote:
Enums are free and global variables may have cache misses issue
An enum isn't guaranteed to be embedded in the instruction
stream, there's still plenty of opportunities for cache misses.
On Saturday, 9 January 2016 at 11:38:06 UTC, Rikki Cattermole
wrote:
On 10/01/16 12:32 AM, Jason Jeffory wrote:
On Saturday, 9 January 2016 at 10:41:23 UTC, Rikki Cattermole
wrote:
I've been looking into this issue for web routing.
Over all its definitely more performant.
But:
- You need some
On Saturday, 9 January 2016 at 14:55:27 UTC, Rikki Cattermole
wrote:
On 10/01/16 3:50 AM, John Colvin wrote:
On Saturday, 9 January 2016 at 11:38:06 UTC, Rikki Cattermole
wrote:
Enums are free and global variables may have cache misses
issue
An enum isn't guaranteed to be embedded in the
On Saturday, 9 January 2016 at 23:43:32 UTC, Rikki Cattermole
wrote:
interface IFoo {
void a();
void b();
}
__gshared IFoo a, b;
__gshared IFoo instance;
class Foo(bool bar) : IFoo {
void a() {
static if (bar) {
// do something
interface IFoo {
void a();
void b();
}
__gshared IFoo a, b;
__gshared IFoo instance;
class Foo(bool bar) : IFoo {
void a() {
static if (bar) {
// do something
} else {
// do nothing
11 matches
Mail list logo