Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-05 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 5 December 2019 at 16:14:01 UTC, Joseph Rushton Wakeling wrote: And -- mostly out of curiosity -- what are the major differences compared to other D XML libraries or my beloved dom.d

Re: Hunt XML released 1.0.0 rc! Support for parsing, encoding, serialize, unserialize, object binding ..

2019-12-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 6 December 2019 at 08:58:38 UTC, Joseph Rushton Wakeling wrote: as they were all related to HTML parsing Indeed, it is biased toward that use case, but it actually does quite a few extra things too that I don't market as much (and takes some extra code to fully enable - like the

My Android project nearing beta

2019-12-16 Thread Adam D. Ruppe via Digitalmars-d-announce
I'm gonna drop the link here without further comment: https://github.com/adamdruppe/d_android hopefully I've written enough in the repo so anyone who wants to play with it can... and if not, I need to fix the docs :) let me know if you find any success or failure playing with it.

Re: D at 20: Hits and Misses, and what I learned along the way Oct 19

2019-10-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 17 October 2019 at 20:56:54 UTC, Dennis wrote: I was surprised by him mentioning that as well. I'm glad it stayed too, since I actually use them. Indeed, me too. And they are definitely still there and I'd be quite sad if they disappeared.

Re: LDC 1.18.0

2019-10-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 25 October 2019 at 21:53:05 UTC, Laeeth Isharc wrote: We use iOS. If somebody were willing to do the work of bringing LDC up to date and maintaining it maybe we could support the work, or at least contribute to it. I have a bunch of patches I was working on a few weekends ago.

Re: wiki: D on AVR

2019-11-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 27 November 2019 at 14:35:53 UTC, Ernesto Castellotti wrote: I wrote a page in the wiki for basic information on how to use D on AVR 8-bit, using LLVM and LDC. Nice! We should compile this option into upstream ldc so the binaries just work too for maximum convenience.

interfaces and contracts - new pattern

2019-12-02 Thread Adam D. Ruppe via Digitalmars-d-announce
In short use `in(false)` when you `override` a function to inherit the contract, unless you explicitly want to expand the input - which you shouldn't do when implementing an interface! Wrote about it in more details here: http://dpldocs.info/this-week-in-d/Blog.Posted_2019_12_02.html i think

Re: dud: A dub replacement

2019-11-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 28 November 2019 at 13:10:44 UTC, Atila Neves wrote: This is the done already by reggae. Unfortunately, since every D module is effectively a header, the number of files that need to be recompiled is usually large, despite the fact that for most changes the recompilation isn't

Re: dud: A dub replacement

2019-11-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 25 November 2019 at 23:46:31 UTC, H. S. Teoh wrote: Oooh very nice!! That's wonderful to hear. So you're saying LDC out-of-the-box can cross-compile from Linux to Windows directly? How to do this? I'm *very* interested! ldc2 -mtriple=x86_64-pc-windows-msvc though you will

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 6 October 2019 at 07:18:37 UTC, Joseph Rushton Wakeling wrote: Speaking of performance, I was intrigued by the Reddit response noting that Rust can go one better by eliminating the error path at compile time: D can eliminate error paths at compile time too, e.g. static assert -

Re: My Android project nearing beta

2019-12-19 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 19 December 2019 at 11:48:21 UTC, Andre Pany wrote: I wonder whether D could be enhanced in future to make the CRTP idiom a little bit nicer: It is also possible to do a mixin for most the same result. But yeah if the language were to change there's some fun things. The two I

Re: My Android project nearing beta

2019-12-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 18 December 2019 at 12:29:17 UTC, kinke wrote: The android-ldc wrapper is already ~160 lines, and AFAICT, it's a rather cumbersome alternative to simply setting up ldc2.conf appropriately. tbh I didn't even know there was a such thing as ldc2.conf. This indeed might be better

Re: My Android project nearing beta

