Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2020-01-17 Thread Newbie2019 via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: Hi all, Recently there have been inquiries about support for D on Alpine Linux, a distribution mostly used in combination with Docker to create lightweight container images for microservices. At BPF Korea, we're working on a

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2020-01-15 Thread Mathias Lang via Digitalmars-d-announce
On Wednesday, 15 January 2020 at 11:48:29 UTC, kinke wrote: On Wednesday, 15 January 2020 at 04:00:26 UTC, Mathias Lang wrote: The LDC package is not going to be cross-architecture in the near future, but it should be able to correctly cross-compile once LDC a version matching 2.090.1 is

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2020-01-15 Thread aberba via Digitalmars-d-announce
On Wednesday, 15 January 2020 at 04:00:26 UTC, Mathias Lang wrote: On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: [...] Time for an update! The GDC PR have been merged, and followed by another large fix to make it work on most architectures. So if you use Alpine edge, you

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2020-01-15 Thread kinke via Digitalmars-d-announce
On Wednesday, 15 January 2020 at 04:00:26 UTC, Mathias Lang wrote: The LDC package is not going to be cross-architecture in the near future, but it should be able to correctly cross-compile once LDC a version matching 2.090.1 is released (most likely LDC 1.20.0). What's the reason for that

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2020-01-15 Thread aberba via Digitalmars-d-announce
On Wednesday, 15 January 2020 at 11:46:21 UTC, aberba wrote: On Wednesday, 15 January 2020 at 04:00:26 UTC, Mathias Lang wrote: On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: [...] Time for an update! The GDC PR have been merged, and followed by another large fix to make

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2020-01-14 Thread Mathias Lang via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: What's next ? 1) There is a pending PR (https://github.com/alpinelinux/aports/pull/12006) to have GDC working on all architectures alpine supports, not just x86_64. 2) Adding a package for gdmd 3) Rebuild packages based on GDC,

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-25 Thread Mathias Lang via Digitalmars-d-announce
On Wednesday, 13 November 2019 at 12:27:52 UTC, user wrote: On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: ``` apk --no-cache add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing ldc ldc-static dtools-rdmd dub ``` A hello world vibe project doesn't build for me using

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-13 Thread user via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: ``` apk --no-cache add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing ldc ldc-static dtools-rdmd dub ``` A hello world vibe project doesn't build for me using a Dockerfile using your template. I tried to add missing

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-06 Thread Jacob Carlborg via Digitalmars-d-announce
On 2019-11-06 02:02, sarn wrote: And the neat way to do that is with a multi-stage build: one Dockerfile, with an Alpine container building the binary, then copying to a FROM scratch container I've used the "smith" tool as well [1]. It has some additonal help with dynamically linked code.

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread sarn via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 12:20:04 UTC, Jacob Carlborg wrote: On Tuesday, 5 November 2019 at 11:49:20 UTC, Daniel Kozak wrote: Generally no, because Apline use musl libc instead of glibc, so there are some issues with that The correct way is to use static linking and putting only the

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Guillaume Piolat via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: At BPF Korea, we're working on a blockchain written in D Hello, Sorry if this has been said already: would you consider being listed in https://dlang.org/orgs-using-d.html? Thanks

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Sönke Ludwig via Digitalmars-d-announce
Am 05.11.2019 um 10:48 schrieb Petar Kirov [ZombineDev]: On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: [..] That's great news! Thanks a lot for your hard work! # Note: This will redownload your dependencies every time, which doesn't play well with docker I have been

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Jacob Carlborg via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 11:49:20 UTC, Daniel Kozak wrote: Generally no, because Apline use musl libc instead of glibc, so there are some issues with that The correct way is to use static linking and putting only the binary in a Docker image, i.e. "from scratch" [1] ;). But using

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Daniel Kozak via Digitalmars-d-announce
On Tue, Nov 5, 2019 at 12:05 PM Dejan Lekic via Digitalmars-d-announce wrote: > > On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: > > Hi all, > > Recently there have been inquiries about support for D on > > Alpine Linux, a distribution mostly used in combination with > > Docker

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Dejan Lekic via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: Hi all, Recently there have been inquiries about support for D on Alpine Linux, a distribution mostly used in combination with Docker to create lightweight container images for microservices. At BPF Korea, we're working on a

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread Petar via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: [..] That's great news! Thanks a lot for your hard work! # Note: This will redownload your dependencies every time, which doesn't play well with docker I have been meaning to add a docker and CI friendly command to dub that

