std.experimental & http://jemalloc.net/

2018-08-03 Thread Robert M. Münch via Digitalmars-d
Has anyone already experimented with the jemalloc [1] allocator and D? [1] http://jemalloc.net/ -- Robert M. Münch http://www.saphirion.com smarter | better | faster

Re: VisualD / fatal error C1905: Front-End and Back-End are not compatible (have to use the same processor)

2018-07-01 Thread Robert M. Münch via Digitalmars-d
On 2018-07-01 07:10:07 +, Robert M. Münch said: I try a cross-post from an older post here as I didn't recveive any answer in D.learn and I don't have any clue how to solve this: ==> START A project I can compile via the command line and dub, gives an error in VisualD. I created the Visu

VisualD / fatal error C1905: Front-End and Back-End are not compatible (have to use the same processor)

2018-07-01 Thread Robert M. Münch via Digitalmars-d
I try a cross-post from an older post here as I didn't recveive any answer in D.learn and I don't have any clue how to solve this: ==> START A project I can compile via the command line and dub, gives an error in VisualD. I created the VisualD configuration through dub: fatal error C1905: Fr

Re: Default hashing function for AA's

2018-05-31 Thread Robert M. Münch via Digitalmars-d
On 2017-10-10 15:22:05 +, Steven Schveighoffer said: AA uses typeid(Key).getHash. [1] For objects, this calls the virtual function `toHash`. [2] Please keep in mind that all you are hashing is the class reference pointer, as that is the default comparison for `opEquals`. It might make se

Comparing the c ffi overhead on various programming languages

2018-05-28 Thread Robert M. Münch via Digitalmars-d
Might be interesting to checkout to find some optimization potential: https://github.com/dyu/ffi-overhead -- Robert M. Münch http://www.saphirion.com smarter | better | faster

http://www.graalvm.org

2018-04-22 Thread Robert M. Münch via Digitalmars-d
"GraalVM is a universal virtual machine for running applications written in JavaScript, Python 3, Ruby, R, JVM-based languages like Java, Scala, Kotlin, and LLVM-based languages such as C and C++." They use a special protocol to make data access from different languages transparent and very lo

Re: dub / libs / rebuild not triggered

2018-04-04 Thread Robert M. Münch via Digitalmars-d
On 2018-04-01 22:24:54 +, Seb said: Bug. Imho dub should compare the timestamp of its dependencies and see whether they are newer than the target like e.g. Make. https://github.com/dlang/dub/issues/new Just found out, that I had two versions of DUB installed... one very old. Going to x-

dub / libs / rebuild not triggered

2018-04-01 Thread Robert M. Münch via Digitalmars-d
Hi, I have the following line in my dub.json file: "libs-windows-x86_64": ["user32", "kernel32", "gdi32", "b2d_playground"] b2d_playground is a C based .lib file. If this lib is updated and I run: dub build --arch=x86_64 nothing happens. The EXE is not rebuild, taking into accoun the updated l

Re: Special Code String for mixins

2018-03-14 Thread Robert M. Münch via Digitalmars-d
On 2017-03-15 13:50:28 +, Inquie said: I hate building code strings for string mixins as it's very ugly and seems like a complete hack. ... Even a bit old, I would like to pick-up this topic, as I totally agree with the statement. Thinking this a bit further, it would be very nice to h

VisualD & dub

2018-03-03 Thread Robert M. Münch via Digitalmars-d
Can VisualD somehow make use of dub in that I don't have to provide any "include paths" for modules etc.? It's a bit irritating to use dub on the terminal and sometimes VisualD for debugging etc. and have to configure the same project two times. -- Robert M. Münch http://www.saphirion.com sma

Re: reactivex.io for/and D?

2018-02-25 Thread Robert M. Münch via Digitalmars-d
On 2018-02-25 13:18:32 +, visitor said: On Sunday, 25 February 2018 at 12:51:13 UTC, Robert M. Münch wrote: Hi, as anyone ever played around with the stuff from [1] and D? Or maybe even started to implement a D verison of it? Which, IMO would be very cool to have. [1] http://reactivex.