2019-12-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 18 December 2019 at 15:53:14 UTC, kinke wrote: Heh, it looks like the Wiki page Yeah, I found the wiki pages just generally didn't actually work when I tried them; prolly outdated. But your example there is simpler than I thought it would be. I'm gonna try using this

Re: My Android project nearing beta

2019-12-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 17 December 2019 at 18:29:32 UTC, H. S. Teoh wrote: Runtime initialization is now working, and you can create a Java VM I now have this tested and working on Windows and Linux. - Method overloading; This is fixed in the newest commit too. ```D import arsd.jni; final class

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 24 February 2020 at 19:35:16 UTC, Walter Bright wrote: Having the compiler lower string interpolation to some hidden template is - AST macros. We're not doing AST macros. This is untrue. Hidden user-defined semantics are not for D. We are NOT calling for this. What, exactly,

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 24 February 2020 at 20:55:16 UTC, Walter Bright wrote: and proposed a lowering to: > i"your hex data is ${%02x}someByte" > > (_d_interpolated_string!("your hex data is ", > _d_interpolated_format_spec("%02x"))(), someByte) Do you understand that `_d_interpolated_string` and

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 24 February 2020 at 21:41:22 UTC, aliak wrote: Does that mean no betterC support if it's in druntime? It would actually still work there because there is no actual code to link, just a compile-time definition to look up. For example, the name `string` itself is a druntime

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 26 February 2020 at 12:18:07 UTC, FeepingCreature wrote: But to be thrice fair, Adam/Steven's proposal would work with the minor extension `f(i"hello $a".format)`/`f(i"hello $a".to!string)`, in keeping with the trend of GC use requiring explicit opt-in. Actually, thanks to the

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 26 February 2020 at 09:57:58 UTC, Walter Bright wrote: Requiring the compiler to use a specific template that is not specified by the user has no place in a language specification (and therefore no place in a proposed language change). I think more naturally in D code rather

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-28 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 29 February 2020 at 00:57:54 UTC, aliak wrote: Also another note, this tuple expansion should really not be called string interpolation, since it does not result in a string :/ It's more string expansion really. Yeah, me and Steven agreed on this too in the other thread, and I

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 27 February 2020 at 00:21:36 UTC, Walter Bright wrote: So would DIP1027. We know. It is *almost* there, the format string idea is a good one. But DIP1027 had a fatal flaw: it made type safety impossible. One small change - wrapping the format string in a new type while keeping

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 27 February 2020 at 09:34:23 UTC, Walter Bright wrote: On 2/26/2020 7:41 AM, Arine wrote: Yah, what's unwanted about that? [snip] You're arguing against a strawman. The other poster's comment was showing a likely problem with the (rejected) dip 1027, that our new proposal

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 27 February 2020 at 14:32:29 UTC, Petar Kirov [ZombineDev] wrote: 2. Have the new type implicitly convert to printf-style args. I think this is what Adam is proposing. While nice to have, I don't think it's necessary. You can read my document for more detail

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 27 February 2020 at 14:47:55 UTC, SealabJaster wrote: At that point, it begs the question of why even bother having string interpolation. I encourage you to read my document too: https://github.com/dlang/DIPs/pull/186 It addresses all these concerns. Walter's proposal is dead.

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 25 February 2020 at 13:39:40 UTC, Aliak wrote: I should’ve been more specific  I was wondering if the same could be achieved without a introducing a new aggregate type! Well, compiler magic, possibly with more @attributes. But that gets far messier than a simple struct, so we

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 25 February 2020 at 09:36:25 UTC, aliak wrote: This may have already been answered in the other threads, but I was just wondering if anyone managed to propose a way to avoid this scenario with DIP1027? Yes, that is the key impetus of our amendment, which I also wrote up on a gist

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 27 February 2020 at 17:41:12 UTC, Petar Kirov [ZombineDev] wrote: auto s = new_type!( "hi ", spec(null), ", you are visitor ", spec("%2d") )(name, count); I.e. the referenced arguments are passed to the constructor of new_type. Right, that actually is what my old

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 26 February 2020 at 15:41:48 UTC, Arine wrote: Yah, what's unwanted about that? To follow up on this, I expect a reply will be "the user ought to know how the feature works". This isn't a realistic expectation. This is why I put in my little narrative in the new DIP, though

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 24 February 2020 at 16:22:22 UTC, Atila Neves wrote: Thanks for the detailed write-up, there are a lot of good things here. We talked about this in the other thread, too. I doubt the one template here will be a big deal. My experience is templates get bad when we use them in loops

Re: D For Data Science: Calling R from D

2020-01-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 27 January 2020 at 14:16:47 UTC, Mike Parker wrote: https://dlang.org/blog/2020/01/27/d-for-data-science-calling-r-from-d/ "D [...] interoperability with C (in many cases as simple as adding an #include directive to import a C header file), " like it is simple... but it isn't a

Re: German D tutorial: HTML5 Anwendung mit GTK3 schreiben

2020-02-14 Thread Adam D. Ruppe via Digitalmars-d-announce
is this part of what you're doing with cgi.d this week?!

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 23 February 2020 at 18:57:55 UTC, Adam D. Ruppe wrote: As the DIP author, Walter also rejected the suggestion to go with an implementation that resolves to a library template. He sees that as equivalent to AST macros, a feature which he has previously rejected. How is `foo!str,

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 23 February 2020 at 16:22:46 UTC, Mike Parker wrote: The decision was primarily influenced by the lack of consensus over the implementation and the syntax demonstrated in the two review threads. That's not true, we had consensus minus one - the community rallied around just one