Re: D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-05 Thread aliak via Digitalmars-d-announce
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote: Hi all, Recently there have been inquiries about support for D on Alpine Linux, a distribution mostly used in combination with Docker to create lightweight container images for microservices. [...] This is great! Much thanks

D for microservices: ldc, rdmd, dub now available on Alpine x86_64

2019-11-04 Thread Mathias Lang via Digitalmars-d-announce
Hi all, Recently there have been inquiries about support for D on Alpine Linux, a distribution mostly used in combination with Docker to create lightweight container images for microservices. At BPF Korea, we're working on a blockchain written in D, and wanted to be able to easily test and

Re: D for microservices

2018-05-05 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/23/2017 06:02 PM, Adam Wilson wrote: On 10/23/17 05:08, Jacob Carlborg wrote: * Database drivers for the common databases (PostgreSQL, MySQL, SQLite) compatible with vibe.d * Database driver abstraction on top of the above drivers, perhaps some lightweight ORM library I've been looking

Re: D for microservices

2018-05-05 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/05/2018 02:30 PM, Nick Sabalausky (Abscissa) wrote: On 10/23/2017 06:02 PM, Adam Wilson wrote: On 10/23/17 05:08, Jacob Carlborg wrote: * Database drivers for the common databases (PostgreSQL, MySQL, SQLite) compatible with vibe.d * Database driver abstraction on top of the above

Re: D for microservices

2018-05-05 Thread Joakim via Digitalmars-d
, as I don't use Alpine, containers, or microservices. I simply chipped in because I have porting experience and thought I could push D for microservices a bit farther along. I'll keep putting out official builds of ldc for Alpine though, as long as there's demand for them. If you'd like to use D

Re: D for microservices

2018-03-11 Thread Jacob Carlborg via Digitalmars-d
On 2018-03-11 12:10, Tamas wrote: Simple Vibe.d app talking to Redis, packed into docker containers: https://github.com/tam4s/hello-redis The takeaway is that I could not use Alpine as a host image, because I could not build the app statically on ubuntu. warning: Using 'dlopen' in

Re: D for microservices

2018-03-11 Thread Tamas via Digitalmars-d
On Thursday, 8 March 2018 at 22:53:11 UTC, aberba wrote: On Thursday, 8 March 2018 at 09:35:08 UTC, Andrew Benton wrote: On Thursday, 8 March 2018 at 07:54:29 UTC, Jacob Carlborg wrote: On Thursday, 8 March 2018 at 07:20:53 UTC, Radu wrote: This guys says that vide.d works

Re: D for microservices

2018-03-08 Thread aberba via Digitalmars-d
On Thursday, 8 March 2018 at 09:35:08 UTC, Andrew Benton wrote: On Thursday, 8 March 2018 at 07:54:29 UTC, Jacob Carlborg wrote: On Thursday, 8 March 2018 at 07:20:53 UTC, Radu wrote: This guys says that vide.d works https://forum.dlang.org/thread/gikoeutmdyvolfshp...@forum.dlang.org Yes,

Re: D for microservices

2018-03-08 Thread Radu via Digitalmars-d
On Thursday, 8 March 2018 at 09:28:02 UTC, Andrew Benton wrote: On Thursday, 8 March 2018 at 08:07:23 UTC, Joakim wrote: [...] I built out LDC on Alpine using the v1.8.0 LDC release. It's available now through Docker Hub and Github. Docker:

Re: D for microservices

