Re: DIP1028 - Rationale for accepting as is

2020-05-27 Thread Zoadian via Digitalmars-d-announce
On Wednesday, 27 May 2020 at 13:47:46 UTC, Claude wrote: On Wednesday, 27 May 2020 at 13:42:08 UTC, Andrej Mitrovic wrote: Is the actual problem those `@trusted:` declarations at the top of C headers? There could be a simple solution to that: Ban `@trusted:` and `@trusted { }` which apply to

Re: DIP1028 - Rationale for accepting as is

2020-05-25 Thread Zoadian via Digitalmars-d-announce
On Monday, 25 May 2020 at 10:41:43 UTC, rikki cattermole wrote: On 25/05/2020 10:29 PM, Zoadian wrote: you complain about @trusted losing it's meaning, but @safe was ment to mean "mechanically verified memory safety". it should be forbidden to add @safe to any function that can not be

Re: DIP1028 - Rationale for accepting as is

2020-05-25 Thread Zoadian via Digitalmars-d-announce
On Monday, 25 May 2020 at 11:40:46 UTC, Johannes T wrote: On Monday, 25 May 2020 at 10:19:22 UTC, Johannes Loher wrote: [..] But with the DIP in its current form, we make @safe lose its meaning and power, which is much worse in my opinion. [..] The alternative, not making extern @safe,

Re: DIP1028 - Rationale for accepting as is

2020-05-25 Thread Zoadian via Digitalmars-d-announce
On Monday, 25 May 2020 at 09:25:52 UTC, Johannes T wrote: On Monday, 25 May 2020 at 00:56:04 UTC, Timon Gehr wrote: [..] After thinking about it, Walter ultimately made the right decision, leading to overall higher safety and code quality. We all agree that making extern C @safe is

Re: wiki tutorial: D on esp32/esp8266(llvm-xtensa+ldc) and how to get started

2019-11-26 Thread Zoadian via Digitalmars-d-announce
On Tuesday, 26 November 2019 at 08:57:49 UTC, dangbinghoo wrote: hi, I just added a simple tutorial to running D betterC on the popular ESP32/esp8266 IoT chip. referenced with the Rust community's Rust on ESP32.

Re: Private variables accessible from outside class

2019-08-08 Thread Zoadian via Digitalmars-d-learn
On Thursday, 8 August 2019 at 15:51:45 UTC, Drobet wrote: I'm having a weird issue, where after defining my classes variables as private, they can still be modified and looked at from the outside. That leads to this code compiling with no issues. import std.stdio; class Vector3 {

Re: How do you debug @safe @nogc code? Can't figure out how to print.

2018-11-16 Thread Zoadian via Digitalmars-d-learn
debug { import std.stdio; writeln(args); }

Re: Automatic variable declaration

2018-08-16 Thread Zoadian via Digitalmars-d
On Wednesday, 15 August 2018 at 14:58:40 UTC, Everlast wrote: Many times one must create a variable before a function call: int x = 3; foo(x); writeln(x); [...] check this out: void main() { import std.stdio; writeln = 4; } https://run.dlang.io/is/0wgWtw

Re: std.signals non-object delegates

2018-06-12 Thread Zoadian via Digitalmars-d
On Tuesday, 12 June 2018 at 15:21:49 UTC, Jacob Shtokolov wrote: On Tuesday, 12 June 2018 at 14:33:57 UTC, Steven Schveighoffer wrote: [...] Thank you Steve! Then I'll try to fire a bug report and propose my own solution to this problem. Probably there is no need to track down the

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Zoadian via Digitalmars-d
On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. If class level protection is added, please do not call it sealed. People from c++ might be suprised by 'private'

Re: Favorite GUI library?

2018-04-23 Thread Zoadian via Digitalmars-d
On Monday, 23 April 2018 at 14:38:44 UTC, TheGag96 wrote: On Monday, 23 April 2018 at 11:26:30 UTC, Chris wrote: On Monday, 23 April 2018 at 09:50:21 UTC, Zoadian wrote: i'm happy with: vibe.d + CEF + vue.js Good point. I've been thinking about vibe.d + HTML/JS based UIs too. I think