Re: My Android project nearing beta

2020-01-08 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 8 January 2020 at 12:10:15 UTC, Chris wrote: 1. How does it fare performance wise with JNI? In the Android docs they advise you not to use the JNI bridge very often as it very costly. I don't know. I don't even have a plan to actually test it at this point. Worth remembering

Re: My Android project nearing beta

2020-01-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 8 January 2020 at 14:23:49 UTC, Chris wrote: Btw, how will D for Android handle multi-threading / coroutines? So again I haven't actually tested, but based on the implementation right now you can have D threads and Java threads, but they shouldn't mix. I think I can fix that

Re: My Android project nearing beta

2020-01-02 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 2 January 2020 at 20:26:05 UTC, visitor wrote: i see you updated everything ! wow !! :)) yea, the setup program should now download the runtime binaries for you and set up ldc2.conf fairly automatically (I haven't tested on Windows yet though and of course it will static assert

Re: My Android project nearing beta

2019-12-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 18 December 2019 at 15:53:14 UTC, kinke wrote: Heh, it looks like the Wiki page (https://wiki.dlang.org/Cross-compiling_with_LDC - I've added an exemplary Android section there as well, using `-gcc` to specify the NDK's preconfigured clang) needs some overhaul then if not even

Re: My Android project nearing beta

2020-01-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 1 January 2020 at 12:44:30 UTC, visitor wrote: i managed to run the test app on my phone via Android Studio :)) Nice! I just realized that I forgot to commit some of the files so cool that you got it working despite me :)

Re: My Android project nearing beta

2020-01-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 1 January 2020 at 17:12:01 UTC, bachmeier wrote: A question that comes to mind with respect to your JNI work: Is this specific to Android, or could we use it, for instance, as a way to call Java functions from R, where we use D as a bridge to simplify things? That should be

Re: My Android project nearing beta

2020-01-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 1 January 2020 at 17:16:19 UTC, visitor wrote: so to reply : i fortunately had a bit of (very recent) understanding about D/Android setup and stumbling upon the link crash without main() i figured that the main() hack was part of the missing files ... i went, like that, by guess

Re: My Android project nearing beta