2018-03-08 Thread Andrew Benton via Digitalmars-d
On Thursday, 8 March 2018 at 07:54:29 UTC, Jacob Carlborg wrote: On Thursday, 8 March 2018 at 07:20:53 UTC, Radu wrote: This guys says that vide.d works https://forum.dlang.org/thread/gikoeutmdyvolfshp...@forum.dlang.org Yes, it's pretty straightforward: 1. Build on Ubuntu, or some other

Re: D for microservices

2018-03-08 Thread Andrew Benton via Digitalmars-d
On Thursday, 8 March 2018 at 08:07:23 UTC, Joakim wrote: On Thursday, 8 March 2018 at 06:49:07 UTC, Andrew Benton wrote: On Monday, 5 March 2018 at 17:58:25 UTC, Joakim wrote: [snip] What is the exact error? Maybe report it here: https://github.com/lindt/docker-dmd/issues/1 I built out LDC

Re: D for microservices

2018-03-08 Thread Andrew Benton via Digitalmars-d
On Thursday, 8 March 2018 at 07:20:53 UTC, Radu wrote: On Thursday, 8 March 2018 at 06:49:07 UTC, Andrew Benton wrote: On Monday, 5 March 2018 at 17:58:25 UTC, Joakim wrote: [snip] This guys says that vide.d works https://forum.dlang.org/thread/gikoeutmdyvolfshp...@forum.dlang.org

Re: D for microservices

2018-03-08 Thread Joakim via Digitalmars-d
relevant to the status of D for microservices. Bad news: not being able to build vibe.d is a pretty big hit for this objective. Good news: there are other libraries we can try and we know how to fix this problem. What is the exact error? Maybe report it here: https://github.com/lindt/docker-dmd

Re: D for microservices

2018-03-07 Thread Jacob Carlborg via Digitalmars-d
On Thursday, 8 March 2018 at 07:20:53 UTC, Radu wrote: This guys says that vide.d works https://forum.dlang.org/thread/gikoeutmdyvolfshp...@forum.dlang.org Yes, it's pretty straightforward: 1. Build on Ubuntu, or some other dist 2. Statically link the whole binary with LDC, then you don't

Re: D for microservices

2018-03-07 Thread Radu via Digitalmars-d
relevant to the status of D for microservices. Bad news: not being able to build vibe.d is a pretty big hit for this objective. Good news: there are other libraries we can try and we know how to fix this problem. This guys says that vide.d works https://forum.dlang.org/thread/gikoeutmdyvolfshp

Re: D for microservices

2018-03-07 Thread Andrew Benton via Digitalmars-d
to some of the networking dependencies in druntime core, e.g. `core.sys.linux.netinet.in_`. I realize that's something that you can't really prevent as the packager, but it's still relevant to the status of D for microservices. Bad news: not being able to build vibe.d is a pretty big hit

Re: D for microservices

2018-03-06 Thread aberba via Digitalmars-d
On Monday, 5 March 2018 at 17:58:25 UTC, Joakim wrote: On Monday, 5 March 2018 at 14:34:44 UTC, aberba wrote: On Sunday, 25 February 2018 at 22:12:38 UTC, Joakim wrote: On Sunday, 25 February 2018 at 16:51:09 UTC, yawniek wrote: [...] I don't know, presumably you're referring to the static

Re: D for microservices

2018-03-05 Thread Joakim via Digitalmars-d
On Monday, 5 March 2018 at 14:34:44 UTC, aberba wrote: On Sunday, 25 February 2018 at 22:12:38 UTC, Joakim wrote: On Sunday, 25 February 2018 at 16:51:09 UTC, yawniek wrote: great stuff, thank you! this will be very useful! Q: what would be needed to build a single binary (a la golang) that

Re: D for microservices

2018-03-05 Thread aberba via Digitalmars-d
On Sunday, 25 February 2018 at 22:12:38 UTC, Joakim wrote: On Sunday, 25 February 2018 at 16:51:09 UTC, yawniek wrote: great stuff, thank you! this will be very useful! Q: what would be needed to build a single binary (a la golang) that works in a FROM SCRATCH docker container? I don't

