Re: New DConf Blog Post

2019-04-16 Thread aberba via Digitalmars-d-announce

On Sunday, 7 April 2019 at 06:19:31 UTC, Mike Parker wrote:

On Saturday, 6 April 2019 at 22:30:58 UTC, bauss wrote:


The design is terrible and it really looks unprofessional.

While the old site wasn't responsive, the design was at least 
slightly better.


It just doesn't look very well done.

I'm not trying to be negative or anything, but it looks like 
someone who just learn html/css in 1999 tried to make the 
design of the page.


Perhaps raising money to pay an experienced web designer would 
be a good topic for a fundraiser later this year.


Given that I don't do compiler stuff, I could take a look at it 
to see how I can contribute, for free.


Where is the code hosted?


Re: Two New Manpower Initiatives

2019-04-16 Thread aberba via Digitalmars-d-announce

On Monday, 15 April 2019 at 10:08:31 UTC, Mike Parker wrote:
I've just published a post on the blog introducing two new 
initiatives, the Manpower Share and the Manpower Fund, that 
came out of our quarterly D Language Foundation meetings. The 
goal is to help focus energy on getting more effort directed at 
the issues that fall by the wayside. The blog post has all the 
details, so I encourage everyone who cares about improving D 
and its ecosystem to give it a read.


The blog:
https://dlang.org/blog/2019/04/15/manpower-in-the-d-ecosystem-or-resources-resources-resources/

Reddit:
https://www.reddit.com/r/d_language/comments/bde7zq/manpower_in_the_d_ecosystem_or_resources/


I'm proud of the ever increasing momentum being put behind D.


Re: The D Programming Language has been accepted as a GSoC 2019 organization

2019-03-13 Thread aberba via Digitalmars-d-announce

On Wednesday, 27 February 2019 at 16:05:28 UTC, JN wrote:
On Wednesday, 27 February 2019 at 16:01:15 UTC, Bastiaan Veelo 
wrote:

On Tuesday, 26 February 2019 at 22:34:45 UTC, Seb wrote:

Hi all,

I have some very exciting news to share.

The D Language Language got accepted as a Google Summer of 
Code organization!


The official GSoC page provides a few initial pointers and 
details:


https://summerofcode.withgoogle.com/organizations/6103365956665344


You guys give a very nice description of the language on that 
page. If I didn’t already use D, I would want to now!


Bastiaan.


Or be turned off. If I didn't know about D, from that 
description I'd think it's some experimental language for whom 
Boost wasn't crazy enough with templates. "The best, most 
innovative ways to use the D language are yet to be 
discovered." That's great. But it doesn't answer the most 
important questions - what can it be used for, what makes it 
different than say C++ or Java.


Although I doubt it matters in a description on a page like 
that.


As for GSoC, good luck to all participants. I think just as 
important are the ideas, it's important to deliver on them, so 
we don't end up with lost effort such as with 
std.experimental.xml, which is kind of in a limbo right now.


Being too technical can sometimes blind you from expressing 
yourself in a way that is friendly to new adopters. Something 
I've noticed...and when you throw in java, C++ etc., that's poor 
marketing...you just assumed the person already knows and have 
use those programming languages. You sell your product as it is, 
don't bring competitors in your pitch... ruins the whole flow 
sometimes.


Re: LDC 1.14.0

2019-02-18 Thread aberba via Digitalmars-d-announce

On Sunday, 17 February 2019 at 15:46:01 UTC, kinke wrote:

Glad to announce LDC 1.14:

* Based on D 2.084.1.
* Linking WebAssembly doesn't require an integrated LLD linker 
anymore (e.g., also working with distro packages and wasm-ld 
linker).
* 32-bit LTO-able druntime/Phobos newly bundled with prebuilt 
Windows packages.

* AddressSanitizer support for fibers.
* Various fixes.

Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.14.0


Thanks to all contributors!


Work on WebAssembly is very well appreciated. Big thanks to all 
contributors


Re: 5 reasons the D programming language is a great choice for development

2019-02-06 Thread aberba via Digitalmars-d-announce

On Wednesday, 30 January 2019 at 20:34:58 UTC, Simen Kjærås wrote:

I found this article espousing D's strengths today:
https://opensource.com/article/17/5/d-open-source-software-development


I've gotten preoccupied lately with startup stuff and other form 
distractions, but I hope to be able to write more D related 
articles and tutorials on my blog (aberba.netlify.com) and other 
mediums this year.


Re: Now D supports semantic Web (RDF and SPARQL particularly)

2019-01-25 Thread aberba via Digitalmars-d-announce

On Tuesday, 22 January 2019 at 19:53:10 UTC, Victor Porton wrote:

Now D supports semantic Web (RDF and SPARQL particularly):

I've created a D wrapper around C semantic Web library librdf.

Here is the code (it also supports several other programming 
languages, particularly I did also Ada2012 wrapper, the Ada 
wrapper is however somehow not stable):


https://github.com/vporton/redland-bindings

See also https://codereview.stackexchange.com/q/212017/189213 
about some future plans and probable some future API 
incompatibility.


Please participate in code review and adding more unittests.


Interesting


Re: My Meeting C++ Keynote video is now available

2019-01-14 Thread aberba via Digitalmars-d-announce

On Monday, 14 January 2019 at 10:06:48 UTC, Mike Franklin wrote:

On Monday, 14 January 2019 at 05:31:27 UTC, Paul Backus wrote:

When something like an object system is made part of the 
language (or at the very least, the standard library), it 
becomes a focal point [2] that the community can coordinate 
around. Due to the diverse, distributed nature of any 
programming-language community, trying to coordinate through 
explicit communication is not really a viable option, so 
having these kinds of focal points is very important if we 
want to be able to work together on anything.


[1] http://winestockwebdesign.com/Essays/Lisp_Curse.html
[2] https://en.wikipedia.org/wiki/Focal_point_(game_theory)


I think D's structs are a sufficient object system for such a 
focal point.  With design by introspection, `alias`, templates, 
`alias this`, `static if`, CTFE, mixins, and a few new D 
features, classes would be unnecessary.  Rust and Zig are 
pretty good examples of this.


Do people really use Rust in production beyond the safety die 
hards (of course Mozilla and few uses here and there, mostly C 
guys...lowlevel purists)? Its such a weird,complicated and 
academic lang... doubt it'll ever be mainstream like D is 
supposed to be.




Re: Spasm - webassembly libary for single page applications

2018-10-17 Thread aberba via Digitalmars-d-announce
On Sunday, 14 October 2018 at 19:04:51 UTC, Sebastiaan Koppe 
wrote:

On Sunday, 14 October 2018 at 06:03:10 UTC, Bogdan wrote:
Awesome work! I remember that, at some point the 
https://glimmerjs.com/ authors wanted to write their vm in 
rust for better performance. It looks like D is a new option 
for such projects.


Bogdan


Thanks, a lot of credits go to LDC for supporting the 
webassembly backend of LLVM.


I thought about doing a VM as well, specifically because I was 
afraid of the performance penalty of switching a lot between js 
and wasm. The idea was to emit all dom operations into one 
bytebuffer (possibly at compile-time) and then instruct js to 
execute that.


It turns out jumping between wasm and js isn't really a big 
deal (at least not anymore), so I ditched that idea to keep 
things simple.


I saw a recent announcement by the Firefox devs on some massive 
improvements they've made in the js-wasm switching speed. Its 
negligible for most cases...unless probably something crazy. Its 
was very fast...especially for a benchmark of 100 million calls 
with Math.random()


https://hacks.mozilla.org/2018/10/calls-between-javascript-and-webassembly-are-finally-fast-%F0%9F%8E%89/



Plus, there is a good chance that in the near future wasm will 
be able to call the browsers' api directly.
Have you seen this? 
https://developer.mozilla.org/en-US/docs/WebAssembly/Using_the_JavaScript_API


I'm not sure how limited it is though.




Re: Spasm - webassembly libary for single page applications

2018-10-17 Thread aberba via Digitalmars-d-announce
On Tuesday, 16 October 2018 at 07:57:12 UTC, Sebastiaan Koppe 
wrote:
On Tuesday, 16 October 2018 at 03:23:21 UTC, Jesse Phillips 
wrote:
It would be cool if D provided the easiest way to develop 
webasm first to see if it could claim that market.


If you have some minutes to spare it would be great if you 
could try it out. It should only take 10min to render your 
first divs, otherwise something is wrong.


The major hurdle with any wasm dom framework is that there are 
no standard components to build on (like dropdowns, 
drag-n-drop, input validations, notifications, etc.), nor any 
css frameworks (like material ui, bootstrap). So'll need to 
build everything from scratch, and no sane person is likely to 
do that.


What might be an option is to try to integrate with other wasm 
libraries out there, so at least we can use their components. 
But everyone does his own thing, so integrating is going to be 
hard as well.


A common use case for wasm is to port C++ native apps to web. 
e.g. is the recent autoCAD web app which does almost everything 
the desktop app can. That's the only reason to IMO do stuff in 
wasm. Games, productivity software, etc...performance. Spasm 
might just be perfect for that kind of stuff


Re: gRPC for D is released.

2018-10-11 Thread aberba via Digitalmars-d-announce

On Thursday, 11 October 2018 at 16:19:07 UTC, April Nassi wrote:
Hi! I'm the community manager for gRPC and this is awesome! 
Would love to add this to our ecosystem repo. Would also be 
great to have you talk about this on an upcoming community call!


That'll be nice.


Re: Webassembly TodoMVC

2018-09-23 Thread aberba via Digitalmars-d-announce
On Saturday, 22 September 2018 at 19:51:48 UTC, Sebastiaan Koppe 
wrote:

On Saturday, 22 September 2018 at 14:54:29 UTC, aberba wrote:
Can the SPA code be released as a separate module for 
WebAssembly web app development?


Currently the whole thing is not so developer-friendly, it was 
just the easiest way for me to get it up and running.


Right now I am trying to ditch emscripten in favor of ldc's 
webassembly target. This will make it possible to publish it as 
a dub package (ldc only), as well as reduce some of the bloat.