reactivex.io for/and D?

2018-02-25 Thread Robert M. Münch via Digitalmars-d
Hi, as anyone ever played around with the stuff from [1] and D? Or maybe even started to implement a D verison of it? Which, IMO would be very cool to have. [1] http://reactivex.io/ -- Robert M. Münch http://www.saphirion.com smarter | better | faster

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Robert M. Münch via Digitalmars-d
On 2018-02-04 12:41:16 +, notna said: ... found this a nice read some time ago... https://blog.plan99.net/modern-garbage-collection-911ef4f8bd8e Thanks, pretty interesting. BTW: I used this stuff about 20 years ago: http://www.microquill.com/ and they are still around. And yes, it was da

Re: For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Robert M. Münch via Digitalmars-d
On 2018-02-04 08:41:04 +, rikki cattermole said: "It doesn't need to be concurrent, since Lua states are completely independent." Single threaded simplifies a lot. So no, not useful. Well, I wouldn't be able to judge that fast from a single line in the text, if the concept can/can't be

For Inspiration: arena-based, quad-color incremental, generational, non-copying, high-speed, cache-optimized garbage collector

2018-02-04 Thread Robert M. Münch via Digitalmars-d
Hi, not sure if anyone is aware of this: http://wiki.luajit.org/New-Garbage-Collector I don't know if anythin like this would fit for D but the concept is described pretty extensive. -- Robert M. Münch http://www.saphirion.com smarter | better | faster