Re: D for microservices

2018-03-01 Thread Jacob Carlborg via Digitalmars-d
On 2018-02-25 17:51, yawniek wrote: Q: what would be needed to build a single binary (a la golang) that works in a FROM SCRATCH docker container? Build a completely statically linked binary by compiling using LDC and add the "-static" flag. -- /Jacob Carlborg

Re: D for microservices

2018-02-25 Thread Joakim via Digitalmars-d
On Sunday, 25 February 2018 at 16:51:09 UTC, yawniek wrote: great stuff, thank you! this will be very useful! Q: what would be needed to build a single binary (a la golang) that works in a FROM SCRATCH docker container? I don't know, presumably you're referring to the static linking support

Re: D for microservices

2018-02-25 Thread aberba via Digitalmars-d
On Saturday, 24 February 2018 at 10:03:07 UTC, Joakim wrote: On Thursday, 22 February 2018 at 21:59:27 UTC, aberba wrote: On Thursday, 22 February 2018 at 08:54:04 UTC, Joakim wrote: [...] That makes me very happy!! Very much appreciated. I've updated ldc master to use Yuxuan's druntime

Re: D for microservices

2018-02-25 Thread yawniek via Digitalmars-d
On Saturday, 24 February 2018 at 10:03:07 UTC, Joakim wrote: I've updated ldc master to use Yuxuan's druntime port, which means the upcoming ldc 1.8 release will likely be a viable Alpine/Musl cross-compiler out of the box, provided you give it a C/Musl cross-compiler/linker to work with, by

Re: D for microservices

2018-02-24 Thread Joakim via Digitalmars-d
On Thursday, 22 February 2018 at 21:59:27 UTC, aberba wrote: On Thursday, 22 February 2018 at 08:54:04 UTC, Joakim wrote: On Monday, 23 October 2017 at 18:18:28 UTC, Jacob Carlborg wrote: [...] Yuxuan Shui has ported druntime to Musl over the last couple months:

Re: D for microservices

2018-02-23 Thread Jacob Carlborg via Digitalmars-d
On 2018-02-22 09:54, Joakim wrote: Yuxuan Shui has ported druntime to Musl over the last couple months: https://github.com/dlang/druntime/pulls?q=is%3Apr+author%3Ayshui+is%3Aclosed With his changes, all druntime unit tests pass, now only a few asserts tripping in the additional tests for

Re: D for microservices

2018-02-22 Thread aberba via Digitalmars-d
On Thursday, 22 February 2018 at 08:54:04 UTC, Joakim wrote: On Monday, 23 October 2017 at 18:18:28 UTC, Jacob Carlborg wrote: [...] Yuxuan Shui has ported druntime to Musl over the last couple months: https://github.com/dlang/druntime/pulls?q=is%3Apr+author%3Ayshui+is%3Aclosed With his

Re: D for microservices

2018-02-22 Thread rikki cattermole via Digitalmars-d
On 22/02/2018 10:17 PM, Suliman wrote: It would be nice if anyone will rewrite Musl to betterC :) Combine it with dmc's libc and we're starting to get a reasonable state.

Re: D for microservices

2018-02-22 Thread Suliman via Digitalmars-d
It would be nice if anyone will rewrite Musl to betterC :)

Re: D for microservices

2018-02-22 Thread Joakim via Digitalmars-d
On Monday, 23 October 2017 at 18:18:28 UTC, Jacob Carlborg wrote: On 2017-10-23 17:35, Joakim wrote: I'm sure someone could put these together if the above stuff worked. The question is who's interested in volunteering to help put this all together? Yeah, exactly. My plate if already full

Re: D for microservices

2017-10-28 Thread Dmitry Olshansky via Digitalmars-d
On Saturday, 28 October 2017 at 14:55:25 UTC, aberba wrote: On Sunday, 22 October 2017 at 02:48:57 UTC, Joakim wrote: I just read the following two week-old comment on the ldc issue tracker, when someone tried to run D on Alpine linux: "For now everything works(?) but I think the process

