Re: IAP Tools for D
On Sunday, 20 December 2015 at 21:37:35 UTC, Jakob Jenkov wrote: The designers of HTTP would strongly argue that is a major thing HTTP got right, and is the feature primarily responsible for it huge success. Then why is HTTP 2 moving away from it? And Web Sockets? Clearly, having the choice between keeping state and not keeping state is preferable to HTTP taking that choice away from you. Lots of apps also spend quite an effort to mimic stateful communication on top of HTTP. Sessions? Authentication tokens? Cookies? Caching in the browser? HTML5 Local Storage? No, HTTP did not get "stateless" right. Yep, the whole stateless argument is a complete joke, it has not been true except maybe in the very beginning. HTTP 2 is a huge step forward for this, its binary encoding, and other reasons. Your "fix-the-network" problem is definitely valid. At this point we have mostly focused on ION - the binary object / message format for IAP. However, we have a pretty good idea about how IAP will work on a conceptual level. IAP will have a set of "semantic protocols". Each semantic protocol can address its own area of concern. File exchange, time, RPC, distributed transactions, P2P, streaming etc. You can also define your own semantic protocol to address exactly your specific situation (e.g. the Byzantine Generals Problem - distributed consensus). Everything is not yet in place - but we will get there step by step. Interesting effort, I'll check it out.
Packt ebooks are currently $5.00
All Packt ebooks are currently only $5.00, including pre-order of D Web Development, Learning D, and D Cookbook. https://www.packtpub.com/web-development/d-web-development https://www.packtpub.com/application-development/learning-d https://www.packtpub.com/application-development/d-cookbook
Re: iz - it's so easy
On Monday, 21 December 2015 at 18:42:52 UTC, Basile B. wrote: iz is my user library. https://github.com/BBasile/iz http://code.dlang.org/packages/iz http://bbasile.github.io/iz/ Its particularities: - PropDescriptor: set, get something, runtime type. - PropertyPublisher: publish a collection of PropDescriptor - Serializer: read, write PropertyPublishers - Streams: Posix or win streams (file / memory) - memory: manual memory managment, via destruct & construct. And more. The name comes from this: https://www.youtube.com/watch?v=xdYaK3d-BNs
Re: Three Cool Things about D
On Monday, 21 December 2015 at 17:28:51 UTC, Andrei Alexandrescu wrote: https://www.reddit.com/r/programming/comments/3xq2ul/codedive_2015_talk_three_cool_things_about_d/ https://www.facebook.com/dlang.org/posts/1192267587453587 https://twitter.com/D_Programming/status/678989872367988741 Andrei In the future, you should put your name in the title as it will probably get more votes that way.
iz - it's so easy
iz is my user library. https://github.com/BBasile/iz http://code.dlang.org/packages/iz http://bbasile.github.io/iz/ Its particularities: - PropDescriptor: set, get something, runtime type. - PropertyPublisher: publish a collection of PropDescriptor - Serializer: read, write PropertyPublishers - Streams: Posix or win streams (file / memory) - memory: manual memory managment, via destruct & construct. And more.
Re: LDC 0.17.0-alpha1 has been released!
Kai Nacke writes: > Hi everyone, > > LDC 0.17.0-alpha1, the LLVM-based D compiler, is available for > download! > This release is based on the 2.068.2 frontend and standard library and > supports LLVM 3.5-3.7. > > Don't miss to check if your preferred system is supported by this > release. We also have a Win64 compiler available! > > As usual, you can find links to the changelog and the binary packages > over at digitalmars.D.ldc: > http://forum.dlang.org/thread/zwoixfjuagmwvlyat...@forum.dlang.org > > Regards, > Kai The ldc cross-compiler for iOS (iphoneos-ldc2) has been updated to match 0.17.0-alpha1. https://github.com/smolt/ldc-iphone-dev/releases/tag/ios-0.17.0-151221 Somebody have fun, -- Dan
Re: DlangIDE - initial GDB debugger support
On Monday, 21 December 2015 at 18:03:32 UTC, Vadim Lopatin wrote: On Sunday, 20 December 2015 at 13:53:33 UTC, default0 wrote: This is quick progress! Awesome! I finally have some free time on my hands, so I deleted my workspace and tried to set things up following the How to hack on DlangIDE steps again. After doing that and trying to compile on Debug/Win32 I get output with a linker error: ... Any help in somehow getting this all to build would be much appreciated. Oh and of course "dub run" works just fine. For me, Visual Studio 2015 Community Edition + recent Visual D works ok. Try to create some helloworld project using VisualD and build it. Does it work? Clone dlangui and dlangide into the same directory (!!!) Inside dlangui directory create directory /deps and clone dependencies into it (as described in readme). Open dlangui/dlangui-msvc.sln In workspace, select dlangide as a startup project. Build dlangide. As well you can try to build other projects (e.g. dmledit, tetris, example1) - does it work? Simple Hello World project compiles and runs okay. I did do that. My directory structure is like this: DCode/dlangide DCode/dlangui DCode/dlangui/deps/ Which I assume is what you are describing. I just tried opening the setup I had from last time (ie dlangui-msvc.sln) and compile that (startup project set and all), now I get http://www.digitalmars.com/ctg/optlink.html OPTLINK : Warning 9: Unknown Option : OUT OPTLINK : Error 12: Number Overflow : Building Debug\dlangide.exe failed! I'm starting to think that either my VS or VD installation is cursed (I recently reinstalled VS though, so that shouldn't be it, maybe VD? But it generally works and I do have the latest stable version of it). I redid my setup again right now, though, but apparently the current master has some compiler errors: src\dlangui\core\files.d(264): Error: cannot implicitly convert expression (lastSlash + 1LU) of type ulong to uint src\dlangui\core\files.d(354): Error: cannot implicitly convert expression (start) of type ulong to uint. After crudely fixing these with cast(uint) I got it to build though. So, something about my computer is definitely cursed (I ran the EXACT same commands as always - basically straight copy-paste from the Readme in DlangIDE and I didn't notice any changes to this file since I first did the setup). Anyhow, it finally builds! \o/ Thanks a lot for the help and putting up with my incompetence at diagnosing issues through this, will probably start hacking away on things as time permits :-)
Re: Coedit 2 alpha 4, split view and dfmt
On Monday, 21 December 2015 at 03:59:20 UTC, Rikki Cattermole wrote: On 21/12/15 4:21 PM, Basile B. wrote: Hello, A new alpha of CE is available: The two latest releases put the focus on the editor: - identifier markup improved. - split view. - macro recording state clearly indicated. - fix (highlighter, cache restoration when workspace is reloaded). - more shortcuts (prev/next location, ddoc, call tips, macro recording, synchro-edit) - more options. Also it's now possible to specify the favorite compiler in the applications options - for DUB: dmd, gdc and ldc are obviously supported. - for the CE projects (aka "native projects"): dmd and ldc are supported. A new widget, "Dfmt commander", has been added. It's a GUI for Dmft. It works automatically on the selected editor and it processes documents in memory only. Download links and detailed changelog: https://github.com/BBasile/Coedit/releases/tag/2_alpha_4 (see also previous release since I haven't announced it here). Thanks again for dfmt support. But ugh, I get access violation(message window) when it formats. Problem fixed now, I've moved two times the git tag and updated the binaries. To the newcomers, don't forget to read the wiki, coedit documentation is part of the software: https://github.com/BBasile/Coedit/wiki
Re: DlangIDE - initial GDB debugger support
On Sunday, 20 December 2015 at 13:53:33 UTC, default0 wrote: This is quick progress! Awesome! I finally have some free time on my hands, so I deleted my workspace and tried to set things up following the How to hack on DlangIDE steps again. After doing that and trying to compile on Debug/Win32 I get output with a linker error: ... Any help in somehow getting this all to build would be much appreciated. Oh and of course "dub run" works just fine. For me, Visual Studio 2015 Community Edition + recent Visual D works ok. Try to create some helloworld project using VisualD and build it. Does it work? Clone dlangui and dlangide into the same directory (!!!) Inside dlangui directory create directory /deps and clone dependencies into it (as described in readme). Open dlangui/dlangui-msvc.sln In workspace, select dlangide as a startup project. Build dlangide. As well you can try to build other projects (e.g. dmledit, tetris, example1) - does it work?
Three Cool Things about D
https://www.reddit.com/r/programming/comments/3xq2ul/codedive_2015_talk_three_cool_things_about_d/ https://www.facebook.com/dlang.org/posts/1192267587453587 https://twitter.com/D_Programming/status/678989872367988741 Andrei
Re: Small minesweeper game in D
On Monday, 21 December 2015 at 02:28:27 UTC, Adam D. Ruppe wrote: On Sunday, 20 December 2015 at 17:24:41 UTC, jmh530 wrote: The code looks easy to understand also. You might consider writing this up into a blog post. I might if I had a blog... which I need to set up at some point but haven't yet (well, I used to have one but not for years). You can write in "THIS WEEK IN D"... please do it! Bubba.
Re: Small minesweeper game in D
On Monday, 21 December 2015 at 10:52:07 UTC, wobbles wrote: On Ubuntu 64 bit: whoops, I always build 32 bit here and sometimes forget to test 64 bit before pushing. Fixed now. The game code is very simple to follow too. I'll try making a simple game using simpledisplay over the christmas. It looks quite nifty! Sweet, let me know how it goes!
Re: D Structs(Enums) to Typescript Interfaces(Enums)
Update: It now also generates functions that call the vibe.d rest service in typestrict.
Re: Small minesweeper game in D
On Sunday, 20 December 2015 at 02:11:58 UTC, Adam D. Ruppe wrote: code here: http://arsdnet.net/dcode/minesweeper.d [...] On Ubuntu 64 bit: $ dmd minesweeper.d simpledisplay.d color.d simpledisplay.d(4477): Error: cannot implicitly convert expression (XCreatePixmapCursor(this.display, pm, pm, & blackcolor, & blackcolor, 0u, 0u)) of type ulong to int $ dmd --version DMD64 D Compiler v2.069.2 I casted the problem away with cast(int)XCreatePixmapCursor(...) to play a couple games. Not really solving the problem though... Nice work though! 'Tis very cool. The game code is very simple to follow too. I'll try making a simple game using simpledisplay over the christmas. It looks quite nifty!