The downside is that ditching emscripten means I have to 
implement things like malloc and free myself.


There is some obvious overlap between this and recent efforts 
by others (I remember D memcpy, and people trying to run it 
without libc, etc.), so I expect a situation in the future 
where all these efforts might be combined.


Regardless, I don't need much from the C library, just enough 
to make (de)allocations and parts of the D standard library 
work.


TL;DR I intend to publish it on dub, but it does takes some 
more time.


What do you think of the struct approach compared to a 
traditional jsx/virtual-dom?


As a pro web developer, I think JSX will be the perfect 
abstraction for maximum adoption. React, being one of the most 
popular library for developing web applications, is loved by the 
community. Its the perfect way to model UI components that fits 
well in my logic.


"ReactJS provided the solution that developers were looking for. 
It uses JSX (a unique syntax that allows HTML quotes as well as 
HTML tag syntax application for rendering specific subcomponents) 
This is very helpful in promoting construction of 
machine-readable codes and at the same time compounding 
components into a single-time verifiable file. ...

...
It allows developers to write their apps within JavaScript. JSX 
is one of the greatest features that not only makes ReactJS easy 
but fun too. Developers can easily make a new UI feature and see 
it appear in real time. It brings HTML directly into your JS. ...

...
Components allow developers to break down complex UI. The idea of 
components is what makes ReactJS unique. Instead of worrying 
about the entire web app, it makes it possible to break the 
complex UI/UX development into simpler components. This is 
crucial in making every component more intuitive."


See JSX:
https://medium.com/@thinkwik/why-reactjs-is-gaining-so-much-popularity-these-days-c3aa686ec0b3

I'm personally not tied to any framework or library. Only use 
React/JSX because its solves a real and practical problem for me. 
Something most web developers agree from the stackoverflow 2017 
survey: https://insights.stackoverflow.com/survey/2017


Re: Webassembly TodoMVC

2018-09-22 Thread aberba via Digitalmars-d-announce
On Friday, 21 September 2018 at 14:01:30 UTC, Sebastiaan Koppe 
wrote:

Hey guys,

Following the D->emscripten->wasm toolchain from CyberShadow 
and Ace17 I created a proof of concept framework for creating 
single page webassembly applications using D's compile time 
features.


This is a proof of concept to find out what is possible.

At https://skoppe.github.io/d-wasm-todomvc-poc/ you can find a 
working demo and the repo can be found at 
https://github.com/skoppe/d-wasm-todomvc-poc


Here is an example from the readme showing how to use it.

---
struct Button {
  mixin Node!"button";
  @prop innerText = "Click me!";
}
struct App {
  mixin Node!"div";
  @child Button button;
}
mixin Spa!App;
---


Can the SPA code be released as a separate module for WebAssembly 
web app development?


Re: I have a plan.. I really DO

2018-07-05 Thread aberba via Digitalmars-d-announce

On Wednesday, 4 July 2018 at 19:29:55 UTC, Ecstatic Coder wrote:

On Wednesday, 4 July 2018 at 18:05:15 UTC, wjoe wrote:
On Wednesday, 4 July 2018 at 08:50:57 UTC, Ecstatic Coder 
wrote:
But indeed, being able use D in a GC-free environment (like 
C++ and Rust do) would be something many people may NEED, for 
instance to be able to EASILY use D for soft-realtime 
applications like games.


This has to be the no. 1 excuse.




Games have been made with GC'd languages, 3D games, even. And 
successfully, too.
Minecraft, a very successful one, comes to mind, which is or 
at least was made in Java.

Plenty of games are made in C#, too.

+1




Slow code is slow and allocating memory in a tight loop is a 
huge performance killer - regardless of language.

+1



Nothing forces anyone to use the GC, memory can be managed 
manually via malloc/free and you get to do it with scope 
statements/nested functions which makes it nicer than in C. 
You could also implement shared/weak ptr stuff in D - warts 
and all.


That's what Timur said.

If you need a GC free standard library, I believe there is an 
ongoing effort -or several- at code.dlang.org and probably 
other places.


You said do this and that, GC, etc. to motivate C++ folks to 
come to D. I say it's an excuse not to use D and no matter the 
effort of advertising, a GC free phobos, etc. on part of the 
D-Lang Foundation and contributors would make these folks 
switch. They would simply find a different excuse.






You say that garbage collection is not a real problem for game 
development.


Maybe, but that's not my experience. For instance, have you 
read Unity's own official recommandations on how to overcome 
this problem ?


And obviously, Tibur, a highly skilled D game engine developer, 
is not a big fan of D's non incremental garbage collector, from 
the number of @nogc he has put in his Dlib container code.


He has written no-GC libs for sure but he said in a blog post 
about his projects that he has no problem with GC. As long as you 
do not use it in critical areas.


Modern D is a very attractive choice as a language for game 
development. Even the garbage collector is not a problem, 
because you can use object pools, custom allocators, or simply 
malloc and free. The key point is to know when the GC is 
invoked and try to avoid those cases in performance critical 
code. Personally, I prefer using malloc so that I can free the 
memory when I want, since delete has been deprecated and 
destroy  just releases all the references to an object instance 
without actually deleting it. Using manual memory management 
imposes some restrictions on the code–for example, you can’t 
use closures or D’s built-in containers–but that, again, is not 
a big problem. A large effort is currently underway to lessen 
GC usage in dlib, so that you can use it to write fully 
unmanaged applications with ease. It has GC-free containers, 
file I/O streams, image decoders, and so on.


https://dlang.org/blog/2016/09/16/project-highlight-timur-gafarov/

Remember he's into real-time stuff.

As an indie game developer with a strong bias toward graphics 
engines and rendering tech, I always try to keep track of 
modern compiled languages effective enough for writing 
real-time stuff. The most obvious choice in this field is C++, 
and I actually used it for several years until I found D in 
2010. I immediately fell in love with the language’s clean, 
beautiful syntax, its powerful template system, the numerous 
built-in features absent in C++, and the rich and easy to use 
standard library.




Maybe you disagree with us because you are a professional game 
developer who has already released a successful commercial game 
in D without caring for the garbage collection. If it's the 
case, then nice, I'd be happy to have it wrong on this :)


Read the blog post, you're wrong.



Of course it's perfectly your right to develop your games 
without caring for all these performance "details". But other 
people do.


GC in not a performance bottle neck if you truly know what you're 
doing.




So, as I said, those who use C++ or Rust because D's GC is a 
problem for them, won't probably use D in its current state.


If D had X people. Not customers.




Re: Project Highlight: Timur Gafarov

2018-07-03 Thread aberba via Digitalmars-d-announce

On Friday, 16 September 2016 at 15:54:15 UTC, Timur Gafarov wrote:

16.09.2016 18:12, c-v-i пишет:
On Friday, 16 September 2016 at 12:53:44 UTC, Mike Parker 
wrote:

[...]


can someone build atrium ?


For all people who can't build Atrium: you either have an old 
source tree or trying to build one of the releases. Trunk in 
it's current state should compile with DMD 2.070 or LDC 1.0 - 
at least, under Windows and Linux, both 32 and 64 bit. Support 
for other OSes, configurations, compilers and DMD versions is 
not guaranteed.


What is the current state of your game development projects in 
general?  Dmech?  Dagon?


Re: I have a plan.. I really DO

2018-07-03 Thread aberba via Digitalmars-d-announce

On Tuesday, 3 July 2018 at 06:43:44 UTC, Ecstatic Coder wrote:
D has a very diverse use case so the generalization is moot. 
For example I prefer having the gc manage memory for me...For 
most of the things I do with D...contrary to other opinions.


+1

For most D use cases (including mine, which is file 
processing), D's GC is a blessing, and one of its main 
advantages over C++, IMHO.


And if you want to use D for C++-like use cases where you don't 
want it, this generally leads to having to reinvent the wheel 
in order to avoid unwanted garbage collections. For instance :


https://github.com/gecko0307/dlib/blob/master/dlib/container

That's why I'm personally in favor of D supporting 
reference-counting based memory management directly in its 
syntax (T@, etc), and also providing the GC-free standard




PS : BTW kudos to Timur Gafarov, it's a pity so many D 
developers prefer to start developing their own engines instead 
of helping Tibur finish Dagon to make it a production-ready 
game engine (adding terrain, UI, networking, etc). Very 
promising work IMHO !


https://dlang.org/blog/2016/09/16/project-highlight-timur-gafarov/

And having the language help him (native strong/weak 
references) would be nice too :D



I waa aware aware of dlib by I never knew about the impressive he 
had done with D, especially the game engine Dagon and physics 
engine dmech. Shows what D can do in a clean way.


Beyond that, he took time to write detailed tutorials for the 
game engine. Its definitely better for others to contribute 
instead of reinventing the wheel. His work is really impressive.


https://github.com/gecko0307/dagon/wiki/Tutorials


Re: I have a plan.. I really DO

2018-07-02 Thread aberba via Digitalmars-d-announce

On Monday, 2 July 2018 at 18:03:25 UTC, bachmeier wrote:

On Saturday, 30 June 2018 at 03:02:15 UTC, Joakim wrote:
The future of native code will be replacing scripting 
languages. D is really good at that task.


This will never happen, doesn't matter how good D is at it, 
they will always be better because they sacrifice performance 
for ease of use.

Generalization



I think it depends on a couple of factors. First, some of us 
prefer static typing, but until a few years ago, the POS known 
as Java was the best available language with static typing. As 
languages like D build up libraries that make it easy to 
replace the functionality of scripting languages, many of us 
will move. Second, scripting languages lose their ease of use 
advantages quickly once performance becomes an issue. As data 
science and web services continue to grow at a fast pace, more 
programs are being written for which performance will 
eventually be an issue.


JavaScript is the most popular and growing language on earth.



AFAIK, nobody in the broader community was ever told that the 
D foundation money would be used to fund a bunch of Romanian 
interns, it just happened.