Re: D for microservices

2017-10-28 Thread aberba via Digitalmars-d
as I'm not in that field, what can the D devs do to make it as easy as possible to get D microservices up and running, make some Docker and Alpine containers with ldc/dub/vibe.d preinstalled publicly available? What else, what kinds of libraries do you normally use? There several database APIs

Re: D for microservices

2017-10-27 Thread Adam Wilson via Digitalmars-d
On 10/27/17 00:18, Jacob Carlborg wrote: On 2017-10-26 12:25, Adam Wilson wrote: My apologies, something rather the other direction. Instead of forcing compat with vibe.d, going to vibe.d and say: "here is our standard event-loop, it has everything you need, you'll need to use it for all the

Re: D for microservices

2017-10-27 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-26 12:25, Adam Wilson wrote: My apologies, something rather the other direction. Instead of forcing compat with vibe.d, going to vibe.d and say: "here is our standard event-loop, it has everything you need, you'll need to use it for all the other goodness to work". I know others

Re: D for microservices

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 19:19:57 Adam Wilson via Digitalmars-d wrote: > On 10/26/17 17:51, Jonathan M Davis wrote: > > On Thursday, October 26, 2017 03:25:24 Adam Wilson via Digitalmars-d wrote: > >> On 10/25/17 23:57, Jacob Carlborg wrote: > >>> I'm more concerned that I don't think we'll

Re: D for microservices

2017-10-26 Thread Adam Wilson via Digitalmars-d
On 10/26/17 17:51, Jonathan M Davis wrote: On Thursday, October 26, 2017 03:25:24 Adam Wilson via Digitalmars-d wrote: On 10/25/17 23:57, Jacob Carlborg wrote: I'm more concerned that I don't think we'll manage to implement a complete API and 100% bug free at the first try. Depends on how

Re: D for microservices

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Monday, October 23, 2017 12:13:12 Laeeth Isharc via Digitalmars-d wrote: > How can we generate a static binary ? I asked about this before, > and the response was that it's a bad idea because of security > vulns and so on. True if you are running on a conventional Linux > host. But on the

Re: D for microservices

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 03:25:24 Adam Wilson via Digitalmars-d wrote: > On 10/25/17 23:57, Jacob Carlborg wrote: > > I'm more concerned that I don't think we'll manage to implement a > > complete API and 100% bug free at the first try. > > Depends on how one defines first try. Phobos as a

Re: D for microservices

2017-10-26 Thread rikki cattermole via Digitalmars-d
On 26/10/2017 11:25 AM, Adam Wilson wrote: On 10/25/17 23:57, Jacob Carlborg wrote: On 2017-10-26 00:53, Adam Wilson wrote: This of course makes the assumption that we clean-room our own protocol implementations which I am entirely against. Better to use what already exists. I'm entirely

Re: D for microservices

2017-10-26 Thread Adam Wilson via Digitalmars-d
On 10/25/17 23:57, Jacob Carlborg wrote: On 2017-10-26 00:53, Adam Wilson wrote: This of course makes the assumption that we clean-room our own protocol implementations which I am entirely against. Better to use what already exists. I'm entirely against anything that is not compatible with

Re: D for microservices

2017-10-26 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-26 00:53, Adam Wilson wrote: This of course makes the assumption that we clean-room our own protocol implementations which I am entirely against. Better to use what already exists. I'm entirely against anything that is not compatible with vibe.d ;) I actually don't think the slow

Re: D for microservices

2017-10-25 Thread Cym13 via Digitalmars-d
On Monday, 23 October 2017 at 12:13:12 UTC, Laeeth Isharc wrote: ... And on the other hand, for deployment, it's much easier to copy over one binary. (In a sense it's funny that the question was asked in the context of containers, because containers are kind of an alternative to having a

Re: D for microservices