2020-01-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 1 January 2020 at 17:35:28 UTC, Adam D. Ruppe wrote: bindings generator oh one thing I forgot to mention on this is that right now it generates interfaces, but doesn't list them; each class is just class Foo : IJavaObject {} instead of class foo : ActualParent, IWhateverElse

Re: My Android project nearing beta

2020-01-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 5 January 2020 at 03:56:37 UTC, visitor wrote: Not a single line of java! so i got kinda excited for creating a class 100% in D as well, but. https://developer.android.com/training/articles/perf-jni.html "DefineClass is not implemented. Android does not use Java bytecodes

Re: My Android project nearing beta

2020-01-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 6 January 2020 at 17:18:46 UTC, visitor wrote: hum ... indeed most of the native samples in android are using java helper classes Yeah, the NativeActivity is I think the only one that doesn't (and that's just because Google provides a pre-built helper java class). But I'm

Re: My Android project nearing beta

2020-01-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 6 January 2020 at 17:40:47 UTC, Laeeth Isharc wrote: I haven't tried, but: https://github.com/linkedin/dexmaker Yes, indeed, that is a possibility. I might work on this... honestly probably after several months given the length of my to do list right now.

Re: NanoSVG port

2020-04-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 10 April 2020 at 17:18:05 UTC, Robert M. Münch wrote: Repro [2] is gone... Does anyone has an idea where the code could be accessed? I also maintain a copy of it: https://github.com/adamdruppe/arsd/blob/master/svg.d minimal dox http://dpldocs.info/experimental-docs/arsd.svg.html

Re: NanoSVG port

2020-04-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 10 April 2020 at 17:54:16 UTC, Robert M. Münch wrote: I'am/was confused because I don't understand how "NanoVega.SVG" fits into the picture. Is it a 2nd SVG parser? Is it using svg.d? Why have two? NanoVega.SVG IS svg.d. They're different names for the same thing. My copy renames

my blog on recent code and dmd performance tips

2020-05-12 Thread Adam D. Ruppe via Digitalmars-d-announce
I try to write something on this once a week, though longer posts like this tend to be less common (and some weeks, like last week, I post nothing at all...), but I rarely post here since I don't want to be super spammy. However a reminder here my D blog is still active and if you use my

Re: Announcing audio-formats v1.0.0

2020-03-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 18 March 2020 at 21:24:55 UTC, ketmar wrote: tbh, i didn't really tested stb much (if at all). I stole your code in my repo and use it with simpleaudio... i haven't used it super extensively (nor is it in my dub file btw) but what I have done with it works beautifully fine.

Re: DConf 2020 Canceled

2020-03-07 Thread Adam D. Ruppe via Digitalmars-d-announce
Let's do a little online thing instead! We could do a chat room, livestream, blog, you know stuff like that.

Re: diet-ng Live mode and announcing dietpc

2020-03-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 24 March 2020 at 23:23:53 UTC, norm wrote: When I try to access the documentation for dietpc I get the error below. There is no API documentation, but the github readme has some: https://github.com/schveiguy/dietpc

Re: diet-ng Live mode and announcing dietpc

2020-03-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 24 March 2020 at 23:33:21 UTC, Steven Schveighoffer wrote: Hm... I didn't create any DDOC documentation, all the docs are in the readme. It's an application. yeah. you might just change teh documentation thing in the code.dlang.org "manage this package" screen to link back to your

Re: DIP1028 - Rationale for accepting as is

2020-05-22 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 22 May 2020 at 01:22:19 UTC, Walter Bright wrote: 3. Wrap the call to massage_data() with: () @trusted { massage_data(parameters); } (); The correct solution is to encapsulate the C functions as-needed with a higher level API - and this is somewhat commonly done already and -

Re: DIP1028 - Rationale for accepting as is