My understanding is that a lot of that was funded by Andrei 
(but maybe I am wrong) so I have never had a problem with that 
decision. Where it does cause problems is that anyone else, 
myself included, may not be eager to donate for that reason 
because it's not what we feel is going to help with adoption of 
the language. As you mentioned, some work on IDEs is being 
funded, but even then it appears to be one IDE for Windows 
users.


Windows?  It's not an IDE. Its a text editor by Microsoft called 
Visual Studio Code and it's cross platform. The D extension is 
the most capable cross platform option. I use it on Linux an it 
works really well. I wouldn't hesitate to donate money just to 
see it gain further improvements. Its really awesome.


When I see people complaining about lack of D support for code 
editors...I wonder if they make effort to assert their complaints.


If course D cannot be supported on every ide/text editor. Popular 
ones are well supported. Visual Studio and Visual Studio Code 
being the best IMO. However, sublime, vim, and monodevelop have 
good support too.


Maybe they should mention what they're not getting from supported 
IDEs/text editors.


That's not relevant to anything I'm doing. It's better if I 
contribute by improving the ecosystem in a way that helps 
others doing the same things.



D has a very diverse use case so the generalization is moot. For 
example I prefer having the gc manage memory for me...For most of 
the things I do with D...contrary to other opinions.




Re: GitHub could be acquired by Microsoft

2018-06-05 Thread aberba via Digitalmars-d-announce

On Tuesday, 5 June 2018 at 17:12:00 UTC, Apocalypto wrote:

On Tuesday, 5 June 2018 at 16:12:25 UTC, RalphBa wrote:

Did you ever have the need to write something efficient? .NET 
is a sandbox for children and UX people.


Oh yeah, toy applications for children like StackOverflow, 
Siemens NX, Solidworks, most of the Azure platform, MSSQL and 
Visual Studio just to name a few. Even a toy compiler like 
Roslyn. Don't be surprised if github will run someday on top of 
the .net platform. Welcome to the children playground!


This take on Microsoft is really ridiculous. I hope it's all just 
for fun. I've been using Linux 100% for years and it's really 
ridiculous seeing comments about Microsoft being some evil 
company. Beating competition with alternative product is 
everywhere...Google took over from Yahoo, Github from Rosetta and 
Co,  Facebook from others,...its all competition in business.


These people who complain don't usually contribute a penny to 
Open source. Frankly, Microsoft has done great things for the 
world with software. Making computers accessible to everyone... 
They recently came out with VS Code which is better than any 
existing open source alternative...even though it uses same 
technology as atom and bracket text editor. Really, Microsoft 
write high quality software... proprietary or open source. They 
contribute to Linux and other tools. There's the major 
contributor to open source.



Github is a for-profit company so of course i would expect to 
make profit too if I bought it. Your employer doesn't pay you 
with leaves. That money comes from commercialization. Developers 
must eat.


I think some only look at what happened during Steve Balmer's 
time as ceo. It was "HIS" strategy to pick on Linux. In fact, he 
pick on Apple too and several other competing products. Its all 
marketing and competition and its pretty much everywhere. 
Monopoly and patent registration is everywhere. I'm not saying 
its a good thing or bad,...Its not just Microsoft.



If you're don't trust Microsoft, you shouldn't trust any 
commercial company. Microsoft has changed business model too by 
embracing open source. In fact, their the real believers in open 
source now compared to those who don't think theirs money in open 
source.


Re: dxml 0.3.0 released

2018-04-19 Thread aberba via Digitalmars-d-announce
On Thursday, 19 April 2018 at 14:40:58 UTC, Jonathan M Davis 
wrote:
Well, since I'm going to be talking about dxml at dconf, and 
it's likely that I'll be talking about stuff that was not in 
the 0.2.* releases, it seemed like I should get a new release 
out before dconf. So, here it is.


dxml 0.3.0 has now been released.

I won't repeat everything that's in the changelog, but the 
biggest changes are that writer support has now been added, and 
it's now possible to configure how the parser handles 
non-standard entity references.


Please report any bugs that you find via github.

Changelog: http://jmdavisprog.com/changelog/dxml/0.3.0.html
Documentation: http://jmdavisprog.com/docs/dxml/0.3.0/
Github: https://github.com/jmdavis/dxml/tree/v0.3.0
Dub: http://code.dlang.org/packages/dxml

- Jonathan M Davis


I understand XML is more powerful for some stuff... however XML 
libs naming conventions generally seem verbose (thanks 
Microsoft)...I've never used XML beyound HTML though. I started 
with JSON and has always been JSON.


Re: The 10k Twitter Target

2018-04-18 Thread aberba via Digitalmars-d-announce

On Monday, 16 April 2018 at 08:39:05 UTC, Mike Parker wrote:
Lately, we've seen a steadily increasing trend of new followers 
on Twitter. We're closing in on the totally arbitrary yet 
emotionally significant number of 10,000. I was just thinking 
how cool it would be to hit that number before or during DConf.


[...]


Twitter will get your pass that with some few $$ :)


Re: LDC 1.8.0

2018-03-25 Thread aberba via Digitalmars-d-announce

On Saturday, 24 March 2018 at 17:33:18 UTC, Matthias Klumpp wrote:
On Tuesday, 13 March 2018 at 01:52:48 UTC, Matthias Klumpp 
wrote:

[...]
Aww, just a little bit too late to easily get into Ubuntu 
18.04 LTS


Well It still made it, yay! (Even without me explicitly 
requesting it)
This means Ubuntu 18.04 will be pretty up-to-date when it comes 
to D stuff, only GDC 8 won't be the default (but still 
available).
The thing that is facilitating an up-to-date D stack in Debian 
and Ubuntu is software in the archive using D. The Tilix 
terminal emulator is at the forefront there, followed by my 
appstream-generator and the Laniakea archive management suite 
and all the bits and pieces those projects depend on (like GtkD 
in Tilix' case).


Thanks to all.


Re: Vibe.d web interface tutorial

2018-03-13 Thread aberba via Digitalmars-d-announce
On Tuesday, 13 March 2018 at 10:12:24 UTC, Steven Schveighoffer 
wrote:

On 3/9/18 11:34 AM, aberba wrote:

On Friday, 9 March 2018 at 16:32:28 UTC, aberba wrote:

New blog post for the learning audience

aberba.com/2018/using-vibe-d-web-interface


http://aberba.com/2018/using-vibe-d-web-interface



Very nice! Although this is missing one of my favorite vibe.d 
web interface features -- automatic parsing of route parameters:



class WebInterface
{
   void getRoute(HTTPServerResponse res, int foo, Nullable!int 
bar)

   {
   import std.format;
   res.writeBody(format("foo = %s, bar = %s", foo, bar));
   }
}

/route => Error, foo required
/route?foo=1 => "foo = 1, bar = Nullable.null"
/route?foo=2=5 => "foo = 1, bar = 5"

-Steve


I don't know why but I dont really use that feature often. I tend 
to access them with req.query.get("param") and 
req.form.get("param") directly. Don't know why... time to save 
some key strokes. ...but how does file handling work with this 
approach? input(type="file"...)


Re: Vibe.d web interface tutorial

2018-03-13 Thread aberba via Digitalmars-d-announce

On Tuesday, 13 March 2018 at 13:42:20 UTC, Daniel Kozak wrote:

Yes PHP is always to blame :)


I can testify I've never written PHP code as clean as yours 
above. Ha ha. Even when I used PHP heavily. I suck a lil bit at 
naming things.


I really loved PHP but ... vibe.d happened.



On Tue, Mar 13, 2018 at 1:55 PM, Steven Schveighoffer via 
Digitalmars-d-announce  
wrote:



On 3/13/18 6:22 AM, Daniel Kozak wrote:


[...]


That's not what I was talking about, I was talking about how 
the parameters are automatically parsed passed to the web 
functions. It doesn't affect how the routes are called 
externally, just how the parameters are dealt with.


Note, you can override the method for any/all routes:

class WebInterface
{
   @method(HTTPMethod.GET):
... // all methods are now get
}

I think perhaps the root cause of your problem is using PHP ;)

-Steve




Re: Vibe.d web interface tutorial

2018-03-12 Thread aberba via Digitalmars-d-announce
On Saturday, 10 March 2018 at 15:03:59 UTC, Martin Tschierschke 
wrote:

On Friday, 9 March 2018 at 16:34:52 UTC, aberba wrote:

On Friday, 9 March 2018 at 16:32:28 UTC, aberba wrote:

New blog post for the learning audience

aberba.com/2018/using-vibe-d-web-interface


http://aberba.com/2018/using-vibe-d-web-interface


Thank you! I linke it.


Glad you did.


Re: Vibe.d web interface tutorial

2018-03-09 Thread aberba via Digitalmars-d-announce

On Friday, 9 March 2018 at 16:32:28 UTC, aberba wrote:

New blog post for the learning audience

aberba.com/2018/using-vibe-d-web-interface


http://aberba.com/2018/using-vibe-d-web-interface



Vibe.d web interface tutorial

2018-03-09 Thread aberba via Digitalmars-d-announce

New blog post for the learning audience

aberba.com/2018/using-vibe-d-web-interface


Re: Released vibe.d 0.8.3

2018-03-09 Thread aberba via Digitalmars-d-announce

On Friday, 9 March 2018 at 10:07:28 UTC, Sönke Ludwig wrote:
The deprecation phase of the legacy "vibe-d:core" module starts 
with this release by defaulting to the new "vibe-core" package. 
Additionally, DMD 2.079.0 is finally supported, and some 
notable improvements have been made to the HTTP implementation. 
URLRouter in particular has received memory optimizations (to 
avoid fragmentation) that can result in a heavy reduction of 
memory use.


See the change log for instructions to opt for the legacy 
vibe-d:core module in case of any issues with vibe-core.


Change log:
https://vibed.org/blog/posts/vibe-release-0.8.3

DUB package:
https://code.dlang.org/packages/vibe-d/0.8.3


Congrats!


Re: Release: nanovega.d rendering lib like html5 canvas

2018-03-08 Thread aberba via Digitalmars-d-announce

On Thursday, 8 March 2018 at 03:55:35 UTC, Adam D. Ruppe wrote:

https://github.com/adamdruppe/arsd

nanovega.d

[...]


Why is there NVG* everything? That's code noise.

Anyways, its well documented.


Re: Release: nanovega.d rendering lib like html5 canvas

2018-03-08 Thread aberba via Digitalmars-d-announce

On Thursday, 8 March 2018 at 19:24:43 UTC, WebFreak001 wrote:

On Thursday, 8 March 2018 at 03:55:35 UTC, Adam D. Ruppe wrote:

https://github.com/adamdruppe/arsd

nanovega.d

[...]


AMAZING! I think this will revolutionize how we do GUI and 
rendering in D, especially nogc. You can make really cool 
effects and renders very quickly.


Got some cool project ideas how you could use this already. You 
could make a WPF clone in D for example if you put in a lot of 
time, but it would probably be far superior than all other 
currently existing GUI toolkits if you get the data binding and 
event layer right.


And theming. Especially with a subset of CSS.


Re: mysql-native v2.1.0

2018-03-07 Thread aberba via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 10:15:30 UTC, Martin Tschierschke 
wrote:

On Tuesday, 6 March 2018 at 07:39:00 UTC, aberba wrote:
On Tuesday, 6 March 2018 at 04:31:42 UTC, Nick Sabalausky 
(Abscissa) wrote:

[...]

[...]



UNIX sockets provide a way to securely connect in an 
enclosed/isolated environment without exposing connection 
externally. This is used in my company in our microservice 
infrastructure on Google Cloud: we connect to our db instance 
using a proxy and its the recommended approach in 
microservices.


Its a very common security practice. The default approach on 
Google Cloud. I would do the same for any db I want to prevent 
external access to. If vibe.d doesn't support it then its 
missing a big piece of a puzzle.
Having sockets would be better, but you may configure your 
mysql to allow only

local connects. So external requests are blocked.

https://dba.stackexchange.com/questions/72142/how-do-i-allow-remote-mysql-access-to-all-users

Look at the first answer to set the right privileges for your 
environment.


Additionally blocking the mysql port 3306 (beside many others) 
from outside the network would make sense.


The MySQL instance is running in a managed cloud instance. You 
don't get to tweak things like with vps.  Proxy based connection 
its what's used. Not just in my case...it supported in all major 
mysql libraries "socketPath".


Re: Article: Why Const Sucks

2018-03-06 Thread aberba via Digitalmars-d-announce

On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote:

Here's something I wrote up on const:

http://jmdavisprog.com/articles/why-const-sucks.html

I suppose that it's not exactly the most positive article, but 
I feel that it's accurate.


- Jonathan M Davis


Its amazing how typed languages, in this case const, forces you 
to think in mutation but with an exception. I wonder the real 
world SOLE benefit of using const compared to mutable-immutable 
style. Its either mutable or immutable. Exception could only 
available by casting immutable to mutable.


I feels this const thing is a theoretical problem. One can 
overcome practically with code style discipline. At a point, 
const becomes just a decoration; something people use prematurely 
(YAGNI).


It must feel like sleeping on your bed with sharp knives hanging 
at the top such that they can fall on you anything: when 
comparing code in a typed language to an untyped one. That's a 
potential cause of premature use of certain type attributes.



By the way, Jonathan, you should really consider writing a book 
with such deep insights your have. Especially the way you explain 
things.


Re: mysql-native v2.1.0

2018-03-05 Thread aberba via Digitalmars-d-announce
On Tuesday, 6 March 2018 at 04:31:42 UTC, Nick Sabalausky 
(Abscissa) wrote:

On 03/05/2018 09:23 AM, aberba wrote:
On Saturday, 3 March 2018 at 07:37:38 UTC, Nick Sabalausky 
(Abscissa) wrote:

An all-D MySQL/MariaDB client library:
https://github.com/mysql-d/mysql-native
==

[...]


Is unix socket connection supported? I'm not seeing any 
information about it in the docs.


It's not currently supported. From the "Additional Notes" 
section of the readme:


"Normally, MySQL clients connect to a server on the same 
machine via a Unix socket on *nix systems, and through a named 
pipe on Windows. Neither of these conventions is currently 
supported. TCP is used for all connections."

  - https://github.com/mysql-d/mysql-native#additional-notes

I'm not opposed to it being added, but I'm not aware of what 
benefit it would provide that would big enough to make it a 
priority. Also, AFAIK, vibe doesn't offer socket support like 
it does TCP, so vibe users would loose out on the automatic 
yield-on-io that's a cornerstone of vibe's concurrency design.



UNIX sockets provide a way to securely connect in an 
enclosed/isolated environment without exposing connection 
externally. This is used in my company in our microservice 
infrastructure on Google Cloud: we connect to our db instance 
using a proxy and its the recommended approach in microservices.


Its a very common security practice. The default approach on 
Google Cloud. I would do the same for any db I want to prevent 
external access to. If vibe.d doesn't support it then its missing 
a big piece of a puzzle.


Re: mysql-native v2.1.0

2018-03-05 Thread aberba via Digitalmars-d-announce
On Saturday, 3 March 2018 at 07:37:38 UTC, Nick Sabalausky 
(Abscissa) wrote:

An all-D MySQL/MariaDB client library:
https://github.com/mysql-d/mysql-native
==

[...]


Is unix socket connection supported? I'm not seeing any 
information about it in the docs.


Re: Documentation for any* dub package, any version

2018-02-27 Thread aberba via Digitalmars-d-announce

On Tuesday, 27 February 2018 at 09:17:21 UTC, bauss wrote:

On Tuesday, 27 February 2018 at 09:16:12 UTC, bauss wrote:
On Monday, 26 February 2018 at 14:59:07 UTC, Adam D. Ruppe 
wrote:

[...]


Tried with http://diamond.dpldocs.info/arsd.html and it gives 
a 404


Nvm, I see how stupid I was.


You were not stupid. You made a mistake. They're two different 
things.


Re: mysql-native v2.1.0-rc1: New features

2018-02-23 Thread aberba via Digitalmars-d-announce
On Friday, 23 February 2018 at 22:15:37 UTC, Nick Sabalausky 
(Abscissa) wrote:

An all-D MySQL/MariaDB client library:
https://github.com/mysql-d/mysql-native
==

[...]

That's a very useful feature. Will simplify some code.

As well as additional tools for optional micro-management of 
registering/releasing prepared statements.


[...]




Re: Beta 2.079.0

2018-02-23 Thread aberba via Digitalmars-d-announce
On Friday, 23 February 2018 at 11:24:24 UTC, Jonathan M Davis 
wrote:
On Friday, February 23, 2018 10:57:21 Martin Nowak via 
Digitalmars-d- announce wrote:

On Friday, 23 February 2018 at 10:48:10 UTC, psychoticRabbit

wrote:
> If D just wants to become a compiled scripting 
> language...good luck to it.


That's certainly not the goal, but as with every tool people 
become very familiar with, it's used creatively for things 
other than initially intended.


And D has a lot of the easy-of-use that folks like to attribute 
to scripting languages. Thanks to how hard stuff like string 
processing is in C/C++, there's frequently a perception that 
compiled languages are hard to use for a lot of stuff that 
folks like to use scripting languages for, whereas that really 
has nothing to do with whether the language is compiled or not. 
And D is much more on-par with scripting languages in that 
regard even though it's compiled. So, if someone uses a 
scripting language because of its use-of-use, D frequently 
works for those use cases just as well.


There's no requirement that a compiled language be used for 
large programs or that it be hard to use for simple tasks. And 
D can be used for a whole range of program sizes and tasks. 
It's a solid general purpose language, and small scripts fit 
into that just as well as large applications do.


- Jonathan M Davis


Very well said. Coming from the world of full stack (front-end 
and back-end),  D is the only language that provides me with all 
of C/C++ but in a more Javascript &  php way of easing 
development. Not only strings that are convenient to work with in 
D,  but its has generally been for me... convenience in dealing 
with data generally.


D is very well designed,  easy to understand, and can be a beast 
if you want. Its one language you need to learn to be useful in 
every domain. D is already enough as a scripting language. I can 
code in D as fast as in Javascript (Nodejs).


That's why my complaints have not been about the language but 
packages/library availability. D is my answer to one language for 
everything. Being general purpose language at it's core is a good 
thing. Best of both worlds.


std.range,  std.algorithms, std. string,  std.datetime solves 60% 
of all my needs. Useful stuff on Dub too. More will come with 
time.


Re: Beta 2.079.0

2018-02-23 Thread aberba via Digitalmars-d-announce

On Friday, 23 February 2018 at 03:26:11 UTC, Seb wrote:
On Friday, 23 February 2018 at 03:20:22 UTC, psychoticRabbit 
wrote:

compared to the current change in beta.


FWIW the change is almost gone from the beta:

https://github.com/dlang/dmd/pull/7939


Glad its *almost* gone. That change *almost* freaked me out.


Re: Beta 2.079.0

2018-02-22 Thread aberba via Digitalmars-d-announce
On Wednesday, 21 February 2018 at 10:54:11 UTC, Jonathan M Davis 
wrote:
On Wednesday, February 21, 2018 10:24:41 Paolo Invernizzi via 
Digitalmars-d- announce wrote:
On Wednesday, 21 February 2018 at 10:15:48 UTC, Jonathan M 
Davis


wrote:
> [...]

Was there a DIP for that?


No, and I have no idea whether Walter approved of it or knows 
anything about it. He may be fine with it, or it may be that 
another compiler dev merged it, and he didn't notice. The list 
of DIPs is here, and this definitely isn't one of them:


https://github.com/dlang/DIPs/tree/master/DIPs

When suggestions like this have come up in the past, some of us 
have been against the idea, and others have loved the idea, but 
until this beta was released, I had no idea that anyone had 
actually gone and implemented it.


- Jonathan M Davis


Face palm. Hmm.


Re: The Expressive C++17 Coding Challenge in D

2018-02-15 Thread aberba via Digitalmars-d-announce