2017-10-25 Thread Adam Wilson via Digitalmars-d
On 10/23/17 23:29, Jacob Carlborg wrote: On 2017-10-24 00:02, Adam Wilson wrote: I've been looking pretty extensively at these two items recently. If the database drivers are compatible with Vibe.d AND we wish to provide a common abstraction layer for them (presumably via Phobos) then order

Re: D for microservices

2017-10-25 Thread Adam Wilson via Digitalmars-d
On 10/23/17 18:51, rikki cattermole wrote: On 23/10/2017 11:02 PM, Adam Wilson wrote: On 10/23/17 05:08, Jacob Carlborg wrote: * Database drivers for the common databases (PostgreSQL, MySQL, SQLite) compatible with vibe.d * Database driver abstraction on top of the above drivers, perhaps some

Re: D for microservices

2017-10-24 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-24 00:02, Adam Wilson wrote: I've been looking pretty extensively at these two items recently. If the database drivers are compatible with Vibe.d AND we wish to provide a common abstraction layer for them (presumably via Phobos) then order for the abstraction layer to aware of the

Re: D for microservices

2017-10-23 Thread rikki cattermole via Digitalmars-d
On 23/10/2017 11:02 PM, Adam Wilson wrote: On 10/23/17 05:08, Jacob Carlborg wrote: * Database drivers for the common databases (PostgreSQL, MySQL, SQLite) compatible with vibe.d * Database driver abstraction on top of the above drivers, perhaps some lightweight ORM library I've been looking

Re: D for microservices

2017-10-23 Thread Adam Wilson via Digitalmars-d
On 10/23/17 05:08, Jacob Carlborg wrote: * Database drivers for the common databases (PostgreSQL, MySQL, SQLite) compatible with vibe.d * Database driver abstraction on top of the above drivers, perhaps some lightweight ORM library I've been looking pretty extensively at these two items

Re: D for microservices

2017-10-23 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-23 14:17, Laeeth Isharc wrote: Can you elaborate on how the TLS implementation needs to be changed? # echo 'void main() {}' > main.d && dmd -c main.d && gcc main.o -o main -m64 -static -L/root/.dvm/compilers/dmd-2.076.1/linux/bin/../lib64 -Xlinker -Bstatic -lphobos2 -lpthread

Re: D for microservices

2017-10-23 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-23 14:13, Laeeth Isharc wrote: How can we generate a static binary ? It's already supported by LDC, using the -static flag. This Linux binary [1] is statically linked. [1] https://github.com/jacob-carlborg/remarkify/releases -- /Jacob Carlborg

Re: D for microservices

2017-10-23 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-23 17:35, Joakim wrote: I'm sure someone could put these together if the above stuff worked. The question is who's interested in volunteering to help put this all together? Yeah, exactly. My plate if already full and all this is lower down on the priority list. -- /Jacob

Re: D for microservices

2017-10-23 Thread Joakim via Digitalmars-d
great way for new programming languages like D to get tried and gain some uptake, but that D might not be that easy to deploy to that scenario yet. So this is a question for those deploying microservices, as I'm not in that field, what can the D devs do to make it as easy as possible to get D mic

Re: D for microservices

2017-10-23 Thread Laeeth Isharc via Digitalmars-d
great way for new programming languages like D to get tried and gain some uptake, but that D might not be that easy to deploy to that scenario yet. So this is a question for those deploying microservices, as I'm not in that field, what can the D devs do to make it as easy as possible to get D mic

Re: D for microservices

2017-10-23 Thread Laeeth Isharc via Digitalmars-d
e D to get tried and gain some uptake, but that D might not be that easy to deploy to that scenario yet. So this is a question for those deploying microservices, as I'm not in that field, what can the D devs do to make it as easy as possible to get D microservices up and running, make some Docker

Re: D for microservices

2017-10-23 Thread Jacob Carlborg via Digitalmars-d
ome uptake, but that D might not be that easy to deploy to that scenario yet. So this is a question for those deploying microservices, as I'm not in that field, what can the D devs do to make it as easy as possible to get D microservices up and running, make some Docker and Alpine containers wi

Re: D for microservices