2020-05-22 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 22 May 2020 at 13:57:27 UTC, Mike Parker wrote: The DIP review process is not intended for community approval or rejection of DIPs. It's not a democratic voting process. The community needs to unite and fix this. It is an ineffectual process that leads to worse results for the

Re: DIP1028 - Rationale for accepting as is

2020-05-24 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 24 May 2020 at 08:55:32 UTC, Walter Bright wrote: I can't see a practical difference between: @safe extern (C) void whatevs(parameters); @trusted extern (C) void whatevs(parameters); Both require that whatevs() provide a safe interface. Remember that D has reflection. If we ever

Re: DIP 1028--Make @safe the Default--Formal Assessment

2020-05-21 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 21 May 2020 at 16:14:02 UTC, Seb wrote: Why we can't we have a technical board where the community can vote in experts and potentially companies could even buy a seat for $$$ which would mean a lot more for them than the current very vague sponsorship options. ditto, I think we

Re: D mentionned in the ARTIBA webzine for an article on Silq

2020-09-04 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 2 September 2020 at 18:42:25 UTC, starcanopy wrote: But if you do create an ad-hoc service, I'd very much use it if you didn't necessitate registration with an email. So I think some kind of user account is useful and I figure I'll require them... but it will be just a random

Re: D mentionned in the ARTIBA webzine for an article on Silq

2020-09-04 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 4 September 2020 at 17:47:39 UTC, James Lu wrote: And there's a Facebook? Seriously? A random user set it up and tries to push it but there's not much activity. And Slack? That's more used by like dconf coordinators. The places new people come on for chat is just the irc and

Re: DConf Online 2020 Submission Deadline Extended

2020-09-05 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 31 August 2020 at 08:36:09 UTC, Mike Parker wrote: So send me your <= 5-minute videos describing your talks, folks! There's basically zero chance of me doing this part specifically. But on the other hand, between my self-loathing and procrastination, I probably won't record a talk

Re: D mentionned in the ARTIBA webzine for an article on Silq

2020-09-02 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 2 September 2020 at 07:38:01 UTC, JN wrote: One thing I always feel this forum is missing is a section for work in progress projects, even if they never end up anywhere. Yeah, I often want a place to just gab. I kinda do in my blog, but that's more often something that is more

Re: D mentionned in the ARTIBA webzine for an article on Silq

2020-09-07 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 2 September 2020 at 13:31:25 UTC, Adam D. Ruppe wrote: I could write that in a few hours. I went ahead and did it: https://dwidder.arsdnet.net/ might move later but eh the basics work i think.

Re: D mentionned in the ARTIBA webzine for an article on Silq

2020-09-08 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 8 September 2020 at 08:33:35 UTC, aberba wrote: Now I really want to sew your D web workflow and stack in use at DConf Online. Don't say no!! Yeah, I did tell the dconf people I'd do a livestream thing if they need me, but I was thinking about making an Asteroids clone or

Re: LDC 1.24.0-beta1

2020-10-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 18 October 2020 at 22:40:53 UTC, aberba wrote: Not sure what to do with the .7z file without manual tinkering. You can simply unzip it and use it directly. That's the best way to use most D compilers actually, then any versions can live side by side without affecting each other.

Re: LDC 1.24.0-beta1

2020-10-19 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 19 October 2020 at 14:20:02 UTC, Paul Backus wrote: Are we looking at the same instructions? ah i mixed it up with https://dlang.org/dmd-linux.html#installation in my brain without clicking the link :( sorry my bad those are ok.

Re: LDC 1.24.0-beta1

2020-10-19 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 19 October 2020 at 13:43:14 UTC, Bastiaan Veelo wrote: I'm not suggesting that this fills the need of newbies, but there is this: https://dlang.org/install.html. Nobody should ever follow those terrible instructions, they leave you so fragile in the event of future updates, takes

Re: HTTP frameworks benchmark focused on D libraries

