ldc std.getopt

2015-04-29 Thread Laeeth Isharc via Digitalmars-d-learn
When building the following (reduced by hand - I hope I didn't take out something useful when doing so): import std.stdio; import std.getopt; int main(string[] args) { string apiKey; string startCode; bool reverseOrder=false; bool noReverse=false; auto

stdx.data.json

2015-04-29 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. What's the best way to pass the contents of a file to the stream parser without reading the whole thing into memory first? I get an error if using byLine because the kind of range this function returns is not what the stream parser is expecting. There is an optional filename argument

Re: ldc std.getopt

2015-04-29 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 29 April 2015 at 20:45:26 UTC, Anon wrote: On Wednesday, 29 April 2015 at 19:43:44 UTC, Laeeth Isharc wrote: I get the following errors under LDC (this is LDC beta, but same problem under master) although the code compiles fine under DMD. Am I doing something wrong? The help

Re: Cleaned up C++

2015-04-27 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 26 April 2015 at 19:13:33 UTC, ponce wrote: On Sunday, 26 April 2015 at 14:28:11 UTC, Baz wrote: On Sunday, 26 April 2015 at 12:04:20 UTC, Laeeth Isharc wrote: On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote: On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote: I

Re: C++ interface problem

2015-04-27 Thread Laeeth Isharc via Digitalmars-d-learn
On Sunday, 26 April 2015 at 15:49:46 UTC, extrawurst wrote: I hope someone can tell me where my bug is. I am linking to a dynamic library with C++ interfaces: ``` //alias S = ulong; struct S { ulong data; } extern(C) I getI(); extern(C++) interface I { void foo(); S bar(); } ``` now

Re: array operations and ranges

2015-04-26 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 26 April 2015 at 10:17:59 UTC, Manu wrote: Array operations are super cool, and I'm using ranges (which kinda look and feel like arrays) more and more these days, but I can't help but feel like their incompatibility with the standard array operations is a massive loss. Let's say I

Re: ReQL: pluses and minuses of pipeline-style queries

2015-04-26 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote: I'm personally moving towards a DSL. unittest { auto myQuery = using webdev.base.orm.query.parser.defs # allow for D class name instead of table name ; # end of \sentence\ from MyModel where key == $0 as simple # as

Re: Cleaned up C++

2015-04-26 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote: On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote: I should put in in a d-idioms anyway. http://p0nce.github.io/d-idioms/#How-does-D-improve-on-C++17? excellent. I linked it here: http://wiki.dlang.org/Coming_From

Re: [OT] compiler optimisations

2015-04-26 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 25 April 2015 at 22:05:05 UTC, Ola Fosheim Grøstad wrote: On Saturday, 25 April 2015 at 14:48:41 UTC, Laeeth Isharc wrote: I find it worrying that the evangelical D users are perceiving D as a compiled scripting language and claim it is similar to Python... D semantics are not at

Porting Page on Wiki needs work

2015-04-26 Thread Laeeth Isharc via Digitalmars-d
http://wiki.dlang.org/PortingOverview Page was linked to but non-existent. I put a couple of links to p0nce, and will try to fill it out a bit over time but perhaps others could share their expertise. Thanks. Laeeth.

Re: [OT] compiler optimisations

2015-04-25 Thread Laeeth Isharc via Digitalmars-d
Hi Ola. You have been in this community for much longer than me, and I always learn from your posts technically. I find it worrying that the evangelical D users are perceiving D as a compiled scripting language and claim it is similar to Python... D semantics are not at all like Python.

Re: Coding for solid state drives

2015-04-25 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 25 April 2015 at 11:34:22 UTC, ketmar wrote: On Fri, 24 Apr 2015 01:27:15 -0700, Walter Bright wrote: if there are any modifications we should make to std.stdio to work better with SSDs? (Such as changing the buffer sizes.) yes: don't do anything. it's OS task to cope with

Re: AA Performance in Benchmarks

2015-04-25 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 23 April 2015 at 15:29:37 UTC, Steven Schveighoffer wrote: On 4/23/15 10:40 AM, Shammah Chancellor wrote: 2) I saw a thread awhile ago where someone had posted an updated implementation of the AA with benchmarks and showed that it was substantially faster in all cases. I can't

Re: Coding for solid state drives