2017-10-22 Thread Mengu via Digitalmars-d
On Sunday, 22 October 2017 at 02:48:57 UTC, Joakim wrote: I just read the following two week-old comment on the ldc issue tracker, when someone tried to run D on Alpine linux: [...] rock solid, easy, common-dev-proof, huge std lib. like that of golang.

Re: D for microservices

2017-10-22 Thread qznc via Digitalmars-d
On Sunday, 22 October 2017 at 02:48:57 UTC, Joakim wrote: This is a niche that D and all newer languages should target. How do we do it? Optimize the TechEmpower benchmark? Vibe.d looks quite weak there. https://www.techempower.com/benchmarks/

Re: D for microservices

2017-10-22 Thread Dmitry Olshansky via Digitalmars-d
On Sunday, 22 October 2017 at 02:48:57 UTC, Joakim wrote: I just read the following two week-old comment on the ldc issue tracker, when someone tried to run D on Alpine linux: [...] Rather a container with dub/ldc configured to compile with musl libc I think. What else, what kinds of

D for microservices

2017-10-21 Thread Joakim via Digitalmars-d
that easy to deploy to that scenario yet. So this is a question for those deploying microservices, as I'm not in that field, what can the D devs do to make it as easy as possible to get D microservices up and running, make some Docker and Alpine containers with ldc/dub/vibe.d preinstalle

Re: D and microservices

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 03:12:03 UTC, Martin Nowak wrote: We might be able to reuse the existing delegate capture mechanism to create continuations. Then await would "simply" rewrite the rest of the body as delegate, similar to how the foreach body can be transformed into a delegate.

Re: D and microservices

2015-10-08 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 7 October 2015 at 10:50:47 UTC, Russel Winder wrote: On Tue, 2015-10-06 at 18:56 +, Dicebot via Digitalmars-d wrote: On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: > Has anyone got a small example of microservices using D, > with Vibe.d or otherwise,

Re: D and microservices

2015-10-08 Thread Joakim via Digitalmars-d
On Thursday, 8 October 2015 at 06:43:24 UTC, Laeeth Isharc wrote: In any case, we have now inconceivable amounts of computing power on tap for very affordable prices and the tools to manage it. When a little instance is 0.7 cents an hour, and a usable one is 1.5 cents and you can scale up and

Re: D and microservices

