Re: 4x faster strlen with 4 char sentinel

2016-06-26 Thread chmike via Digitalmars-d-announce
On Monday, 27 June 2016 at 05:10:37 UTC, chmike wrote: If you store the string size in a four byte field, you get a hard to beat fast strlen. :) If you have the constrain to work with null terminated strings, then it could be interesting to look at SIMD as was suggested or use one of the

Re: 4x faster strlen with 4 char sentinel

2016-06-26 Thread chmike via Digitalmars-d-announce
If you store the string size in a four byte field, you get a hard to beat fast strlen. :)

Re: Button: A fast, correct, and elegantly simple build system.

2016-06-26 Thread Jason White via Digitalmars-d-announce
On Monday, 20 June 2016 at 08:21:29 UTC, Dicebot wrote: On Monday, 20 June 2016 at 02:46:13 UTC, Jason White wrote: This actually sounds nice. Main problem that comes to my mind is that there is no cross-platform shell script. Even if it is list of plain unconditional commands there are always

[Semi OT] About code review

2016-06-26 Thread deadalnix via Digitalmars-d-announce
Several people during DConf asked abut tips and tricks on code review. So I wrote an article about it: http://www.deadalnix.me/2016/06/27/on-code-review/

Re: 4x faster strlen with 4 char sentinel

2016-06-26 Thread Jay Norwood via Digitalmars-d-announce
On Sunday, 26 June 2016 at 16:59:54 UTC, David Nadlinger wrote: Please keep general discussions like this off the announce list, which would e.g. be suitable for announcing a fleshed out collection of high-performance string handling routines. A couple of quick hints: - This is not a correct

Re: 4x faster strlen with 4 char sentinel

2016-06-26 Thread David Nadlinger via Digitalmars-d-announce
Hi Jay, On Sunday, 26 June 2016 at 16:40:08 UTC, Jay Norwood wrote: After watching Andre's sentinel thing, I'm playing with strlen on char strings with 4 terminating 0s instead of a single one. Seems to work and is 4x faster compared to the runtime version. Please keep general discussions

4x faster strlen with 4 char sentinel

2016-06-26 Thread Jay Norwood via Digitalmars-d-announce
After watching Andre's sentinel thing, I'm playing with strlen on char strings with 4 terminating 0s instead of a single one. Seems to work and is 4x faster compared to the runtime version. nothrow pure size_t strlen2(const(char)* c) { if (c is null) return 0; size_t l=0; while (*c){

Re: PowerNex - New release of my D kernel

2016-06-26 Thread Wild via Digitalmars-d-announce
On Sunday, 26 June 2016 at 07:43:37 UTC, Werner wrote: Latest release shows this: http://imgur.com/QOPsqkc.png Looks like you didn't give it enough RAM. What command did you run?

Re: Beta release vibe.d 0.7.29-beta.2

2016-06-26 Thread Sönke Ludwig via Digitalmars-d-announce
Am 02.06.2016 um 10:27 schrieb Sönke Ludwig: The release candidate is planned for the 6th, so please take a moment to test this release. Instead of `dub upgrade --prerelease`, edit dub.selections.json directly and put 0.7.29-beta.2 as the vibe-d version (there is already an alpha version of

Re: PowerNex - New release of my D kernel

2016-06-26 Thread Werner via Digitalmars-d-announce
Latest release shows this: http://imgur.com/QOPsqkc.png

Re: Project Highlight: The PowerNex Kernel

2016-06-26 Thread Satoshi via Digitalmars-d-announce
On Saturday, 25 June 2016 at 18:42:20 UTC, Wild wrote: On Friday, 24 June 2016 at 15:09:41 UTC, Satoshi wrote: On Friday, 24 June 2016 at 14:09:12 UTC, Mike Parker wrote: Not that long ago, Dan Printzell announced his D OS Kernel, PowerNex [1], in this forum. It is now the subject of the