2015-04-25 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 25 April 2015 at 16:10:11 UTC, ketmar wrote: On Sat, 25 Apr 2015 14:19:30 +, Laeeth Isharc wrote: But surely, it would be a start to make it easy for the user to know so she can shape her approach accordingly. i believe that this must be controlled with `version` or cli

GetModuleHandle

2015-04-22 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. I am trying to use the Excel API with latest release dmd on Win 32. It looks like GetModuleHandle isn't in the D windows header anymore. Should I try to use GetModuleHandleA or B ? Thoughts?

Re: GetModuleHandle

2015-04-22 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 22 April 2015 at 19:37:35 UTC, John Chapman wrote: On Wednesday, 22 April 2015 at 18:31:20 UTC, Laeeth Isharc wrote: Hi. I am trying to use the Excel API with latest release dmd on Win 32. It looks like GetModuleHandle isn't in the D windows header anymore. Should I try to

Re: What is the memory usage of my app?

2015-04-16 Thread Laeeth Isharc via Digitalmars-d-learn
Fwiw, I have been working on something similar. Others will have more experience on the GC, but perhaps you might find this interesting. For CSV files, what I found is that parsing is quite slow (and memory intensive). So rather than parse the same data every time, I found it helpful to do

basic question about text file encodings

2015-04-16 Thread Laeeth Isharc via Digitalmars-d-learn
What is the best way to figure out and then decode a file of unknown coding to dchar? 2½% Index-linked Treasury Stock 2016,GB0009075325,26-Jul-2016,28-Feb-2014,8 month,337.81,338.577874,0.76787400,-1.953546,2.37 Eg I am not sure what encoding the 1/2 is in above, but treating it as

Re: Calypso: Direct and full interfacing to C++

2015-04-16 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 16 April 2015 at 16:42:42 UTC, Elie Morisse wrote: On Thursday, 16 April 2015 at 06:43:25 UTC, Suliman wrote: Could anybody wrote very simple tutorial, that show how to use any popular C/C++ lib without binding? I mean step by step manual. Also it would be nice to get binary

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
On Monday, 13 April 2015 at 16:33:06 UTC, Joakim wrote: On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: BTW - since we have linux on ARM, the following may be useful if you wish to run a D application on your Android mobile device. No ADB or root required.

Re: Programming languages and performance

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
thanks for the links and colour, Walter and HST But at the end of the day, the programmer has to know how to write cache-efficient code. No matter how the language/compiler tries to be smart and do the Right Thing(tm), poorly-laid out data is poorly-laid out data, and you're gonna incur cache

Re: IMAP library

2015-04-13 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 13 April 2015 at 18:03:12 UTC, Jens Bauer wrote: On Monday, 13 April 2015 at 14:31:56 UTC, Johannes Pfau wrote: Am Sun, 12 Apr 2015 17:27:31 + schrieb Jens Bauer doc...@who.no: I won't say it's impossible, but it would be cumbersome processing email on an AVR. There are HTTP

Re: Programming languages and performance

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 14 April 2015 at 02:44:15 UTC, Laeeth Isharc wrote: thanks for the links and colour, Walter and HST But at the end of the day, the programmer has to know how to write cache-efficient code. No matter how the language/compiler tries to be smart and do the Right Thing(tm),

Re: IMAP library

2015-04-13 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 14 April 2015 at 02:31:23 UTC, Adam D. Ruppe wrote: You might like my email.d too https://github.com/adamdruppe/arsd/blob/master/email.d It is able to help construct emails and also read an mbox format - part of that code might help your imap library too. Thanks, Adam. Was just

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
On Monday, 13 April 2015 at 18:30:16 UTC, Johannes Pfau wrote: Am Mon, 13 Apr 2015 17:44:41 + schrieb Laeeth Isharc laeeth.nos...@nospam-laeeth.com: On Monday, 13 April 2015 at 16:33:06 UTC, Joakim wrote: On Sunday, 12 April 2015 at 19:03:33 UTC, Laeeth Isharc wrote: BTW - since we

Re: Probably you can run a D command line app on an android ARM device

2015-04-13 Thread Laeeth Isharc via Digitalmars-d
Dicebot: I am pretty sure I remember people reporting running vibe.d on Raspberry Pi It is not checked by CI so things can break time to time, but in general it should work Thanks. So currently for me - running arch linux within a chroot under android on a oneplusone phone - gdc seems to