2015-10-08 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 7 October 2015 at 10:39:07 UTC, Russel Winder wrote: On Tue, 2015-10-06 at 15:07 -0400, Nick Sabalausky via (Kinda like how "cloud" sounds like a big fancy new revolution until you realize it's just the hip new word for "internet" or "hosted". Yes - technically it is nothing

Re: D and microservices

2015-10-07 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 7 October 2015 at 17:31:12 UTC, Atila Neves wrote: My "Go vs D vs C vs Erlang" MQTT shootout was based on a colleague claiming that Go would win because concurrency is its thing. I called his bluff since despite Go having a (AFAIK) very good scheduler, I didn't see how vibe.d

Re: D and microservices

2015-10-07 Thread extrawurst via Digitalmars-d
On Tuesday, 6 October 2015 at 17:54:48 UTC, Russel Winder wrote: On Tue, 2015-10-06 at 16:21 +, Dejan Lekic via Digitalmars-d wrote: On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: > [...] As far as I know, there is no implementation of microservices as we see in the

Re: D and microservices

2015-10-07 Thread Mengu via Digitalmars-d
On Tuesday, 6 October 2015 at 23:01:43 UTC, Laeeth Isharc wrote: On Tuesday, 6 October 2015 at 19:31:20 UTC, Mengu wrote: a half of it is the buzz and other half of is not. remember people talking about reactjs, go and rails being buzz? they were the same. we have built an online payment

Re: D and microservices

2015-10-07 Thread Martin Nowak via Digitalmars-d
On Wednesday, 7 October 2015 at 19:58:55 UTC, Ola Fosheim Grøstad wrote: If C++17 does stackless coroutines right then it probably will surpass both Go and D in terms of memory locality, initialization performance and memory usage; and therefore throughput as well. We might be able to reuse

Re: D and microservices

2015-10-07 Thread Russel Winder via Digitalmars-d
On Tue, 2015-10-06 at 15:07 -0400, Nick Sabalausky via Digitalmars-d wrote: > […] > > Felt stupid for not being hip to this "microservices" thing you say, > so > just looked it up. But it sounds to me like it's basically just a > buzz-driven rediscovery of the basic principles of proper >

Re: D and microservices

2015-10-07 Thread Russel Winder via Digitalmars-d
On Wed, 2015-10-07 at 07:15 +, extrawurst via Digitalmars-d wrote: > […] > > I have never used Go, but isn't what you describe exactly what > vibe.d is doing using Fibers ? As I understand it, vibe.d is a single threaded event-loop with fibres. In this sense it is equivalent in architecture

Re: D and microservices

2015-10-07 Thread Joakim via Digitalmars-d
On Tuesday, 6 October 2015 at 19:07:32 UTC, Nick Sabalausky wrote: Felt stupid for not being hip to this "microservices" thing you say, so just looked it up. But it sounds to me like it's basically just a buzz-driven rediscovery of the basic principles of proper encapsulation and Unix

Re: D and microservices

2015-10-07 Thread Dicebot via Digitalmars-d
On Wednesday, 7 October 2015 at 10:50:47 UTC, Russel Winder wrote: What do you mean by microservice examples? It is infrastructure methodology, not specific code thing, any simple network service can be viewed as microservice. At the Web services application level it is having a small

Re: D and microservices

2015-10-07 Thread Russel Winder via Digitalmars-d
On Tue, 2015-10-06 at 18:56 +, Dicebot via Digitalmars-d wrote: > On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: > > Has anyone got a small example of microservices using D, with > > Vibe.d or otherwise, that I can make use of? I need some > &

Re: D and microservices

2015-10-07 Thread Atila Neves via Digitalmars-d
On Wednesday, 7 October 2015 at 10:48:02 UTC, Russel Winder wrote: On Wed, 2015-10-07 at 07:15 +, extrawurst via Digitalmars-d wrote: […] I have never used Go, but isn't what you describe exactly what vibe.d is doing using Fibers ? As I understand it, vibe.d is a single threaded

Re: D and microservices

2015-10-06 Thread Russel Winder via Digitalmars-d
On Tue, 2015-10-06 at 16:21 +, Dejan Lekic via Digitalmars-d wrote: > On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: > > Has anyone got a small example of microservices using D, with > > Vibe.d or otherwise, that I can make use of? I need some > &

Re: D and microservices

2015-10-06 Thread Dicebot via Digitalmars-d
On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. What do you mean by microservice examples

Re: D and microservices

2015-10-06 Thread Nick Sabalausky via Digitalmars-d
On 10/06/2015 01:54 PM, Russel Winder via Digitalmars-d wrote: On Tue, 2015-10-06 at 16:21 +, Dejan Lekic via Digitalmars-d wrote: On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can

Re: D and microservices

2015-10-06 Thread Mengu via Digitalmars-d
example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. As far as I know, there is no implementation of microservices as we see in the Java world. IMHO, D community should come up with a good

Re: D and microservices

2015-10-06 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. on your email, in case it fits. nanomsg

Re: D and microservices

2015-10-06 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 6 October 2015 at 19:31:20 UTC, Mengu wrote: a half of it is the buzz and other half of is not. remember people talking about reactjs, go and rails being buzz? they were the same. we have built an online payment gateway and we are about to decouple our application and switch to

D and microservices

2015-10-06 Thread Russel Winder via Digitalmars-d
Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. -- Russel. = Dr Russel Winder t:+44

Re: D and microservices

2015-10-06 Thread Dejan Lekic via Digitalmars-d
On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: Has anyone got a small example of microservices using D, with Vibe.d or otherwise, that I can make use of? I need some examples of small microservices for a session at μCon 2015. As far as I know, there is no implementation