On Tuesday, 13 February 2018 at 23:35:36 UTC, Seb wrote:
Someone revived the Expressive C++17 Coding Challenge thread 
today and I thought this is an excellent opportunity to revive 
my blog and finally write an article showing why I like D so 
much:


https://seb.wilzba.ch/b/2018/02/the-expressive-c17-coding-challenge-in-d

It's mostly targeted at beginners as I explain many basic D 
features, but maybe it's helpful for beginners looking into D.


Very well written. Nice read. I recommend you write more these 
days.


Re: mysql-native v2.0.0-rc1: Release Candidate: Redesigned Prepared

2018-02-06 Thread aberba via Digitalmars-d-announce
On Monday, 5 February 2018 at 04:47:07 UTC, Nick Sabalausky 
(Abscissa) wrote:

An all-D MySQL/MariaDB client library:

https://github.com/mysql-d/mysql-native

[...]



I really want to thank you for putting much time into 
documentation. Very much appreciated. This library is very 
necessary for the stuff I do.


Re: LDC 1.7.0

2018-02-02 Thread aberba via Digitalmars-d-announce

On Friday, 2 February 2018 at 12:57:44 UTC, Kagamin wrote:

On Tuesday, 30 January 2018 at 19:57:39 UTC, aberba wrote:

now it seem abandoned after such an effort.


Can you confirm it for Ubuntu 17?


I'm on 16.04.


Re: LDC 1.7.0

2018-01-30 Thread aberba via Digitalmars-d-announce

On Tuesday, 30 January 2018 at 18:30:56 UTC, Johan Engelen wrote:

On Tuesday, 30 January 2018 at 09:38:26 UTC, aberba wrote:
On Monday, 29 January 2018 at 07:40:10 UTC, Dominikus Dittes 
Scherkl wrote:

On Saturday, 27 January 2018 at 21:42:49 UTC, aberba wrote:

[...] Ubuntu 16.04

This is a long-term support distribution.
Don't expect those to have actual tip versions of any SW 
package!
They rely on stabe versions that don't have the latest 
features

but only those very well tested.


The semver 1.7 is not an unstable package. Its that their 
reason for no updates?


LDC 1.7.0 includes major changes to the frontend and is not 
well-tested.
If you want a better-tested recent LDC, I recommend LDC 1.6.0, 
which is used in production at Weka.


- Johan


I expected at least 1.6 to be available in the repo by now. I 
remember the availability of LDC in ubuntu was celebrated 
here...now it seem abandoned after such an effort. Maybe someone 
from the team can answer what happened.


Re: LDC 1.7.0

2018-01-30 Thread aberba via Digitalmars-d-announce
On Monday, 29 January 2018 at 07:40:10 UTC, Dominikus Dittes 
Scherkl wrote:

On Saturday, 27 January 2018 at 21:42:49 UTC, aberba wrote:

[...] Ubuntu 16.04

This is a long-term support distribution.
Don't expect those to have actual tip versions of any SW 
package!

They rely on stabe versions that don't have the latest features
but only those very well tested.


The semver 1.7 is not an unstable package. Its that their reason 
for no updates?


Re: LDC 1.7.0

2018-01-27 Thread aberba via Digitalmars-d-announce

On Saturday, 27 January 2018 at 21:37:08 UTC, aberba wrote:

On Saturday, 6 January 2018 at 01:19:14 UTC, kinke wrote:

Hi everyone,

on behalf of the LDC team, I'm glad to announce LDC 1.7. The 
highlights of this version in a nutshell:


* Based on D 2.077.1.
* Catching C++ exceptions supported on Linux and Windows.
* LLVM for prebuilt packages upgraded to v5.0.1.

Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.7.0


Thanks to all contributors!


Ubuntu 16.04 still has version 1.0.0 in its repository. Why is 
it not updated anymore?


Sorry. its Compiler version 1.1.1 based on dmd v2.071.2, LLVM 
3.9.1. I expected compiler version 1.7.0 which is the latest.


Re: LDC 1.7.0

2018-01-27 Thread aberba via Digitalmars-d-announce

On Saturday, 6 January 2018 at 01:19:14 UTC, kinke wrote:

Hi everyone,

on behalf of the LDC team, I'm glad to announce LDC 1.7. The 
highlights of this version in a nutshell:


* Based on D 2.077.1.
* Catching C++ exceptions supported on Linux and Windows.
* LLVM for prebuilt packages upgraded to v5.0.1.

Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.7.0


Thanks to all contributors!


Ubuntu 16.04 still has version 1.0.0 in its repository. Why is it 
not updated anymore?


Re: Another take on decimal data types

2018-01-09 Thread aberba via Digitalmars-d-announce

On Tuesday, 9 January 2018 at 10:41:42 UTC, Mike Franklin wrote:

On Monday, 8 January 2018 at 22:16:25 UTC, rumbu wrote:

This is my first D finalized project (+16k loc).

I know that there are other two projects intended to provide a 
decimal data type for D, but I consider mine the most complete 
and most compliant to the standards (at least until now).


Wow!.  So thorough.  Documentation is fantastic.  Very nice 
work, indeed!


Mike


I couldn't say it better. Its really well done...


Re: excel-d v0.2.16 - now with more @Async

2018-01-04 Thread aberba via Digitalmars-d-announce

On Friday, 22 December 2017 at 00:41:31 UTC, Atila Neves wrote:
excel-d lets you write plain D code that can be run from Excel 
unmodified via the magic of compile-time reflection.


Other than bug fixes, the main new feature since 0.2.15 is 
@Async. Slap it on a function like so:


@Async
double myfunc(double d) {
// ...
return ret;
}

And it will be executed in a separate thread. Useful for long 
running calculations / tasks so that they don't block the UI or 
other calculations in the worksheet.


Can't this UDA style be used to mimic async/await?


Atila





Re: DLang docker images for CircleCi 2.0

2018-01-04 Thread aberba via Digitalmars-d-announce

On Wednesday, 3 January 2018 at 13:12:48 UTC, Seb wrote:

tl;dr: you can now use special D docker images for CircleCi 2.0

---
version: 2
jobs:
  build:
docker:
  - image: dlang2/dmd-circleci
---

[...]


do you orchestrate your containers in deployment?


Re: datefmt 1.0.0 released: parse datetimes and also format them

2017-12-14 Thread aberba via Digitalmars-d-announce
On Tuesday, 12 December 2017 at 22:51:07 UTC, Neia Neutuladh 
wrote:

# Sales pitch

If you've ever had to parse datetime input from multiple 
sources and everyone's standardized on ISO8601, you might have 
found out that that's not quite as standard as you'd wish. This 
is where datefmt helps you.


[...]


Nice.  These little packages are very use for someone like me 
doing serverside development... Dealing with dates and client 
data.


Why not use Boost license. It makes everything easy for everyone


Re: Interfacing D with C: Getting Started

2017-12-05 Thread aberba via Digitalmars-d-announce

On Tuesday, 5 December 2017 at 16:06:19 UTC, Mike Parker wrote:
This is the first post in a new tutorial series I'm doing on 
the blog. I've covered this topic elsewhere, so for most of the 
basics I just link to existing material. The purpose of this 
series is to delve into some of the trouble spots that arise 
from the differences between the two languages. In this post, I 
go through a brief tutorial to make sure that all readers at 
least know how to compile a C source module to an object file 
and link it with a D executable, then give them an opportunity 
to try it out by showing the potential problem with long/ulong 
and C.


The blog:
https://dlang.org/blog/2017/12/05/interfacing-d-with-c-getting-started/

Reddit:
https://www.reddit.com/r/programming/comments/7hqk8b/interfacing_d_with_c_getting_started



Thanks.  Its something I needs to learn.



Re: GtkD 3.7.0 released, GTK+ with D.

2017-12-05 Thread aberba via Digitalmars-d-announce

On Saturday, 2 December 2017 at 08:17:24 UTC, helxi wrote:

On Sunday, 15 October 2017 at 20:18:37 UTC, Mike Wey wrote:

[...]


I highly appreciate that the project is being actively 
maintained but I want to express my concern.


It would be really nice if there was an easy tutorial for the 
library. At this moment, all we got is a documentation page 
that drops you in gtkdialog page. It's almost like a solid 
blackbox, especially for people that are not familiar with 
developing GUI.


There is a tutorial out there but it looks unfinished, slightly 
outdated and most importantly the installation instruction of 
gtkd is for only windows and doesn't make use of dub.



I wish there was a nice and up to date tutorial like 
https://mmstick.github.io/gtkrs-tutorials/


I wanted to do this using some examples I have whilst learning it.
Its at the bottom of my list of things I love to do. its not 
difficult though.  It's quite close to the C# and Vala bindings


Re: We're looking for a Software Developer! (D language)

2017-11-29 Thread aberba via Digitalmars-d-announce

On Thursday, 8 January 2015 at 11:10:09 UTC, Johanna Burgos wrote:

Your Mission




Your Track Record

Degree in Computer Science, or closely-related



It baffles me that recruitment still works using this as a 
requirement. A CS graduate will never know any of these besides 
basic intro to C, C++, html, css,  databases,  and basic 
hardware-software theory... without self learning and practice.


I've never sat in a cs class for a second and I will be bored to 
death learning these stuff in lectures. I learnt them beyond the 
syllables years back on my own at a much quicker pase.


You become experienced and skilled when you're passionate about 
it.  Its how I started from being curious about how software is 
made to a full stack generalist... knowing more stack than the 
above requirements.


You want skills not pedigree.




Re: The final form of the keyboard = ShionKeys

2017-11-11 Thread aberba via Digitalmars-d-announce

On Saturday, 11 November 2017 at 21:02:42 UTC, aberba wrote:

On Friday, 10 November 2017 at 15:06:20 UTC, Shion wrote:

of my project of trying to change the world (ShionKeys),


D will not make software better either.


I mean software written in D will not "change the world" as in a 
better place for everyone either.




Its the people, not a "killer idea".





Re: The final form of the keyboard = ShionKeys

2017-11-11 Thread aberba via Digitalmars-d-announce

On Friday, 10 November 2017 at 15:06:20 UTC, Shion wrote:

of my project of trying to change the world (ShionKeys),


Yet no one ever change the world.

...Just like Advances in tech doesn't kill poverty, advances in 
medicine does minimize death from deseases. If you want to see 
the state of the world, move beyond mainstream media and travel.


Its like "change" usually means worsen the case. Driven by The 
surge to make profit of everything and make billionaires of 
themselves. D will not make software better either.


Its the people, not a "killer idea".


Re: Proposal: Object/?? Destruction

2017-10-04 Thread aberba via Digitalmars-d-announce

On Wednesday, 4 October 2017 at 09:52:39 UTC, aberba wrote:

Upon reading this, It triggered an idea.

On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler 
wrote:

[...]


Upon reading the DIP, it reminds me of object destruction.

// extracts success & message from returned type. Could be 
tuple or structure, etc. May even eliminate use of tuples for 
multiple return


auto {success, message} = callVoldermortFunction();

This is concept is used in Kotlin. JavaScript es6 takes it even 
further (function parameters and arguments support object 
destruction)


Oops. Wrong place. Will repost in general.


Proposal: Object/?? Destruction

2017-10-04 Thread aberba via Digitalmars-d-announce

Upon reading this, It triggered an idea.

On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler 
wrote:

https://wiki.dlang.org/DIP88

I'd like to see DIP88 (Named Parameters) revived.  Was this 
proposal rejected or is it just stale and needs a refresh?  
Named parameters can be implemented in a library, however, in 
my opinion they are useful enough to warrant a clean syntax 
with language support.  I'd be willing to refresh the DIP so 
long as I know the idea has not already been rejected.


Upon reading the DIP, it reminds me of object destruction.

// extracts success & message from returned type. Could be tuple 
or structure, etc. May even eliminate use of tuples for multiple 
return


auto {success, message} = callVoldermortFunction();

This is concept is used in Kotlin. JavaScript es6 takes it even 
further (function parameters and arguments support object 
destruction)


Re: DlangIDE v0.8.0 released

2017-09-29 Thread aberba via Digitalmars-d-announce
On Friday, 29 September 2017 at 07:18:42 UTC, Martin Tschierschke 
wrote:

On Wednesday, 27 September 2017 at 12:34:33 UTC, Dmitry wrote:
On Wednesday, 27 September 2017 at 08:00:21 UTC, Traktor Toni 
wrote:

[...]

The IDE should contain the compiler for convenience

No.


I think that including DMD & Co. into DlangIde is not the right 
approach,
but offering one D-NOW download package including everything 
needed to get started DMD, DUB, IDE etc. seams interesting.

Especially adding a collection of short D examples:
Maybe those from the website homepage + examples D-Lang Tour + 
some of Adams arsd.



So you start one installation and in the end you have a bunch 
of small valuable programs to play around.




Regards mt.


I don't get it. Install dlangide, install DMD (which comes with 
dub). What's the difficulty in this? If you want to debug, asm, 
etc. then you should have enough knowledge such that getting a 
debugger etc. is not a big deal.


Nodejs doesn't have any if that and its core packages are much 
worst than D's (except HTTP). But we use it cus its got packages 
for everything s beginners want to do. code.dlang.org


We wanna get the job done.


Re: DlangIDE v0.8.0 released

2017-09-28 Thread aberba via Digitalmars-d-announce
On Thursday, 28 September 2017 at 11:25:35 UTC, Vadim Lopatin 
wrote:
On Thursday, 28 September 2017 at 06:27:03 UTC, Vadim Lopatin 
wrote:

On Wednesday, 27 September 2017 at 15:24:29 UTC, bitwise wrote:
One small thing though - when you use the LCD/BGR style 
fonts, you get a mismatch between the font metrics and bitmap 
size.


Fixed.

Screenshots:

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-dark.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-console-win32.png


Can i use svg icons?


Re: DlangIDE v0.8.0 released

2017-09-28 Thread aberba via Digitalmars-d-announce
On Thursday, 28 September 2017 at 11:25:35 UTC, Vadim Lopatin 
wrote:
On Thursday, 28 September 2017 at 06:27:03 UTC, Vadim Lopatin 
wrote:

On Wednesday, 27 September 2017 at 15:24:29 UTC, bitwise wrote:
One small thing though - when you use the LCD/BGR style 
fonts, you get a mismatch between the font metrics and bitmap 
size.


Fixed.

Screenshots:

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-dark.png

http://buggins.github.io/dlangui/screenshots/screenshot-dlangide-console-win32.png


Does DLangUI support theming of the scrollbar? Paddings & margins?


Re: Latest post in the GC series

2017-09-25 Thread aberba via Digitalmars-d-announce

On Monday, 25 September 2017 at 14:34:20 UTC, Mike Parker wrote:
My fourth post in the GC series is finally live. Titled 'Go 
Your Own Way (Part Two: The Heap)', it continues the topic of 
allocating outside of the GC. The previous post covered stack 
allocations. This one looks at allocating from the non-GC heap. 
I don't talk about classes in either post, as I'm saving that 
for the next installment in the series.


[...]


the blog's syntax highlighter theme is not appealing like the one 
used in official docs.


Re: GitBook about D on embedded ARM Linux

2017-09-01 Thread aberba via Digitalmars-d-announce

On Thursday, 31 August 2017 at 14:43:22 UTC, thinwybk wrote:
There is no single point of entry to find information about how 
to use D on ARM Linux. I created a small project on GitHub 
https://github.com/fkromer/d-on-embedded-linux-arm which shall 
enable absolute beginners (of embedded Linux and D) to get 
started as fast as possible. The project is in sync with a 
GitBook page 
https://fkromer.gitbooks.io/d-on-embedded-linux-arm/content/. 
The BeagleBone Black https://beagleboard.org/black is used as 
exemplary development board (a lot of information and tutorials 
available e.g. here http://exploringbeaglebone.com/, board 
hardware is extensible easily and in a modular manner with 
"capes" https://beagleboard.org/cape 
http://elinux.org/Beagleboard:BeagleBone_Capes).


That's interesting. Might do some DIY robotics in future.



Re: Released vibe.d 0.8.1

2017-08-31 Thread aberba via Digitalmars-d-announce
On Wednesday, 30 August 2017 at 16:53:40 UTC, Matthias Klumpp 
wrote:
On Wednesday, 30 August 2017 at 07:47:53 UTC, Sönke Ludwig 
wrote:
Apart from removing the old vibe-d:diet package in favor of 
diet-ng, this release most notably contains a number of 
performance improvements in the HTTP server, as well as 
improvements and fixes in the WebSocket code. Furthermore, 
initial OpenSSL 1.1.x support has been added and a few @safe 
related issues introduced in 0.8.0 have been fixed.


Change log:
https://vibed.org/blog/posts/vibe-release-0.8.1

DUB package:
https://code.dlang.org/packages/vibe-d/0.8.1


Debian packages are on their way too :-) (pending approval from 
our archive masters). Granted, this is most useful for 
Vibe.d-using software that wants to be in Debian.


Now, the only thing I am missing in Vibe is a good interface to 
PostgreSQL, because in some circumstances MongoDB is just a 
very bad choice.
(Postgres even outperforms it in my testcase, and PG supports 
JSON/BSON as well now).

DPQ2[1] looks very promising though :-)

Thank you for making Vibe.d!

[1]: https://github.com/denizzzka/dpq2


Even with mysql (using mysql-native), the absent of something like

struct User {
@optional int userName; //its ok if row doesn't have this 
column

@as("phone_number") string phoneNumber;

}

User[] users;

foreach(row; ...)
{
users ~= row.toStruct!User;
}



MongoDB has facilities for these stuff automatically thats why 
using it seem convenient and speeds up stuff. Mysql-lited does 
this thing but the package does allow much control nor give much 
query info like mysql-native.



I've heard good news about postgresql however, its driver could 
still benefit from this kind of abstraction using CTFE and UDAs.


Re: DlangUI v0.7.60 released

2017-08-31 Thread aberba via Digitalmars-d-announce

On Thursday, 31 August 2017 at 02:41:08 UTC, Domain wrote:
On Wednesday, 30 August 2017 at 07:44:54 UTC, Vadim Lopatin 
wrote:
There are a lot of improvements in DlangIDE since last 
announcement.


[...]


Is there any themes to download? It's a bit ugly in windows


Ive been planning to create a new theme but stuff got in my way. 
Its still among my bazillion  plans though.


Re: Open Methods: From C++ to D

2017-08-31 Thread aberba via Digitalmars-d-announce

On Thursday, 31 August 2017 at 10:30:38 UTC, Atila Neves wrote:
On Wednesday, 30 August 2017 at 04:48:11 UTC, Arun 
Chandrasekaran wrote:
On Tuesday, 29 August 2017 at 12:45:50 UTC, Jean-Louis Leroy 
wrote:

On Tuesday, 29 August 2017 at 12:09:01 UTC, Mark wrote:

Nice. This does seem superior to the visitor pattern.


Here is another example - AST traversal: 
https://github.com/jll63/openmethods.d/blob/master/examples/acceptnovisitors/source/app.d


Thanks for this library. Just a suggestion. Would it possible 
to use `@openmethod` instead of `@method`?


alias openmethod = method;

Atila


What happens when there is UDA name collision? if its 
catastrophic, then @openmethods makes it unique.


Re: DIP 1011-extern(delegate)--Formal Review Begins

2017-08-11 Thread aberba via Digitalmars-d-announce

On Friday, 11 August 2017 at 10:46:43 UTC, Mike Parker wrote:
The formal review feedback period for DIP 1011, 
'extern(delegate)', is now underway.


http://forum.dlang.org/post/eriumcjifxcbdvtya...@forum.dlang.org


After reading the whole proposal with fresh mind, I wonder how 
often will extern(delegate) be needed in real-world usage? 
(!YAGNI ?)


(Often is not the sole determinant of relevance though)


Re: Beta D 2.075.1

2017-08-11 Thread aberba via Digitalmars-d-announce

On Thursday, 10 August 2017 at 20:18:50 UTC, Walter Bright wrote:

On 8/8/2017 1:32 PM, Martin Nowak wrote:
On Tuesday, 8 August 2017 at 15:45:45 UTC, Vladimir Panteleev 
wrote:

On Tuesday, 8 August 2017 at 14:57:58 UTC, Daniel Kozak wrote:

https://issues.dlang.org/show_bug.cgi?id=17731


Thanks. I've submitted a fix.


Thanks, considering 
https://issues.dlang.org/show_bug.cgi?id=17569 I'd still say 
we should evaluate whether we want to continue maintaining and 
shipping a tool with unclear usefulness and userbase.


Just rename it to dmanual.


I've been wondering what dman was. I though it literally D Man. 
dmanual is the obvious name it should have.


Re: dlang-requetst: openssl 1.1 compatible release

2017-08-03 Thread aberba via Digitalmars-d-announce

On Thursday, 3 August 2017 at 10:02:24 UTC, Temtaime wrote:

On Thursday, 3 August 2017 at 09:57:11 UTC, Suliman wrote:

On Thursday, 3 August 2017 at 06:33:38 UTC, ikod wrote:

Hello,

Since version 0.5.0 dlang-requests has become compatible with 
both 1.0.x and 1.1.x versions of openssl library.


Please try and report any issues on github.
Thanks!

dlang-requests is HTTP/FTP client library, inspired by 
python-requests with goals:


small memory footprint
performance
simple, high level API
native D implementation

https://code.dlang.org/packages/requests
https://github.com/ikod/dlang-requests


Vote for including it in Phobos instead curl!


Curl is well-tested and has a great number of features.


So the assumption is that curl has been there since forever, so 
its well tested. Anything new cannot be stable enough for 
everyday use?


If there's anything keeping dlang-requests from been integrated 
into Phobos (or a derivative), then lets report it as a bug...cus 
curl is not convenient to use without some abstraction layer.



HTTP is the most used protocol for everything. JavaScript is the 
most used language and pretty much everything done with 
JavaScript has HTTP involved.


Re: Update to Bare Metal STM32F4 (ARM Cortex-M4) LCD Demo Proof of Concept

2017-07-21 Thread aberba via Digitalmars-d-announce

On Friday, 21 July 2017 at 07:40:20 UTC, Andrea Fontana wrote:

On Thursday, 20 July 2017 at 12:23:31 UTC, Mike wrote:
A few years ago I created a bare metal demo on an ARM 
Cortex-M4 microcontroller entirely in D.  It was just a 
demonstration that one could do bare metal programming for 
microcontrollers in D without any dependencies on C or 
assembly.  It was also a proof of some ideas I had about 
leveraging compile-time features of D to generate 
highly-optimized code (both small and fast) for these resource 
constrained systems.  I hit a wall, however, with Issue 
14758[0], and ultimately abandoned D for other alternatives.


It has a lot of potential. I always hope that someone will 
start a 3d Printer firmware written in D for a 32bit 
microcontroller.


Can't wait to see that day


Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-14 Thread aberba via Digitalmars-d-announce

On Thursday, 13 July 2017 at 05:18:40 UTC, wigy wrote:

On Wednesday, 12 July 2017 at 20:11:06 UTC, Vitor Rozsas wrote:

So... suggestions... Centralized? Decentralized?

I think the centralized wouldn't fit in any country. It would 
certainly contain pedophile posts... and any sane country 
would shut down the servers immediately...


So... DEcentralized?


Hi! I do not think the debate you have with yourself is 
decentralized vs centralized. You are thinking about moderated 
vs unmoderated. One is a technical structure, the other is a 
social one.


We got used to have moderated channels in media and unmoderated 
channels in person. Now the problem we are facing is that we 
use these social media platforms for replacing "in person" 
communications with friend and family. And the owners of these 
platforms are still treating it as "media" that they should 
moderate.


But this is not so black-and-white still. When i am talking to 
my mother-in-law who has different political biases than me, I 
moderate *myself* not to bring up topics that would just divide 
us, because I love her enough to tolerate her opinions. What 
happens is that we have many social circles in which we have 
different topics and ethical norms. This is in our nature and 
that is fine. Football fans ventilate their emotions at the 
game, but they would not use the same language in their 
workplace.


So what I see is that a social media platform should be 
decentralized to avoid influence from its owner. It should be 
divided into many communities. And each community should be 
able to downvote content that is not tolerated in those 
circles. And downvoted content should be also available by 
others, it should just take more actions to peek into that and 
convince yourself that it was indeed something inapt for that 
community.


In the digital world, everything seems to be black and white. 
But social behaviors are more subtle than that. It is easy to 
create a total dictatorial system like facebook, and it is also 
easy to create a total anarchist system like Silk Road. And our 
goal is to create a system that is similar to in-real-life 
communication, which is neither completely free, nor completely 
controlled.


You cannot build that system on top of a centralized 
architecture where a government can just ask for all data 
including a order to keep that secret. People never trusted 
their inner thoughts or family conversation onto the 
government. And they should not.


This answer is brilliant...it comes out of understanding...deep 
thinking


Now...personally I don't think this social media platform 
potential hype will last. Very soon it will get out of hand. It 
means Facebook, etc. that doesn't offer any quantifiable needed 
value will die if they don't innovate out of the social media 
realm. Presure from governments and users needs will facilitate 
the death of the social media market.


But one thing is certain. Security is becoming a problem. Monies 
are becoming digital. There is a rising need for securing digital 
value without sacrificing convenience.


Our systems today are not designed for that. Sooner or later 
those patches we are making to our systems temporary will get 
exhusted.


Its either an innovative use of blockchain-like systems or a 
secure-from-scratch sandboxing system.


Blockchain seem interesting for D.


Re: Release candidates vibe.d 0.8.0-rc.1 and vibe-core 1.0.0-rc.1

2017-06-22 Thread aberba via Digitalmars-d-announce

On Thursday, 22 June 2017 at 08:55:06 UTC, Sönke Ludwig wrote:
After a last minute path type redesign, the state of the new 
vibe-core package now finally feels ready for the first 
official release. The library is in a pretty good shape, with 
the notable exception that sockets are not yet implemented on 
Windows in the new eventcore abstraction layer. This will be 
tackled ASAP, but is independent from vibe-core itself in terms 
of code dependencies.


[...]


Thw Websocket api seem a little low-level (unclear) compared to 
the feel of http server. I'm not sure if its on purpose or could 
use some future api design/abstraction.


Vibe.d is really great.


Re: Prettify and Resync are now open source too

2017-05-19 Thread aberba via Digitalmars-d-announce

On Friday, 19 May 2017 at 16:22:36 UTC, Ecstatic Coder wrote:
I have released a few other tools on Github under the GNU GPL, 
including :


* Resync : a local folder synchronizer.
* Prettify : a source code prettifier for D and other languages.

https://github.com/senselogic

I don't know if some of you will be interested in them, but 
here they are...


Remote folder sync will be awesome for code back up


Re: D support for the Meson build system

2017-04-07 Thread aberba via Digitalmars-d-announce

On Sunday, 21 August 2016 at 19:08:59 UTC, Matthias Klumpp wrote:

Hi!
Last week I was at this year's GUADEC conference and listened 
to a very interesting talk on the Meson build system[2] which 
is designed for very fast builds and as a much more modern 
replacement for Automake with a simple syntax.
In the past few days I added support for D (all three major 
compilers) to the Meson build system, with some great results-


[...]


Seems like good news for us developing Linux apps.


Re: D IDE Coedit - version 3 released.

2017-03-15 Thread aberba via Digitalmars-d-announce

On Monday, 13 March 2017 at 17:43:32 UTC, Basile B. wrote:
Finally, after four betas, the third version of my D IDE [0] is 
available.


The change log for this new version quite important.

Major additions:

- GDB commander, a GDB UI, only under linux.
- Project groups.
- Compiler paths, defines and select several D compilers.

Picked among the other additions:

- support for the DUB scripts (in addition to my runnable 
module system).

- support for DUB SDL projects in read-only mode.
- Halstead metrics for D.

But there is really much more [1].

As usual, I provide binaries for linux and Windows.

[0]: https://github.com/BBasile/Coedit
[1]: https://github.com/BBasile/Coedit/releases/tag/3_gold


Nice work. Good Intellescense is the only missing piece for me. 
Plus UI theme.


Re: Introducing Diskuto - an embeddable comment system

2017-03-15 Thread aberba via Digitalmars-d-announce

On Wednesday, 15 March 2017 at 08:57:53 UTC, Sönke Ludwig wrote:

Improvements implemented by now:

- Authorization and time limit (5min client facing, 15min 
server facing) is now enforced for editing and deleting comments
- The page must be queried first before any action is allowed 
(prevents trivial command line batch "attacks", as well as 
trivial spam automation)
- The main comment form is minimized by default (only the text 
area, single-line height)
- Maximum height of comments limited (will show scroll bars if 
exceeded)

- Temporal boosting limited to hours instead of days
- E-mail and website length limited
- Message contents don't overflow the content area
- Displayed comment count corrected

[...]


The load balancer you were working on. Was it intended to handle 
DDoS attacks and what is the current status.


Re: Introducing Diskuto - an embeddable comment system

2017-03-14 Thread aberba via Digitalmars-d-announce

On Tuesday, 14 March 2017 at 11:17:57 UTC, Sönke Ludwig wrote:
So I was able to reserve the last two days to work on something 
new, and one thing that is currently rather lacking in the 
D/vibe.d web ecosystem is embedded commenting, be it for 
vibe.d's own blog engine [1]/[2] or for the DDOX based standard 
library documentation [3]. So I went ahead and created a little 
comment engine inspired by Disqus and Isso:


[...]


How deep (levels) can it handle sub comments?


Re: D Compiler as Docker Image

2017-02-15 Thread aberba via Digitalmars-d-announce

On Tuesday, 14 February 2017 at 23:24:03 UTC, Stefan wrote:
Want to share the outcome of a vivid discussion today at the 
Munich D Meetup with you.