Re: Favorite GUI library?

2018-04-23 Thread Zoadian via Digitalmars-d
On Monday, 23 April 2018 at 06:12:33 UTC, TheGag96 wrote: Heya guys. For my projects that use a GUI library, I've tried both tkd and DlangUI. Both I feel have their drawbacks, and I'd like to know if any of you are using anything you find better. In my case, my ideal choice would be: - Nice

Re: C++ launched its community survey, too

2018-02-28 Thread Zoadian via Digitalmars-d
On Wednesday, 28 February 2018 at 00:53:16 UTC, psychoticRabbit wrote: It should have gone to the Java developers - cause they deserved it. C++ is the worst thing to have ever come out of computer science! yes c++ is not the greatest language (thats why i use D). but java is the worst

Re: Beta 2.079.0

2018-02-22 Thread Zoadian via Digitalmars-d-announce
On Thursday, 22 February 2018 at 10:42:33 UTC, Jonathan M Davis wrote: On Thursday, February 22, 2018 10:30:44 psychoticRabboit via Digitalmars-d- announce wrote: On Thursday, 22 February 2018 at 09:42:47 UTC, Atila Neves wrote: > I'm going to a) never write these imports and b) pretend this >

Re: Vulkan

2018-02-16 Thread Zoadian via Digitalmars-d
On Friday, 16 February 2018 at 22:58:30 UTC, Ivan Trombley wrote: On Wednesday, 14 February 2018 at 02:40:18 UTC, Mike Parker wrote: What [does] it mean to say they don't work? Have you reported any issues? I don't see any in the DerelictVulkan repo. If something's broken, please report it so

Re: Thoughts about D

2017-11-27 Thread Zoadian via Digitalmars-d
On Monday, 27 November 2017 at 09:07:10 UTC, Nicholas Wilson wrote: On Monday, 27 November 2017 at 07:58:27 UTC, IM wrote: On Monday, 27 November 2017 at 03:01:24 UTC, Jon Degenhardt wrote: Forum discussions are valuable venue. Since you are in Silicon Valley, you might also consider attending

Re: D, ZeroMQ, Nanomsg

2016-09-28 Thread Zoadian via Digitalmars-d
On Wednesday, 28 September 2016 at 11:53:05 UTC, Russel Winder wrote: Hi, I see that some people have wrapped in various different ways ZeroMQ. Was this manually, or using DStep? Has anyone wrapped Nanomsg? If yes, was this manually or using DStep. derelict_extras-nanomsg was converted

Re: new cpuid is ready for comments

2016-07-15 Thread Zoadian via Digitalmars-d-announce
On Monday, 11 July 2016 at 16:30:44 UTC, Ilya Yaroshenko wrote: Please report your CPU (GitHub/Gist): my results for Intel Core i7-6700K CPU @ 4.00GHz rev.2 (the one with sgx) https://gist.github.com/Zoadian/f53d818e714a849ba7f34bbec2f3339a awesome!

Re: OT: Vulkan released

2016-02-16 Thread Zoadian via Digitalmars-d
On Tuesday, 16 February 2016 at 14:20:51 UTC, Ola Fosheim Grøstad wrote: https://www.khronos.org/vulkan/ OS-X Metal is kinda like a C++ derivative => GPU compilation. With Vulkan/SPIR other languages should be able to come up with something similar for other platforms. finally. I'll write

Re: Iterating over modules

2016-02-04 Thread Zoadian via Digitalmars-d
On Thursday, 4 February 2016 at 15:45:03 UTC, Satoshi wrote: Hi, is there any way how to iterate over every module/submodule? I have project like Rikarin Rikarin/AppKit Rikarin/Drawing Rikarin/Runtime etc. In every directory, I have package.d file where I include every .d file from the dir.

Re: Logo for D