Re: ARMv7 vs x86-64: Pathfinding benchmark of C++, D, Go, Nim, Ocaml, and more.

2015-04-12 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 12 April 2015 at 18:07:43 UTC, Dicebot wrote: On Saturday, 11 April 2015 at 23:04:26 UTC, Laeeth Isharc wrote: Thanks, v much Dicebot. (I think you have earned the right to own up to making simple errors without embarrassment in case you change your mind - it might help someone

Re: vibed - best approach to manage central state (cached records)

2015-04-12 Thread Laeeth Isharc via Digitalmars-d-learn
On Sunday, 12 April 2015 at 10:04:53 UTC, Marc Schütz wrote: On Saturday, 11 April 2015 at 19:24:22 UTC, Laeeth Isharc wrote: Hi. Two questions: 1. On startup I load various indexes from file storage into memory in the shared static this segment, and I would like to access these from

Probably you can run a D command line app on an android ARM device

2015-04-12 Thread Laeeth Isharc via Digitalmars-d
BTW - since we have linux on ARM, the following may be useful if you wish to run a D application on your Android mobile device. No ADB or root required. http://kevinboone.net/android_nonroot.html I guess you might be able to run a local web server to have a friendlier interface, although I

Re: IMAP library

2015-04-12 Thread Laeeth Isharc via Digitalmars-d-learn
On Sunday, 12 April 2015 at 17:27:32 UTC, Jens Bauer wrote: I won't say it's impossible, but it would be cumbersome processing email on an AVR. I do miss the days of having to work within very real hardware constraints to achieve something only just about achievable. But part of the joy

vibed - best approach to manage central state (cached records)

2015-04-11 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. Two questions: 1. On startup I load various indexes from file storage into memory in the shared static this segment, and I would like to access these from threads serving web requests. The data can be considered immutable once loaded. What is the best way to make this data accessible?

Re: vibed - best approach to manage central state (cached records)

2015-04-11 Thread Laeeth Isharc via Digitalmars-d-learn
On Sunday, 12 April 2015 at 02:54:27 UTC, Rikki Cattermole wrote: On 12/04/2015 7:24 a.m., Laeeth Isharc wrote: Hi. Two questions: 1. On startup I load various indexes from file storage into memory in the shared static this segment, and I would like to access these from threads serving web

Re: IMAP library

2015-04-11 Thread Laeeth Isharc via Digitalmars-d-learn
Need to have some way of manipulating email in D though. I agree. This would especially be cool, if you can do it from a small device like a microcontroller! Yes - nice to know it can do that also. For me I need to have a way of managing large amounts of email (I have about 2mm

Re: ARMv7 vs x86-64: Pathfinding benchmark of C++, D, Go, Nim, Ocaml, and more.

2015-04-11 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 9 April 2015 at 14:03:33 UTC, Dicebot wrote: On Thursday, 9 April 2015 at 04:30:18 UTC, Dicebot wrote: On Wednesday, 1 April 2015 at 20:59:07 UTC, Dicebot wrote: On Wednesday, 1 April 2015 at 20:40:02 UTC, Laeeth Isharc wrote: Experimenting on my oneplusone phone running arch

Re: Wiki page: Coming From C++

2015-04-11 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 11 April 2015 at 10:24:53 UTC, Jakob Ovrum wrote: I've done some preliminary work on a wiki page that attempts to convince C++ programmers who are on the fence about D, who need to know what D provides over C++11 and C++14.

Website sidebar tools

2015-04-10 Thread Laeeth Isharc via Digitalmars-d
Links to htod but not dstep. I have to read the whole docs for htod before seeing on last line it doesn't work for linux. The moment someone wants to start using D for serious work they need often to start converting headers. How about linking to dstep download page on the sidebar, and

Re: Vibe.Dav

2015-04-10 Thread Laeeth Isharc via Digitalmars-d-announce
On Friday, 10 April 2015 at 19:33:59 UTC, Martin Nowak wrote: On Tuesday, 7 April 2015 at 20:46:18 UTC, Bogdan wrote: Right now it has good file dav support and some basic support for cal dav Are you saying I can replace my Radicale server with it? https://github.com/Kozea/Radicale Funny.

IMAP library

2015-04-10 Thread Laeeth Isharc via Digitalmars-d-learn
Started working on a simple one. It's not exactly rocket science, but a bit fiddly. Need to have some way of manipulating email in D though. Is async important (so you can pipeline commands) and also multiple threads ? Or is a simple enough version useful as a start? If async (ie

Re: using vibe.d to parse json

2015-04-09 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 7 April 2015 at 22:15:13 UTC, Sönke Ludwig wrote: Am 26.03.2015 um 02:38 schrieb Laeeth Isharc: On Thursday, 26 March 2015 at 01:04:06 UTC, Jakob Ovrum wrote: On Thursday, 26 March 2015 at 00:41:50 UTC, Laeeth Isharc wrote: Yeah, it is not very intuitive. But it works. Thanks.

Re: Why I'm Excited about D

2015-04-07 Thread Laeeth Isharc via Digitalmars-d
even if, to be fair, the prototyping part is way much easier in python... But that may be due to the gab of experience). what - beyond a richer choice of libraries (and documentation, including examples) would make D comparable to python in terms of prototyping ease?

Ruby for D Programmers

2015-04-07 Thread Laeeth Isharc via Digitalmars-d
We are clearly blessed here with an abundance of expertise in Ruby in the forum. If anyone would like to share some of their knowledge, this page could use some filling out: http://wiki.dlang.org/Coming_From/Ruby Concrete examples and links to personal stories are helpful - as well as more

Re: vibed - blocking file I/O via library?

2015-04-07 Thread Laeeth Isharc via Digitalmars-d-learn
You should start a worker thread for this and then use message passing (vibe.core.concurrency) to wait for the results (or alternatively a TaskCondition). I was thinking about including a generic thread proxy in vibe.d that I've used to encapsulate these details when working with libgit in a

Re: json parsing performance

2015-04-06 Thread Laeeth Isharc via Digitalmars-d
On Monday, 6 April 2015 at 20:20:06 UTC, Kingsley wrote: I have read that std.json is pretty slow compared to other languages json parsers and I'm about to do a whole stack of json parsing and was wondering if anyone has got any benchmarks to indicate what slow means compared to other

vibed - blocking file I/O via library?

2015-04-06 Thread Laeeth Isharc via Digitalmars-d-learn
So a very basic question about using vibed for a REST service. I am serving data using REST to another application. For the time being it is internal so it is not a disaster if the fiber blocks. But I wanted to understand what I should be doing - the small server app calls library code to

Re: Yes, you can help std.allocator!

2015-04-05 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 5 April 2015 at 03:16:32 UTC, Andrei Alexandrescu wrote: Things are going well with std.allocator. I broke the code into a package with modules, which makes it quite nice to deal with. Also I just implemented a simple heterogeneous freelist allocator akin to the Kernighan-Ritchie

Re: USB Controller

2015-04-02 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 2 April 2015 at 17:38:17 UTC, Josh Phillips wrote: Hey Guys! I've started using Arduino, specifically with Processing. I'm using it essentially as a usb controller. Is there a good way to translate this to D? There doesn't seem to be any standard library for usb usage. Are

Re: Benchmark of D against other languages

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark. https://github.com/kostya/benchmarks Thanks for

Re: semi OT: Android - chrome native client in the browser

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
Thanks, I had not seen this, only the earlier hack where some dev got the alpha version of ARC working on desktop OS's on his own, which I thought about mentioning here but didn't. I figured it wasn't that important. Yes - my judgement (acknowledging I am stepping outside of my area of core

semi OT: Android - chrome native client in the browser

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
Hi. I am sure most of you saw this: http://arstechnica.com/gadgets/2015/04/googles-arc-opens-up-to-developers-runs-android-apps-on-most-desktop-oses/ Relates to the Google native client technology which caught attention a while back (not all of it favourable - 'I thought we put a stake

Re: semi OT: Android - chrome native client in the browser

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
http://9to5google.com/2015/04/01/how-to-use-arc-welder-to-run-a-plethora-of-android-apps-in-chrome/?utm_source=feedburnerutm_medium=feedutm_campaign=Feed%3A+9to5Google+%289to5+Google+-+Beyond+Good+and+Evil%29 Fair warning: While Instagram seems to be functional all around, a lot of apps are

Re: semi OT: Android - chrome native client in the browser

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
Might be an interesting little project to get D running on. Probably only worth a small toy project. In theory if an application works on android/x86, there should be nothing more to do to get it running in the browser (just a 1 minute conversion). Just need to get the android cross-compiler

Re: semi OT: Android - chrome native client in the browser

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 2 April 2015 at 13:24:34 UTC, Rikki Cattermole wrote: On 3/04/2015 2:17 a.m., Laeeth Isharc wrote: Might be an interesting little project to get D running on. Probably only worth a small toy project. In theory if an application works on android/x86, there should be nothing more

Re: Maxime's micro allocation benchmark much faster ?

2015-04-01 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 1 April 2015 at 10:35:05 UTC, John Colvin wrote: On Wednesday, 1 April 2015 at 10:09:12 UTC, FG wrote: On 2015-03-31 at 22:56, Laeeth Isharc wrote: 1mm allocations 2.066: 0.844s 2.067: 0.19s That is great news, thanks! OT: it's a nasty financier's habit to write 1M and 1MM

some memory allocation/GC benchmarks here - fwiw

2015-04-01 Thread Laeeth Isharc via Digitalmars-d-learn
(not translated into D yet) http://blog.mgm-tp.com/2013/12/benchmarking-g1-and-other-java-7-garbage-collectors/ http://www.mm-net.org.uk/resources/benchmarks.html http://www.ccs.neu.edu/home/will/GC/sourcecode.html http://yoda.arachsys.com/csharp/benchmark.html it's possible we already have

Re: ARMv7 vs x86-64: Pathfinding benchmark of C++, D, Go, Nim, Ocaml, and more.

2015-04-01 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 1 April 2015 at 19:39:07 UTC, Dicebot wrote: On Tuesday, 31 March 2015 at 21:49:00 UTC, Laeeth Isharc wrote: fwiw - very much appreciate your volunteer effort and that you probably have better things to do. but in case you weren't aware and did have time to look: I get the same

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-31 Thread Laeeth Isharc via Digitalmars-d-announce
On Tuesday, 31 March 2015 at 02:05:05 UTC, Andrei Alexandrescu wrote: On 3/30/15 12:29 AM, Jonathan M Davis via Digitalmars-d-announce wrote: On Saturday, March 28, 2015 14:19:46 Walter Bright via Digitalmars-d-announce wrote: Thank you. I need to learn std.algorithm better. Don't we all.

Re: Filling out the wiki - D as a second language

2015-03-31 Thread Laeeth Isharc via Digitalmars-d
Personnaly for the Delphi/Pascal section i haven't followed any previous model (except for the `pascal way` or the D way`) but i've rather choosen to focus on ambiguities and similarities... BTW - respect for doing this. Will try to learn from what you have done. When these pages are

Re: They wrote the fastest parallelized BAM parser in D

2015-03-31 Thread Laeeth Isharc via Digitalmars-d
As Andrew Brown pointed out, visualization is not behind Pythons success. Its success lies in the fact that it's a language you can hack away in easily. Sounds right. I am not in the camp that says it is a killer for D. It would just be nice to have both at least a passable solution for

Maxime's micro allocation benchmark much faster ?

2015-03-31 Thread Laeeth Isharc via Digitalmars-d-learn
I was curious to see if new DMD had changed speed on Maxime Chevalier-Boisvert's allocation benchmark here: http://pointersgonewild.com/2014/10/26/circumventing-the-d-garbage-collector/ I haven't had time to look at the Phobos test suite to know if this was one of those that were included,

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-31 Thread Laeeth Isharc via Digitalmars-d-announce
Then we need more examples and tutorials. -- Andrei how are these to appear? I've offered a number of times to write a slides-like tutorial if anyone wants to do the slides logic. Nobody came about. Probably nobody will, so I'll have to do it myself. Sorry for my denseness, but what is

from ruby to D

2015-03-31 Thread Laeeth Isharc via Digitalmars-d
I could add something for Ruby but I'm not really sure what to add. The the content for the existing languages is quite different compared with each other. Often one doesn't know what one wants to write till one starts. I guess the focus will be different coming from Ruby than coming from

Re: Maxime's micro allocation benchmark much faster ?

2015-03-31 Thread Laeeth Isharc via Digitalmars-d-learn
oops - scratch that. may have made a mistake with versions and be comparing 2.067 with some unstable dev version. On Tuesday, 31 March 2015 at 11:46:41 UTC, Laeeth Isharc wrote: I was curious to see if new DMD had changed speed on Maxime Chevalier-Boisvert's allocation benchmark here:

Re: Maxime's micro allocation benchmark much faster ?

2015-03-31 Thread Laeeth Isharc via Digitalmars-d-learn
Trying on a different beefier machine with 2.066 and 2.067 release versions installed: 1mm allocations: 2.066: 0.844s 2.067: 0.19s 10mm allocations 2.066: 1m 17.2 s 2.067: 0m 1.15s So numbers were ballpark right before, and allocation on this micro-benchmark much faster.

Re: ARMv7 vs x86-64: Pathfinding benchmark of C++, D, Go, Nim, Ocaml, and more.

2015-03-31 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 23 December 2014 at 07:11:02 UTC, Dicebot wrote: On Monday, 22 December 2014 at 11:45:55 UTC, logicchains wrote: I installed the new Arch Linux LDC package but it still fails with the same error: /usr/lib/libldruntime.so: undefined reference to `__mulodi4' I did get GDC to work

Re: Maxime's micro allocation benchmark much faster ?

2015-03-31 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 31 March 2015 at 22:00:39 UTC, weaselcat wrote: On Tuesday, 31 March 2015 at 20:56:09 UTC, Laeeth Isharc wrote: Trying on a different beefier machine with 2.066 and 2.067 release versions installed: 1mm allocations: 2.066: 0.844s 2.067: 0.19s 10mm allocations 2.066: 1m 17.2 s

Re: Filling out the wiki - D as a second language

2015-03-31 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 31 March 2015 at 22:25:29 UTC, rumbu wrote: On Sunday, 29 March 2015 at 23:21:20 UTC, Laeeth Isharc wrote: http://wiki.dlang.org/Coming_From These sections are empty/close to empty: Ruby / Java / Eiffel / C# / and Basic I made a small start on the Python section. It needs more

Re: The D Language: A sweet-spot between Python and C

2015-03-30 Thread Laeeth Isharc via Digitalmars-d
How about we (ie you, the language expert!) jot down a few more points to later turn into a short but useful article on how to deal with the GC in practical situations? I'm by far not a language expert, especially with manual memory management. I can only discuss what I've dealt with my

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 30 March 2015 at 07:29:56 UTC, Jonathan M Davis wrote: On Saturday, March 28, 2015 14:19:46 Walter Bright via Digitalmars-d-announce wrote: Thank you. I need to learn std.algorithm better. Don't we all. Part of the problem with std.algorithm is its power. It's frequently the case

Re: They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d
On Monday, 30 March 2015 at 06:50:19 UTC, george wrote: http://bioinformatics.oxfordjournals.org/content/early/2015/02/18/bioinformatics.btv098.full.pdf+html and a feature

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: I'm trying to set environment variables that will be visible when my D program exits. It is possible in a windows batch file using the set command (like set VAR=VALUE ) However, running this in D using: import std.process; import

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 30 March 2015 at 13:29:06 UTC, wobbles wrote: On Monday, 30 March 2015 at 12:54:28 UTC, Adam D. Ruppe wrote: On Monday, 30 March 2015 at 12:28:19 UTC, wobbles wrote: Any solutions that people know of? You can't from an exe, it is a limitation of the operating system (same on

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 30 March 2015 at 08:53:15 UTC, Ola Fosheim Grøstad wrote: same theme. I pick them based on what they+ecosystem is good at, not the language by itself. So basically, you have to be best at one particular application area to do well. Go is aiming to have a good runtime for building

Re: Windows - std.process - Setting env variables from D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d-learn
You tried setx, and it didn't work ? Or you don't want to set permanent environmental variables Yep, correct. Don't want them to be permanent. The systems have to be clean for other tests at all times, so they need to be on a shell by shell basis sadly. Thanks - was curious to know.

Re: They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d
My prejudice, based on training people in Python and C++ over the last few years, is that Python and C++ have a very strong position in the bioinformatics community, with the use of IPython (now becoming Jupyter) increasing and solidifying the Python position. It's just possible there is a

Re: They wrote the fastest parallelized BAM parser in D

2015-03-30 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 31 March 2015 at 02:31:58 UTC, Craig Dillabaugh wrote: On Monday, 30 March 2015 at 22:55:37 UTC, lobo wrote: On Monday, 30 March 2015 at 20:25:33 UTC, CraigDillabaugh wrote: On Monday, 30 March 2015 at 20:09:35 UTC, Laeeth Isharc wrote: clip You're right about the lack of

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 26 March 2015 at 08:44:20 UTC, Gary Willoughby wrote: I wrote the article in a rush last night (girlfriend calling me to bed) and as a result it has a few spelling/grammar errors which I've hopefully corrected. The article is a total rant about Go after using it over the last

Re: The D Language: A sweet-spot between Python and C

2015-03-29 Thread Laeeth Isharc via Digitalmars-d
On Monday, 30 March 2015 at 05:04:57 UTC, Rikki Cattermole wrote: On 30/03/2015 5:48 p.m., weaselcat wrote: On Monday, 30 March 2015 at 04:35:44 UTC, Rikki Cattermole wrote: On 30/03/2015 5:25 p.m., Laeeth Isharc wrote: On Monday, 30 March 2015 at 04:16:38 UTC, weaselcat wrote: On Monday, 30

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 30 March 2015 at 03:47:45 UTC, Joakim wrote: On Monday, 30 March 2015 at 00:20:11 UTC, Laeeth Isharc wrote: https://www.quora.com/Why-didnt-D-language-become-mainstream-comparing-to-Golang fwiw Nice, well-written answer, enjoyed reading it. Thank you.

Re: The D Language: A sweet-spot between Python and C

2015-03-29 Thread Laeeth Isharc via Digitalmars-d
On Monday, 30 March 2015 at 04:16:38 UTC, weaselcat wrote: On Monday, 30 March 2015 at 00:57:06 UTC, Walter Bright wrote: http://blog.experimentalworks.net/2015/01/the-d-language-a-sweet-spot-between-python-and-c/ Reddit:

Re: OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-learn
The whole art/science vein of these Knuth quotes seems like a lot of BS, trying to situate computer programming in the long-standing and overblown science/humanities divide. I should like to see an argument rather than mere assertion. Steve Jobs is not an authority on this subject, but I

Re: OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 28 March 2015 at 09:04:51 UTC, Messenger wrote: On Saturday, 28 March 2015 at 01:09:44 UTC, Laeeth Isharc wrote: On Friday, 27 March 2015 at 11:33:39 UTC, Kagamin wrote: Hmm... science exists only as long as we don't understand something, then it disappears and only knowledge

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-announce
On Sunday, 29 March 2015 at 02:15:38 UTC, cym13 wrote: Urr As an active Python developer, I find that one pretty harsh. It's not that we need to enforce good style, it's that we take good style as granted and choose to lighten it consequently. On the contrary I think that D has

Re: OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-learn
On Sunday, 29 March 2015 at 18:51:19 UTC, Joakim wrote: On Sunday, 29 March 2015 at 18:05:28 UTC, Laeeth Isharc wrote: I appreciate that many of us have better things to do. But I had been thinking about why I find D appealing, and how I would get this across to future partners, and had also

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-announce
On Sunday, 29 March 2015 at 15:34:35 UTC, Ola Fosheim Grøstad wrote: Actually, there is quite a large overlap if you look beyond the syntax. Dart is completely unexciting, but I also find it very productive when used with the IDE. Glad to hear this - I haven't yet got very far with Dart, but

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-announce
On Sunday, 29 March 2015 at 19:44:01 UTC, cym13 wrote: On Sunday, 29 March 2015 at 19:09:52 UTC, Laeeth Isharc wrote: As an active Python developer, what would you add to or change about the following: http://bitbashing.io/2015/01/26/d-is-like-native-python.html I like this article very

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-29 Thread Laeeth Isharc via Digitalmars-d-announce
should we add a link to the wiki and ask author if we could mirror there ? This section on wiki looks like it could with a bit of fleshing out! http://wiki.dlang.org/Coming_From/Python I just seen what you did in the wiki, that's great! I don't have much time to invest tonight but I'll

Filling out the wiki - D as a second language

2015-03-29 Thread Laeeth Isharc via Digitalmars-d
http://wiki.dlang.org/Coming_From These sections are empty/close to empty: Ruby / Java / Eiffel / C# / and Basic I made a small start on the Python section. It needs more concrete side-by-side examples of translating Python idioms into D, but that is all I can do for now.

OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-27 Thread Laeeth Isharc via Digitalmars-d-learn
An old essay that may yet be relevant today at a time when intellectual fashion has continued in the direction he was moved to address in his speech. there is a way to make a big improvement: it is still a pleasure to do routine jobs if we have beautiful things to work with. For example, a

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Laeeth Isharc via Digitalmars-d-announce
There are some very interesting psychological dynamics in the reaction to this kind of piece. For me it was key that although it was clearly written in a humorous tone, and hurriedly, he seemed to speak from the heart - it is refreshing to see such work even when one doesn't agree with it.

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Laeeth Isharc via Digitalmars-d-announce
On Friday, 27 March 2015 at 06:49:05 UTC, Ola Fosheim Grøstad wrote: On Friday, 27 March 2015 at 04:05:30 UTC, Laeeth Isharc wrote: Programming is - for now - still a human activity, and what is important in human activities may not always be measured, and what may be easily measured is not

Re: OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-27 Thread Laeeth Isharc via Digitalmars-d-learn
On Friday, 27 March 2015 at 11:33:39 UTC, Kagamin wrote: Hmm... science exists only as long as we don't understand something, then it disappears and only knowledge remains. Looks like he talks about engineering, but calls it science. One dismisses Knuth discussing the topic for which he is

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-26 Thread Laeeth Isharc via Digitalmars-d-announce
That kind of articles are bad for the image of the D community Nick S: No. Just...no. I'm honestly *really* tired of general society's (seemingly?) increasing intolerance FOR intolerance. Some things ARE bad. Some ideas are dumb ideas (ie without merit). Some features are bad features.

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-26 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 26 March 2015 at 19:37:30 UTC, Ola Fosheim Grøstad wrote: On Thursday, 26 March 2015 at 19:16:54 UTC, bachmeier wrote: You're making a big assumption about which programmers and projects count and which don't. I wonder if outside of Google It doesn't matter what the programmers

Re: A reason to choose D over Go

2015-03-25 Thread Laeeth Isharc via Digitalmars-d
I earn my pay with Java development. In my spare time I learn some Scala hoping there might be some work for me with Scala in the future. Then I need to become familiar with all kinds of new frameworks, tools, libraries and systems that continue to pop up every year in the JVM eco system.

Re: A reason to choose D over Go

2015-03-25 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 25 March 2015 at 17:21:43 UTC, Laeeth Isharc wrote: I earn my pay with Java development. In my spare time I learn some Scala hoping there might be some work for me with Scala in the future. Then I need to become familiar with all kinds of new frameworks, tools, libraries and

Re: using vibe.d to parse json

2015-03-25 Thread Laeeth Isharc via Digitalmars-d-learn
Yeah, it is not very intuitive. But it works. Thanks. Next question - how can I correctly deal with inconsiderately chosen JSON field names like 'private' (which conflict in a struct declaration with D language keywords). A hack is to do a search and replace on the JSON before presenting

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-25 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 26 March 2015 at 00:19:44 UTC, Jakob Ovrum wrote: As I know Gary is sometimes (often?) on these forums I'll post some critique here. Misrepresenting Go in a comparison with D doesn't reflect well on the D community, so please have a look at the following issues: You describe

Re: using vibe.d to parse json

2015-03-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 26 March 2015 at 01:04:06 UTC, Jakob Ovrum wrote: On Thursday, 26 March 2015 at 00:41:50 UTC, Laeeth Isharc wrote: Yeah, it is not very intuitive. But it works. Thanks. Next question - how can I correctly deal with inconsiderately chosen JSON field names like 'private' (which

using vibe.d to parse json

2015-03-23 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. struct RawGoogleResults { string version_; string status; string sig; string[string][][string] table; } enum json = {version:0.6,status:ok,sig:717451517,table:{cols:[{id:date,label:Date,type:date,pattern:},{id:query0,label:euro

Re: using vibe.d to parse json

2015-03-23 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 24 March 2015 at 04:53:39 UTC, Laeeth Isharc wrote: Hi. struct RawGoogleResults { string version_; string status; string sig; string[string][][string] table; } enum json =

<    3   4   5   6   7   8   9   10   11   >