Installation of a D Compiler is ok-ish. But sometime you don't 
want to install it. Sometimes you want a very clean 
compiler-environment. Sometimes you want to compile your 
projects in the cloud and not on your local PC.


To ease this a bit I drafted Docker Images for the Compilers 
(dmd, ldc, gdc, sdc) [1]. Based on this you have a clean 
compilation environment. And you even could use dub with it. No 
installation anymore.


Want to know how to use it? [2], [3]

The usage examples are in the repo are currently:
 - return code - simplest D program for compilation with dmd, 
ldc, gdc, sdc

 - hello world - simplest D program using phobos
 - all_dmd_versions - simplest D program compiled with all 
available DMD versions

 - dub - simplest dub project
 - building dub - building dub with dub as a complex real world 
use case


Really would appreciate your feedback!

[1] Docker Hub:
https://hub.docker.com/r/dlanguage/

[2] Slides:
https://github.com/d-muc/talks/raw/master/2017_02_14.d_and_the_cloud/D-Compiler-in-Docker.pdf

[3] Github Repo with Examples:
https://github.com/d-muc/docker-compiler-examples


Saw your images and was really happy its always up to date. I 
might build a vibe.d image upon it with some neccesary 
dependencies.


Planning to use it with Deis Workflow(Self hosting PaaS aka Open 
source Heroku: deis.com) with uses k8s and docker under the hood.


Tutorial: Multiple file upload in vibe.d

2017-02-15 Thread aberba via Digitalmars-d-announce

https://aberba.github.io/2017/multiple-file-upload-in-vibe-d/

As a continuation to my previous post where I did a demo on form 
textual data and single file upload.


A mini book for learning computer prgramming in D (complete newbies)

2017-02-12 Thread aberba via Digitalmars-d-announce
Its a work in progress and needs some good formatting and 
language polish. Try it on your kid :)


https://github.com/aberba/learn-coding


Re: Questionnaire

2017-02-11 Thread aberba via Digitalmars-d-announce
On Wednesday, 8 February 2017 at 18:27:57 UTC, Ilya Yaroshenko 
wrote:

1. Why your company uses  D?

  a. D is the best
  b. We like D
  c. I like D and my company allowed me to use D
  d. My head like D
  e. Because marketing reasons
  f. Because my company can be more efficient with D for some 
tasks then with any other system language



A.
My on the way to be legalized personal (dictatorship :) ) 
business is using D and vibed. I'm developing a platform like 
pinterest but different audience (local). I'm in Ghana (West 
Africa) so I bearly know any D coder. It did not use php (the 
short path) for long term performance and clean code base...  D 
is just the right tool for it. I'm more of a practical coder 
(immediate solution) than GC, @safe, betterC advocate.

2. Does your company uses C/C++, Java, Scala, Go, Rust?


Nope. Not interested

3. If yes, what the reasons to do not use D instead?

2. Have you use one of the following Mir projects in production:

  a. https://github.com/libmir/mir
  b. https://github.com/libmir/mir-algorithm
  c. https://github.com/libmir/mir-cpuid
  d. https://github.com/libmir/mir-random
  e. https://github.com/libmir/dcv - D Computer Vision Library
  f. std.experimental.ndslice

3. If Yes, can Mir community use your company's logo in a 
section "Used by" or similar.



Not having need for any of them ATM.
4. Have you use one of the following Tamedia projects in your 
production:


  a. https://github.com/tamediadigital/asdf
  b. https://github.com/tamediadigital/je
  c. https://github.com/tamediadigital/lincount

No. You were maintaining the s3 lib which is now frozen. But 
that's my take. Performance is tomorrow's problem.

5. What D misses to be commercially successful languages?

To me, is not the technical detail but what I can do with it. Its 
libs. Image and video processes, storage apis (minio, s3, swift, 
etc.), db libraries. Real-world everyday problems.
6. Why many topnotch system projects use C programming language 
nowadays?


=

No comment


All my current D project are finished. Probably I will use 
other languages for production this year, Java/Go/whatever. Mir 
libraries are amazing and good quality. If you use them this 
would be a good motivation for us to improve the docs and 
provide regular updates. Plus, it can be enchanted during the 
GSoC 2017.



Lack of An improved and tested s3 compatible api is much the deal 
breaker at the moment for me. Object storage (cloud) is the way 
forward. Docker, k8s, etc. are all the driving forces. S3 being 
the pioneer in object storage has moved most of them to support 
s3 apis (Minio for instance is a driving force for using Go lang 
in containerized storage and computing.).


I rather urge community to focus [some] attention on everyday 
demands. And take them by storm with D. Its not a lang problem 
... JavaScript is top cus its useful (not efficient).


Thanks,
Ilya





Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-06 Thread aberba via Digitalmars-d-announce

On Friday, 3 February 2017 at 13:21:18 UTC, Sönke Ludwig wrote:

Am 03.02.2017 um 10:28 schrieb yazd:

[...]


Keeping the system overloads would break the safety guarantees 
at a relatively deep level and would render the whole effort 
rather useless (this is the case for non-scope callbacks only, 
so if you stumble over a deprecated function with a scope 
callback, then it should be fixed).


[...]


How does vibed comply with 
https://blog.appcanary.com/2017/http-security-headers.html


Re: Snap package for LDC 1.1.0 available to test

2017-02-04 Thread aberba via Digitalmars-d-announce
On Friday, 3 February 2017 at 22:56:33 UTC, Joseph Rushton 
Wakeling wrote:
As of earlier today, a snap package for LDC 1.1.0 has been 
published in the 'edge' channel of the Ubuntu store.


[...]


There is now support for 14.04 too.

Although snaps are marketed by Canonical, I see flatpack to be 
more technically safe a superior. And that's what most free 
software devs commit.


Re: mysql-native: API Refresh RC

2017-02-02 Thread aberba via Digitalmars-d-announce
On Thursday, 2 February 2017 at 08:38:32 UTC, Nick Sabalausky 
wrote:

On 02/02/2017 03:23 AM, Suliman wrote:

[...]


But it does not. I am getting Access Violation instead of the 
exception

if connection credentials is wrong:

Authentication failure: Access denied for user 
'root'@'111.111.111.111'

(using password: YES)

object.Error@(0): Access Violation

0x004436C0 in void database.Database.connect() at
D:\code\CMS\source\database.d(34)
0x00403130 in _Dmain at D:\code\CMS\source\app.d(17)
0x00593C6F in 
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv
0x00593C33 in void rt.dmain2._d_run_main(int, char**, extern 
(C) int

function(char[][])*).runAll()
0x00593B34 in _d_run_main
0x004433CC in main at D:\code\CMS\source\app.d(7)
0x005F0929 in mainCRTStartup
0x769262C4 in BaseThreadInitThunk
0x774D0FD9 in RtlSubscribeWnfStateChangeNotification
0x774D0FA4 in RtlSubscribeWnfStateChangeNotification
Program exited with code 1



Ahh, ok, that's a bug. Will fix.


* Moreover, how do I close a connection or does it auto close?

* Does it support mysql_real_escape_string() like in php? This 
factor-in the db encoding to do he appriate encoding for '/\" ...


Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-01 Thread aberba via Digitalmars-d-announce

On Wednesday, 1 February 2017 at 09:35:02 UTC, Sönke Ludwig wrote:

Am 31.01.2017 um 12:11 schrieb Sönke Ludwig:
The first release of the revamped core module [1] is nearing, 
and along
with that, a compatible vibe.d release (0.8.0). The new core 
module is

still opt-in in this release and can be activated using a
`subConfiguration "vibe-d:core" "vibe-core"` directive in 
dub.sdl
(`"subConfigurations": {"vibe-d:core": "vibe-core"}` in 
dub.json).


Forgot to mention: Due to the way DUB currently handles 
"subConfigurations", an explicit dependency to "vibe-d:core" 
must also be present in the same package recipe, or it will 
silently do nothing. I'll try to improve this for the next 
release.


I don't understand what you mean. Will vibe-d:core be added as s 
dependency?


Re: mysql-native: API Refresh RC

2017-01-30 Thread aberba via Digitalmars-d-announce

On Monday, 30 January 2017 at 08:09:18 UTC, Daniel Kozak wrote:
Wow :) Maybe it is time to go back from mysql-lited to 
mysql-native :)


I doubt that. Mysql-lited has support for using a struct as a 
Schema for DB queries. The @as and @optional properties are so 
useful for project I'm working on.


Unless mysql-native has that.


Re: Tutorial: Form upload in vibe.d

2016-12-10 Thread aberba via Digitalmars-d-announce

On Thursday, 8 December 2016 at 20:48:52 UTC, NVolcz wrote:

On Tuesday, 6 December 2016 at 22:28:04 UTC, aberba wrote:

[...]


Love the article! Please keep writing tutorials like this :-D.

Feedback:
1.
The upload function is (kind of) vulnerable against path 
traversal:
  moveFile(file.tempPath, Path("./public/uploads") ~ 
file.filename);


[...]


Thanks for feedback. Will consider those points raised in 
thought. Will add more advanced stuff and security as time goes 
on.


Re: Tutorial: Form upload in vibe.d

2016-12-08 Thread aberba via Digitalmars-d-announce

On Thursday, 8 December 2016 at 00:44:19 UTC, Sönke Ludwig wrote:

Am 06.12.2016 um 23:28 schrieb aberba:

https://aberba.github.io/2016/form-upload-in-vibe-d/


Nice article, I'll add this to the tutorials section [1]. Two 
additional suggestions:


- It's probably a good idea to mention that 
HTTPServerSettings.maxRequestSize is 2 MiB by default and 
should be increased if larger files are expected


- The last snippet with "static this()" (using "shared static 
this" would be better to avoid issues in multi-threaded 
applications) doesn't contain the /upload route, but it's 
probably better to have it either there or later within the 
text, as it may not be obvious how to register that exactly


[1]: https://vibed.org/tutorials


Done! Thanks for the feedback.


Tutorial: Form upload in vibe.d

2016-12-06 Thread aberba via Digitalmars-d-announce

https://aberba.github.io/2016/form-upload-in-vibe-d/