Platform to make any programming language interactive & explorative (http://jupyter.org)

2017-11-12 Thread Robert M. Münch via Digitalmars-d
Hi, that might be some interesting project to add D to, for interactive exploration. http://jupyter.org Project Jupyter exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages. -- Robert M. Münch http://www.saphir

Re: C++ / Why Iterators Got It All Wrong

2017-09-04 Thread Robert M. Münch via Digitalmars-d
On 2017-09-03 12:46:05 +, Moritz Maxeiner said: I'll put in on my ever growing list of things to check out in depth, thanks :p You're welcome. Don't wait to long ;-) There is no difference between code & data in Rebol. And it has a very rich set of datatpye, IIRC about 35 native ones. An

Re: C++ / Why Iterators Got It All Wrong

2017-09-03 Thread Robert M. Münch via Digitalmars-d
On 2017-09-02 21:27:58 +, Moritz Maxeiner said: Thanks for your post about Rebol, I didn't know it before. As said, the official Rebol-2 version is a dead-end. Even our main product is still based on it :-) 15 years old technology, but still working and we know all problemes. So very few

Re: Editor recommendations for new users.

2017-09-02 Thread Robert M. Münch via Digitalmars-d
On 2017-08-30 11:28:35 +, Anonymouse said: ... considering that my vim knowledge so far largely consists of :wq and :q!. If you want to learn it fast up to a level that covers 90% of what you need www.shortcutfoo.com is your friend. -- Robert M. Münch http://www.saphirion.com smarter |

Re: C++ / Why Iterators Got It All Wrong

2017-09-02 Thread Robert M. Münch via Digitalmars-d
On 2017-09-01 20:34:32 +, Mark said: On Tuesday, 29 August 2017 at 12:50:08 UTC, Robert M. Münch wrote: Maybe of interest: https://www.think-cell.com/en/career/talks/iterators/#1 I haven't read everything, so not sure if it worth to take a look. Iterators have many problems. Andrei's tal

Re: C++ / Why Iterators Got It All Wrong

2017-09-02 Thread Robert M. Münch via Digitalmars-d
On 2017-08-31 07:13:55 +, drug said: Interesting. How is it comparable with iterators and ranges ideas? Well, see: http://www.rebol.com/docs/core23/rebolcore-6.html#section-6 Just download the interpreter and play around with it to get a feeling. Overall it's way more functional. Like ge

Re: C++ / Why Iterators Got It All Wrong

2017-08-30 Thread Robert M. Münch via Digitalmars-d
On 2017-08-29 13:23:50 +, Steven Schveighoffer said: ... In Phobos, find gives you a range where the first element is the one you searched for, and the last element is the end of the original range. But what if you wanted all the data *up to* the element instead? What if you just wanted t

C++ / Why Iterators Got It All Wrong

2017-08-29 Thread Robert M. Münch via Digitalmars-d
Maybe of interest: https://www.think-cell.com/en/career/talks/iterators/#1 I haven't read everything, so not sure if it worth to take a look. -- Robert M. Münch http://www.saphirion.com smarter | better | faster

Convert object file formats (link)

2016-12-02 Thread Robert M. Münch via Digitalmars-d
Not sure if this is still sometimes necessary when using DMD with other compilers or libraries. But these here looks very promising: http://www.agner.org/optimize/ Object file converter This utility can be used for converting object files between COFF/PE, OMF, ELF and Mach-O formats for all 32

Scitools & D support?

2016-09-20 Thread Robert M. Münch via Digitalmars-d
Hi, not sure if any of you know this "understand" tool from [1]? It's pretty cool if you need to get into legacy or foreign code bases fast. IMO it would be great if they would add D as well. I'm not sure if I have the full overview about all libs, etc. that can help parsing D code and/or rule

GC Inspiration

2016-08-26 Thread Robert M. Münch via Digitalmars-d
I'm just digging into LuaJIT and found this interesting GC concept page: http://wiki.luajit.org/New-Garbage-Collector Not sure if this is widly known but I like it, it shows a lot of different approaches with rational etc. Maybe it's of use to some of you thinking about the GC. -- Robert M.

Re: CTFE thoughts & functional approach

2016-02-08 Thread Robert M. Münch via Digitalmars-d
On 2016-01-31 13:59:06 +, Robert M. Münch said: I like CTFE and the meta programming idea for languages like D. However, I'm wondering why most (everyone?) is trying to do meta-programming using the same language as the one getting compiled. IMO the use-cases a pretty different and doing

Re: CTFE thoughts & functional approach

2016-02-02 Thread Robert M. Münch via Digitalmars-d
On 2016-02-02 08:39:34 +, deadalnix said: That is definitely true that the compile time API is kind of screwy. That's definitively not you. I think the best path forward at this stage is to provide nice API as a library on top of it. And if we do this, it's only a small step to add a func

Re: CTFE thoughts & functional approach

2016-02-02 Thread Robert M. Münch via Digitalmars-d
On 2016-02-01 08:15:11 +, deadalnix said: I'm not sure what is preventing you from doing that already. There is compile time reflection (has access to some compiler internals) and D support functional style. Unless you have some specific in mind, I don't think there is anything we can do t

Re: CTFE thoughts & functional approach

2016-02-02 Thread Robert M. Münch via Digitalmars-d
On 2016-01-31 15:31:59 +, anonymous said: You're conflating CTFE with the other meta programming tools here. CTFE is the same language as run-time D, but it doesn't have strange template syntax. Templates, static if, __traits, etc. have strange syntax, but they're sort of a different langu

Re: CTFE thoughts & functional approach

2016-02-02 Thread Robert M. Münch via Digitalmars-d
On 2016-01-31 14:35:13 +, cym13 said: I see things differently. First of all I don't see everyone trying to do meta-programming with the same language. C++ for example has a quite specific syntax between its arcane templates and the preprocessor. Well, ok, maybe a "using the same concepts

CTFE thoughts & functional approach

2016-01-31 Thread Robert M. Münch via Digitalmars-d
I like CTFE and the meta programming idea for languages like D. However, I'm wondering why most (everyone?) is trying to do meta-programming using the same language as the one getting compiled. IMO the use-cases a pretty different and doing CTFE, code-generation etc. needs some other approach.