2016-01-19 Thread Zoadian via Digitalmars-d-announce
On Monday, 18 January 2016 at 22:48:52 UTC, Brad Anderson wrote: Doesn't it look so much better: http://i.imgur.com/QlrbCou.png +1

Re: [dlang.org] new forum design - preview

2016-01-13 Thread Zoadian via Digitalmars-d
On Wednesday, 13 January 2016 at 13:41:00 UTC, Bubbasaur wrote: May I suggest one thing? Could you put the page numbers on top instead of bottom? Because this is a common style in many pages, I think It would be nice if it was right bellow of (Log in,Settings,help), because currently, if I

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Zoadian via Digitalmars-d
On Sunday, 6 September 2015 at 19:32:58 UTC, Prudence wrote: template X(Y) { string X = Y.stringof; } [...] as you'd have to write a parser for other languages why not just use strings? you can already do this: template X(string Y) { enum X = Y; } auto s = X!q{int 3;};

Re: else if for template constraints

2015-08-17 Thread Zoadian via Digitalmars-d
On Monday, 17 August 2015 at 16:57:33 UTC, Zoadian wrote: wouldn't is(typeof(replace(array, from, to, stuff))) better be a static if inside the first version? nevermind, I missed that the first constraint is negated. In that case I agree, else if would be nice.

Re: else if for template constraints

2015-08-17 Thread Zoadian via Digitalmars-d
On Monday, 17 August 2015 at 13:18:43 UTC, Steven Schveighoffer wrote: void replaceInPlace(T, Range)(ref T[] array, size_t from, size_t to, Range stuff) if(isDynamicArray!Range is(Unqual!(ElementEncodingType!Range) == T) !is(T == const T) !is(T == immutable T)) { /* version 1

Re: Wait, what? What is AliasSeq?

2015-07-21 Thread Zoadian via Digitalmars-d
On Tuesday, 21 July 2015 at 06:49:10 UTC, deadalnix wrote: Some of the proposals do not even make any sense. Come on, all people that got into this know how newcomer react to the Tuple name noticed the same reaction. Yet, there is a large crow of idiots (sorry if you are in that crowd, on that

Re: Wait, what? What is AliasSeq?

2015-07-21 Thread Zoadian via Digitalmars-d
On Tuesday, 21 July 2015 at 16:54:54 UTC, H. S. Teoh wrote: On Tue, Jul 21, 2015 at 04:06:11PM +, Zoadian via Digitalmars-d wrote: On Tuesday, 21 July 2015 at 06:49:10 UTC, deadalnix wrote: Some of the proposals do not even make any sense. Come on, all people that got into this know how

Re: Wait, what? What is AliasSeq?

2015-07-09 Thread Zoadian via Digitalmars-d
It is a compiletime tuple so i'd vote for: CtTuple

Re: 0 is not a power of 2

2015-05-19 Thread Zoadian via Digitalmars-d
On Tuesday, 19 May 2015 at 18:04:49 UTC, Marco Leise wrote: Am Mon, 18 May 2015 22:16:47 -0700 schrieb Andrei Alexandrescu seewebsiteforem...@erdani.org: But that has branches in it. So I came up with: bool isPowerOf2(uint x) { return (x (x - 1) | !x) == 0; } which has no branches at

Re: A few notes on choosing between Go and D for a quick project

2015-03-13 Thread Zoadian via Digitalmars-d
On Friday, 13 March 2015 at 10:34:32 UTC, bearophile wrote: Ola Fosheim Grøstad: Yes, but what is a strict mode. I agree with most of what is said about D and Go in the top post, but is there a market for yet another high level language that isn't high level enough? Strict mode is a D2 with

Re: 2D game engine written in D is in progress

2015-02-03 Thread Zoadian via Digitalmars-d-announce
On Tuesday, 3 February 2015 at 16:30:27 UTC, solidstate1991 wrote: https://github.com/ZILtoid1991/VDP-engine Alpha release. Very basic functionality at the moment, will be expanded later. had a quick look: public class Color This is probably going to be slow. you want to read about