2020-09-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 27 September 2020 at 10:08:24 UTC, tchaloupka wrote: * new RAW tests in C to utilize epoll and io_uring (using liburing) event loops - so we have some ground base we can compare against I fixed some buffering issues in cgi.d and, if you have the right concurrency level that

Re: beerconf September!

2020-09-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 26 September 2020 at 18:44:06 UTC, Andrei Alexandrescu wrote: What time is it and what's the chat link? A bunch of us coming and going at all hours, decent group on now. https://meet.jit.si/Dlang2020SeptemberBeerConf password: -preview=in

Re: HTTP frameworks benchmark focused on D libraries

2020-09-27 Thread Adam D. Ruppe via Digitalmars-d-announce
I fixed my event loop last night so I'll prolly release that at some point after a lil more testing, it fixes my keep-alive numbers... but harms the others so I wanna see if I can maintain those too.

Re: DIP 1028 "Make @safe the Default" is dead

2020-05-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 29 May 2020 at 21:18:13 UTC, Walter Bright wrote: The idea is the simple, general rule that: There's already exceptions to that. public public void foo() {} is an error, whereas public: public void foo() {} is not. Having a simple, general rule with maybe a less favorable

Re: DIP 1028 "Make @safe the Default" is dead

2020-05-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 30 May 2020 at 20:14:04 UTC, Steven Schveighoffer wrote: On 5/30/20 4:02 PM, Andrei Alexandrescu wrote: module foo; @safe: Again, not the same. Read the full thread that you quoted above. And even aside from inference, it doesn't actually work for most the attributes. @safe

Re: DIP1028 - Rationale for accepting as is

2020-05-22 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 22 May 2020 at 16:39:42 UTC, jmh530 wrote: Fortunately, the above point can be more easily fixed by making `free` @system With the o/b system `free` might actually work out OK

Re: DIP1028 - Rationale for accepting as is

2020-05-22 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 22 May 2020 at 17:07:37 UTC, Atila Neves wrote: And so I was convinced that everything being @safe is actually ok, especially because in real life, most C/C++ APIs aren't going to secretly corrupt your code. I wrote up a thing about this earlier then deleted it because I didn't

Re: HTTP frameworks benchmark focused on D libraries

2020-09-20 Thread Adam D. Ruppe via Digitalmars-d-announce
With my lib, the -version=embedded_httpd_threads build should give more consistent results in tests like this. The process pool it uses by default in a dub build is more crash resilient, but does have a habit of dropping excessive concurrent connections. This forces them to retry which

tetris in D in webassembly

2020-08-10 Thread Adam D. Ruppe via Digitalmars-d-announce
http://webassembly.arsdnet.net/ tetris.d source here: http://dpldocs.info/this-week-in-d/Blog.Posted_2020_08_03.html#tetris-in-d web assembly source and explanation here: http://dpldocs.info/this-week-in-d/Blog.Posted_2020_08_10.html Short version: BARE MINIMUM druntime port to webassembly

Re: tetris in D in webassembly

2020-08-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 10 August 2020 at 16:24:02 UTC, Steven Schveighoffer wrote: Bug report: the score doesn't increase for me when I complete a line ;) The reason for that is actually explained in the article; has to do with webassembly not blocking on eventLoop and the program was written with the

Re: tetris in D in webassembly

2020-08-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 10 August 2020 at 21:30:53 UTC, matheus wrote: By the way you should post on reddit (/r/programming) if you haven't already. I don't really do reddit. I sometimes troll in the comments but it isn't a site I care for. That said if you or someone else wanted to and post the link,

Re: tetris in D in webassembly

2020-08-11 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 11 August 2020 at 13:22:02 UTC, jmh530 wrote: The blog post says it is space bar. Tripped me up too. Yeah, I learned yesterday that there's a whole other PC tetris world I had no clue about. I only ever played the Nintendo/ELORG version on the NES. On that, dpad is left, down,

Re: tetris in D in webassembly

2020-08-11 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 11 August 2020 at 04:10:10 UTC, starcanopy wrote: This is really cool. This idea, especially, titillates me: That's actually easy enough to do I just went ahead and made it. so behold: http://webassembly.arsdnet.net/ and the source is pushed up to github, with just a little bit

Re: Post: Why no one is using your D library

2020-07-02 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 2 July 2020 at 17:19:31 UTC, claptrap wrote: and adrdoc? i think and they put everything onto its own page. Yeah, I find it is generally easier to read, search, and link this way. It does have an overview page for anything though you can skim through. Even a good tutorial on

Re: Decimal string to floating point conversion with correct half-to-even rounding

2020-07-07 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 7 July 2020 at 07:49:02 UTC, Walter Bright wrote: Businesses will not want to commit to a balkanized project. It's been ages since I worked on a software project for a business that didn't have many random third (and fourth and fifth and sixth and seventh.) party

Re: Decimal string to floating point conversion with correct half-to-even rounding

2020-07-07 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 7 July 2020 at 13:01:10 UTC, 9il wrote: This would be good advertising for DFL, haha. I don't know what you mean...

Re: Decimal string to floating point conversion with correct half-to-even rounding

2020-07-07 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 7 July 2020 at 13:00:04 UTC, Steven Schveighoffer wrote: Doing that these days would be silly. You can depend on a specific version of a repository without problems. I always have problems when trying to do that. git submodules bring pretty consistent pain in my experience. But

Re: News on the D Blog: SAOC 2020 and More

2020-06-23 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 23 June 2020 at 12:00:06 UTC, Mike Parker wrote: D Language Foundation finance updates Please note that the bit here saying to search a third party website is insufficient, IRS regulations state that the foundation must provide the address on the world wide web and that there

Re: From the D Blog: A Pattern for Head-mutable Structures

2020-06-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 26 June 2020 at 08:36:06 UTC, Mike Parker wrote: I wouldn't be so sure. See the "Anti-Voting Manipulation" section here: you telling us to vote in a specific way is already gaming the system. stop trying to manipulate their idiotic algorithm and just focus on delivering value to

Re: From the D Blog: A Pattern for Head-mutable Structures

2020-06-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 26 June 2020 at 14:02:14 UTC, Mike Parker wrote: But if you do want to vote, I'd like your vote to count. I've seen no evidence that this strategy actually works. Appears totally random if a D post sticks around or not. And in a great many of these posts, people complain that they

Re: Talk by Herb Sutter: Bridge to NewThingia

2020-06-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 29 June 2020 at 15:45:48 UTC, Dagmar wrote: D has a GC. If you turn it off you lose dynamic/associative arrays, classes, probably something else. You just have to construct them with a function instead of with the built-in `new` operator. (Well, associative array will need a

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: Oop! Chaining the writeln too could have increased the wow factor. I didn't see that. oh I hate it when people do that though, it just looks off to me at that point.

Re: Our community seems to have grown, so many people are joining the Facebook group

2020-12-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 December 2020 at 15:06:07 UTC, Ola Fosheim Grøstad wrote: hostile ad hominem tone [...] deliberate attempt to fracture. tu quoque. Let's not assume any motives here. I wouldn't call it "official" either (and indeed, the title on facebook doesn't include that word) but no

Four new entries in my D blog including cross-package doc search release

2020-11-30 Thread Adam D. Ruppe via Digitalmars-d-announce
I aim to write a weekly blog about D, often just summarizing some recent changes to my libraries or sometimes a random rant (at times very loosely related), but I don't always keep up. Usually when I miss a couple weeks, I just post the auto-generated forum index and move on. But in November,

Re: Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-15 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 15 December 2020 at 10:04:42 UTC, tchaloupka wrote: But if these benchmarks helps Adam to make some incremental improvements it's a plus and many of that can be pretty low hanging fruit. Yeah, I think the biggest benefit to changing this around is to just avoid creating

Re: Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 15 December 2020 at 00:32:42 UTC, H. S. Teoh wrote: It may not be the fastest web module in the D world It actually does quite well, see: https://github.com/tchaloupka/httpbench (from the same OP here :) ) The header parser is nothing special, but since header parsing is a

Re: Httparsed - fast native dlang HTTP 1.x message header parser

2020-12-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 14 December 2020 at 21:59:02 UTC, tchaloupka wrote: * arsd's cgi.d - I haven't expected it to be so much slower than vibe-d parser, it's almost 3 times slower, but on the other hand it's super simple idiomatic D (again doesn't check or allow what RFC says it should and many tests

Re: Beerconf January 2021

2021-01-16 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 16 January 2021 at 16:28:34 UTC, Imperatorn wrote: Do you guys usually have some agenda or is it just drink n talk about D? The only agenda is MILKCONF or beerconf for people who aren't me People can gab about whatever comes to mind.

Re: I'm creating a game purely written in D with the arsd library

2021-01-02 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 2 January 2021 at 05:43:48 UTC, James Blachly wrote: Still, why not source code on Github? Is this really any different? Do you actually audit the source? simpledisplay is 17,000 lines. How much of that code is pure evil? Part of my twisted desire to burn the entire universe

Re: CalderaD - SDL2 Vulkan renderer for windows, linux, and android

2021-05-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 14 May 2021 at 17:38:54 UTC, Danny Arends wrote: Hmm, things gotta have a license, why not GPL would CC0 be better? is attribution and sharing code so weird ? GPL is a perfectly fine license. If people don't want to use it because of that, their loss, not your problem.

Re: DIP 1036--String Interpolation Tuple Literals--Has Been Withdrawn

2021-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 27 May 2021 at 20:42:11 UTC, M.M. wrote: I assume that you, Adam and Steven, hold the new (YAI)DIP in high regards. Is that right? Yeah, there's a few small tweaks I'd make (I opened an issue on the repo with them), but I'm pretty happy with it and simplifying the goals like it

Re: Release D 2.096.0

2021-03-15 Thread Adam D. Ruppe via Digitalmars-d-announce
On Sunday, 14 March 2021 at 18:25:51 UTC, starcanopy wrote: int foo() { return 1; } int foo() => 1; I'm concerned that this feature will be in purgatory if its author becomes busy or forgets about it. (Barring another individual assuming proprietorship.) I wrote the implementation for that

Re: Beerconf February 2021

2021-02-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 26 February 2021 at 18:06:45 UTC, Ali Çehreli wrote: Whose tomorrow? :) For some reason I need exact times for this. Is it all weekend hours anywhere on the world or specific UTC times? The way it works is usually one person gets on at some random point typically around the

I learned something new in D this week! (anonymous class rundown)

2021-02-17 Thread Adam D. Ruppe via Digitalmars-d-announce
Many of you know I've been around D for a long time now and picked up a lot of random tricks over the years, so it isn't every day I learn about a new old feature in the language's basic syntax. Would you like to know more? http://dpldocs.info/this-week-in-d/Blog.Posted_2021_02_15.html I

Re: I learned something new in D this week! (anonymous class rundown)

2021-02-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 18 February 2021 at 07:28:27 UTC, Ferhat Kurtulmuş wrote: I came across anonymous classes by reading your minigui codes, such as [1] some time ago. I did not read anything about them except your sources. Good reading, thanks. Yeah, I sometimes see them on lists of features to be

Re: I learned something new in D this week! (anonymous class rundown)

2021-02-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 18 February 2021 at 22:37:06 UTC, superbomba wrote: Once I start reading, I can't stop! :) Better be careful, there's about 250 entries now so you could waste away trying to read it all! (About 145 in twid's first iteration and now about 115 in the second iteration. Of course

<    1   2   3   4   5   6   >