Re: nginx module bindings

2015-04-19 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-19 01:03, Shammah Chancellor wrote: I included the -I flag for the location of those included headers. It seems as if maybe it is not including anything. With that said, I am using clan release_34, because I cannot build 32 on MacOS X. Is there a build script you can inspect to

Re: Today's programming challenge - How's your Range-Fu ?

2015-04-20 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-20 08:04, Nick B wrote: Perhaps a new Unicode standard, could start that way as well ? https://xkcd.com/927/ -- /Jacob Carlborg

Re: std.experimental.testing PR review

2015-04-20 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-20 15:28, Atila Neves wrote: Original library: http://code.dlang.org/packages/unit-threaded PR: https://github.com/D-Programming-Language/phobos/pull/3207 It's my first Phobos PR, I tried reading the wiki and doing what's required but bear with me if I've screwed up somehow. Any

Re: std.experimental.testing PR review

2015-04-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-21 15:56, Robert burner Schadek wrote: I did use github pages https://pages.github.com/ I have used dropbox. -- /Jacob Carlborg

Re: SDC needs you -- redux

2015-04-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-23 04:00, deadalnix wrote: D style hello world is HUGE. writeln need half of the world to work to spit out anything :) What about Hello World with printf instead? Yes, It is also needed to stop dumping the LLVM IR on the standard output. But at this stage, it just make the dev

Re: I have made a discovery

2015-04-19 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-19 11:57, w0rp wrote: I'm not sure how that will end up looking in the end, but I am reminded of Objective C again, where allocation and construction are explicitly separated. // Enough time in Wonderland makes this seem perfectly natural. MyClass* foo = [[MyClass alloc]

Re: Updating ddoc to support modern HTML tags

2015-04-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-20 21:42, Gary Willoughby wrote: and here are some proposed substitutions: https://gist.github.com/nomad-software/20d2ab1f7d4c9e55a343 I don't think you should use the style attribute at all. I think it's better to use classes, or similar. -- /Jacob Carlborg

Re: C++/C mangleof inconsistency for OS X

2015-04-22 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-22 03:46, Daniel Murphy wrote: Until fairly recently .mangleof was completely broken for eg extern(C++) mangling on windows. I'm not surprised there are still bugs there. Ideally .mangleof will give exactly the string that ends up in the object file. And what about pragma(mangle),

Re: C++ const expression are not that const after all

2015-04-29 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-29 02:49, Walter Bright wrote: Yes, many times, yes. Report it to bugzilla as a bug. Any code relying on buggy behavior listed in bugzilla is likely to get little sympathy from the D community when it breaks due to a bugfix. The most difficult part is to figure if a weird behavior

Re: Quit running foreign unittests _

2015-04-29 Thread Jacob Carlborg via Digitalmars-d
On 2014-09-10 04:13, Nick Sabalausky wrote: This is getting to be (or rather, *continuing* to be) a royal PITA: https://github.com/rejectedsoftware/vibe.d/issues/673 I don't mean to pick on Vibe.d in particular, but can we have a solution (that doesn't involve obscure corners of druntime, or

Re: A valid code that won't run?

2015-04-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-25 08:42, Iain Buclaw via Digitalmars-d wrote: Doesn't DMD use dmd.conf for these? No, on OS X DMD adds the following when calling GCC: -lphobos2 -lpthread -lm -- /Jacob Carlborg

Re: A valid code that won't run?

2015-04-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-24 22:27, Steven Schveighoffer wrote: If pragma(lib, libcurl); doesn't work normally, then we should remove std.net.curl, and put it in dub. It doesn't work with GDC. -- /Jacob Carlborg

Re: The most awesome forward to member solution?

2015-05-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-04 07:28, Andrei Alexandrescu wrote: But then the opDispatch solution is more structured and restricted in a good way. I think we need a bit more experience with both to figure out which is the best way to go. I would guess the opDispatch solution doesn't integrate so well with an

Re: std.xml2 (collecting features)

2015-05-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-03 19:39, Robert burner Schadek wrote: Not much code yet, I'm currently building the performance test suite https://github.com/burner/std.xml2 I recommend benchmarking against the Tango pull parser. -- /Jacob Carlborg

Re: std.xml2 (collecting features)

2015-05-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-04 21:14, Jonathan M Davis wrote: If I were doing it, I'd do three types of parsers: 1. A parser that was pretty much as low level as you can get, where you basically a range of XML atributes or tags. Exactly how to build that could be a bit entertaining, since it would have to be

Re: std.xml2 (collecting features)

2015-05-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-05 12:41, Mario =?UTF-8?B?S3LDtnBsaW4i?= linkr...@github.com wrote: Recently, I compared DOM parsers for an XML files of 100 MByte: 15.8 s tango.text.xml (SiegeLord/Tango-D2) 13.4 s ae.utils.xml (CyberShadow/ae) 8.5 s xml.etree (Python) Either the Tango DOM parser is slow

Re: The most awesome forward to member solution?

2015-05-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-03 06:20, Andrei Alexandrescu wrote: Is this a common thing people wanna do? Put in Phobos? Yes, I would think so. Although, I would prefer a regular template mixin and taking the member as an alias parameter instead of a string, if possible. -- /Jacob Carlborg

Re: Does anyone want to work on bindings for Unreal Engine 4?

2015-05-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-02 15:00, maik klein wrote: and there was a reddit post somewhere about an automatic binding generator? I just can't seem to find it anymore. There's DStep [1] but that is only for C, not for C++. Is there a C interface available? [1] https://github.com/jacob-carlborg/dstep --

Re: std.xml2 (collecting features)

2015-05-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-05 16:04, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: In my opinion it is rather difficult to build a good API without also using the API in an application in parallel. So it would be a good strategy to build a specific DOM along with writing the

Re: std.xml2 (collecting features)

2015-05-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-06 01:38, Walter Bright wrote: I haven't read the Tango source code, but the performance of it's xml was supposedly because it did not use the GC, it used slices. That's only true for the pull parser (not sure about the SAX parser). The DOM parser needs to allocate the nodes, but

Re: Breaking changes in Visual C++ 2015

2015-05-07 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-06 20:26, Brad Anderson wrote: https://msdn.microsoft.com/en-us/library/vstudio/bb531344(v=vs.140).aspx I'm sharing this specifically so we can have an unproductive flamewar about whether breaking changes in D are sometimes worth it or if they are holding D back from mass adoption

Re: Clean process exit

2015-05-07 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-07 18:15, Dmitri wrote: I'm a D noob, so my question is perhaps naive. At work, we develop servers that are 24/7 and as such they don't have a clean exit path. Sometimes, however, I'd like to troubleshoot a process and use valgrind, in which case I have to come with a way of forcing a

Re: Breaking changes in Visual C++ 2015

2015-05-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-08 00:28, Walter Bright wrote: D has some excellent tools that are generally nonstandard, klunky or nonexistent in other languages: 1. unit testing 2. documentation generation 3. coverage analysis 4. profiler 5. and as of last week, a memory usage profiler I know many feel that

Re: Breaking changes in Visual C++ 2015

2015-05-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-08 09:55, Walter Bright wrote: On the other hand, D's builtin unit testing is so effective it has been a game changer, in that it has successfully changed the culture of D programming. Perhaps compared to C++ or previous D code. But compared to Ruby it's certainly not a game

Re: Tuple assignment

2015-05-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-10 10:14, Oren Tirosh wrote: I think it should work for any two structs as long their fields are public and individually assignment-compatible. Just for the record, tupleof bypasses protection. -- /Jacob Carlborg

Re: Breaking changes in Visual C++ 2015

2015-05-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-10 10:12, Jonathan M Davis wrote: Those are really the only ones that I've ever thought made sense, and in several cases, the things that folks want are things that I very much _don't_ want (e.g. continuing to execute a unittest block after an assertion failure). I don't think most

Re: Breaking changes in Visual C++ 2015

2015-05-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-08 21:45, Walter Bright wrote: This is an interesting problem, one that I faced with Warp. The solution was to make the function being tested a function template. Then, in the unit test I replace the 'file' argument to the function with a static array of test data. I don't really

Re: on the length of symbols

2015-05-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-11 11:33, weaselcat wrote: I'd put the symbol here, but it's too long and got rejected by the NG. So, you can view it here. https://paste.ee/r/cIuGm Haha :) -- /Jacob Carlborg

Re: std.xml2 (collecting features)

2015-05-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-03 19:39, Robert burner Schadek wrote: Not much code yet, I'm currently building the performance test suite https://github.com/burner/std.xml2 There are a couple of interesting comments about the Tango pull parser that can be worth mentioning: * Use -version=whitespace to retain

Re: Breaking changes in Visual C++ 2015

2015-05-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-08 12:43, Walter Bright wrote: I've never seen any as easy to use as D's, and that includes Ruby. Easy to use is what makes it a game changer, because people are much more likely to use it. As I've said, it's available in Ruby standard library, but perhaps that's not enough

Re: Sneak preview into std.allocator's porcelain

2015-05-10 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-08 21:55, Andrei Alexandrescu wrote: a few measurements would be in order. -- Andrei Be sure you do that on more than one platform. For example, the emulate TLS on OS X can be quite slow, I've heard. -- /Jacob Carlborg

Re: A few thoughts on std.allocator

2015-05-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-11 17:45, Andrei Alexandrescu wrote: For now, here's a snapshot of flags that the allocation primitives should know about: enum AllocOptions { /// Allocate an array, not an individual object array, /// Allocate a string of characters string, /// Plan to let the GC

Re: dmd build instructions from source don't work anymore

2015-05-11 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-11 18:08, Timothee Cour via Digitalmars-d wrote: I found the culprit by bisection: hash: 50b7697... HEAD is now at 50b7697... Merge pull request #3970 from yebblies/idgend2 https://github.com/D-Programming-Language/dmd/commit/aa8a7b3dcf985c8332783961c1dd7bc598ec36c5 it builds fine

Re: dmd build instructions from source don't work anymore

2015-05-12 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-12 17:03, Andrei Alexandrescu wrote: dvm is fine as long as its installation itself is automated. The installation is a one-liner command: curl -L -o dvm https://github.com/jacob-carlborg/dvm/releases/download/v0.4.3/dvm-0.4.3-osx chmod +x dvm ./dvm install dvm Binaries are

Re: std.allocator.allocate(0) - return null or std.allocator.allocate(1)?

2015-05-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-16 11:20, Jacob Carlborg wrote: Per-allocated? The same way as out of memory is handled in the runtime. To avoid confusion, that should have been pre-allocated. -- /Jacob Carlborg

Re: std.allocator: nomenclature needed

2015-05-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-16 18:34, Andrei Alexandrescu wrote: I thought that was the recommended style for Phobos. -- Andrei I don't know. There's not a single public module with an underscore in its name. If that's the recommended style that I suggest we start encouraging/enforcing that. Like

Re: std.allocator: nomenclature needed

2015-05-15 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-15 05:27, Andrei Alexandrescu wrote: Ready for yet another name debate? Here's an opportunity! I just added: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_auto_deallocator.html

Re: Let's improve D's exceptions

2015-05-15 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-14 14:33, Adam D. Ruppe wrote: I think hierarchies will get better too if there were more incentive to use them - data members instead of string concat encourages new classes and you want to inherit from something So why isn't data members used more, because of the boilerplate to

Re: Let's improve D's exceptions

2015-05-13 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-13 17:08, Adam D. Ruppe wrote: Have you ever done: if(something) { import std.conv; throw new Exception(some error ~ to!string(some_value)); } Don't you hate it? * having to import std.conv to see data from your exception is a pain * it allocates eagerly and thus isn't

Re: Let's improve D's exceptions

2015-05-15 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-14 14:41, Adam D. Ruppe wrote: Is it really? My thought of enforce was it iwas just a lazy way to throw on cases like file not found... Yeah, that's what I thought too. The documentation doesn't mention anything about this. -- /Jacob Carlborg

Re: std.allocator: nomenclature needed

2015-05-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-15 19:16, Andrei Alexandrescu wrote: We have a winner. Thanks! https://github.com/andralex/phobos/commit/e6e11db13c2d224bdb600d944642473f35d10f77 BTW, I see that many of your filenames have words separated with underscores. We're not using that standard anywhere else, as far as I

Re: std.allocator.allocate(0) - return null or std.allocator.allocate(1)?

2015-05-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-15 22:34, Timon Gehr wrote: - Where do you allocate the exception object? Per-allocated? The same way as out of memory is handled in the runtime. -- /Jacob Carlborg

Re: Let's improve D's exceptions

2015-05-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-14 03:31, Adam D. Ruppe wrote: Yeah, we could use a decent hierarchy too. Though the examples in there still use string concatenation to form the message, which is the big thing I want to get away from. It was a while since I looked at that DIP, but I'm mostly interested in the

Re: Let's improve D's exceptions

2015-05-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-14 00:55, Steven Schveighoffer wrote: enforce is one of the most needless pieces of phobos: enforce(cond, message); vs. if(!cond) throw new Exception(message); And the second doesn't mess up inlining. I think enforce could be boiler-plated better. The only verbose part of the if

Re: More std.allocator goodies coming your way: better statistics

2015-05-19 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-18 20:53, Andrei Alexandrescu wrote: Beautiful statistics accumulated for the allocator instance and/or per call location: http://erdani.com/d/phobos-prerelease/std_experimental_allocator_stats_collector.html

Re: std.reflection prototype

2015-04-15 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-15 17:26, bitwise wrote: Right now, this is the def: /** * Array of pairs giving the offset and type information for each * member in an aggregate. */ struct OffsetTypeInfo { size_t offset;/// Offset of member from start of object TypeInfo ti;///

Re: SDC needs you

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 08:02, Andrei Alexandrescu wrote: This is good stuff. FWIW we do have a keyword preapproved on bugzilla: https://issues.dlang.org/buglist.cgi?f1=keywordslist_id=200200o1=equalsquery_format=advancedresolution=---v1=preapproved It has 23 items of various ages. I didn't notice the

Re: Pitching an investment bank on using D for their bond analytics

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 00:32, Kapps wrote: One of the biggest issues I can think of would be code breakage. While we're the point where most compiler updates no longer break my code, if you expect to use a codebase from 2 years ago without having to update your code, you'll be disappointed. I don't

Re: D AutoCompletion: is ycmd integration valuable?

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-15 15:15, rcorre wrote: For those who don't know, ycmd (https://github.com/Valloric/ycmd) is an editor-agnostic completion engine that aims to reduce a lot of the duplicate code written for handling autocompletions in different language/editor combinations. Which editors are

Re: std.reflection prototype

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 01:32, bitwise wrote: One reason is that casting with multiple inheritance offsets the pointer, and I forget exactly virtual inheritance works, but I'm sure it breaks things too.. In D I would assume this would eventually be possible: class Foo { int a; } class Bar : Foo { int

Re: Wanted: Review manager for std.data.json

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 18:37, Sönke Ludwig wrote: Anyone up to this? The issues of the previous discussion [1] have all been addressed now more or less, so the package is ready for a more thorough review. Is it possible to use toJSON or a similar method to generate JSON from a primitive type without

Re: Wanted: Review manager for std.data.json

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 14:17, Sönke Ludwig wrote: The simplest target for a serialization library would be to generate a stream of JSONParserNodes. That way the serializer doesn't have to keep track of nesting levels and can reuse the pretty printing functionality of stdx.data.generator. However, this

Re: Wanted: Review manager for std.data.json

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 11:29, Sönke Ludwig wrote: I'd like to let that be part of a more general serialization framework in top of this package instead of integrating a simplistic custom solution that will then later be obsoleted. I was thinking about some low level primitives that a serialization

Re: Wanted: Review manager for std.data.json

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 14:28, w0rp wrote: I think serialiastion for this JSON library should probably be considered out of scope until we have a general serisalisation API. Then once we have both, we can marry the two together. So as you say, the support from your end seems to be there. There just needs

Re: SDC needs you

2015-04-16 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 16:49, Andrei Alexandrescu wrote: This is worth trying. I'll put a list together perhaps during the hackathon. The more difficult part will be maintaining it, which becomes a job - one extra thing on the plate of the same people. I guess the first item on the list will be maintain

Re: IDEA: Text search engine tailored to a specific schema

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-17 04:26, Casey wrote: O.K. This is just an idea that's been running through my head, so I figured someone here may be interested. Text search engines that I know of are meant to index unstructured data or apply a schema to data at runtime. However, since D has the ability to do

Re: std.reflection prototype

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-17 01:25, bitwise wrote: Ok, that sounds right. D has no multiple or virtual inheritance, so I guess things should be fine. C# is the same way(single inheritance, interfaces) which is likely designed to avoid these kinds of issues. I would be modifying the offTi() property though,

Re: SDC needs you

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-16 19:36, Andrei Alexandrescu wrote: On 4/16/15 9:51 AM, Jacob Carlborg wrote: Example, updating the website is something I would recommend delegating to someone else. Good example. The question is who'd want to take that job. -- Andrei That's the tricky part being a project

Re: SDC needs you

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-17 04:19, Walter Bright wrote: Yes it would. The problem is I have a hard time reviewing complex things I don't understand, so I procrastinate. The fault is mine, not with your work. Please let me know if there's something I can do to make this easier for you. Anything I can

Re: SDC needs you

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-17 17:00, Andrei Alexandrescu wrote: Well, last time I posted a [WORK] item was this: http://forum.dlang.org/thread/mfesp4$9bn$1...@digitalmars.com Walter did it after we talked about it on the phone... Well, I'm not sure if it was the _latest_, but at some point (fairly

Re: SDC needs you

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-17 17:09, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: P.S. Way to hijack SDC's thread... That's what we do here ;) -- /Jacob Carlborg

Re: IDEA: Text search engine tailored to a specific schema

2015-04-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-17 16:21, Casey Sybrandy wrote: I was thinking something a bit more specific without having to manually generate the structs. For example, let's say I have a JSON document that has a number of fields in it. Some are numbers, some are strings, etc. What I'm thinking either a) based

Re: Today's programming challenge - How's your Range-Fu ?

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 12:27, Walter Bright wrote: That doesn't make sense to me, because the umlauts and the accented e all have Unicode code point assignments. This code snippet demonstrates the problem: import std.stdio; void main () { dstring a = e\u0301; dstring b = é; assert(a !=

Re: Today's programming challenge - How's your Range-Fu ?

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 14:25, Gary Willoughby wrote: byGrapheme to the rescue: http://dlang.org/phobos/std_uni.html#byGrapheme Or is this unsuitable here? How is byGrapheme supposed to be used? I tried this put it doesn't do what I expected: foreach (e ; e\u0301.byGrapheme) writeln(e); --

Re: nginx module bindings

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 17:25, Shammah Chancellor wrote: File(10B2B20F0, )/usr/include/module.map:36:14: error: header 'float.h' not found File(10B2B20F0, )/usr/include/module.map:81:14: error: header 'stdarg.h' not found File(10B2B20F0, )/usr/include/module.map:113:14: error: header 'tgmath.h' not found

Re: Any D plugins for recent Xcode?

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 19:30, Dan Olson wrote: Just checking to see if anybody has D and Xcode playing together nicely. Not for any recent version of Xcode. Michel Fortin wrote a puling for Xcode 3 [1], if you're interested. [1] https://michelf.ca/projects/d-for-xcode/ -- /Jacob Carlborg

Re: rant D's makefiles... /rant

2015-04-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-14 14:07, Russel Winder via Digitalmars-d wrote: Waf chooses N and it makes the workstation unusable whilst the compilation is happening. […] I have four cores (if I recall correctly) and I always compile DMD with -j 16 without any problems. -- /Jacob Carlborg

Re: std.reflection prototype

2015-04-15 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-14 18:33, bitwise wrote: This is one of the main reasons I like the OffsetTypeInfo/offTi() option. I think a name field would have to be added to OffsetTypeInfo for it to be useful, and I have a feeling that would increase the binary size by quite a bit.. So I'll have to test it and

Re: Does 'D' language supports 'C' like VLA?

2015-04-15 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-14 16:28, Daniel Murphy wrote: DMD does not inline functions that have any calls to alloca. What about this [1], is that something different? [1] https://github.com/D-Programming-Language/dmd/pull/3961 -- /Jacob Carlborg

Re: nginx module bindings

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 07:50, Shammah Chancellor wrote: I did try to compile it, but it started pulling in tango 1.0 and whatnot -- I figured it was not up to date. Is this wrong? It's up to date and is working. It builds with DMD 2.066.1 and the test suite passes. Pre-compiled binaries are

Re: Today's programming challenge - How's your Range-Fu ?

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 09:58, John Colvin wrote: Code points aren't equivalent to characters. They're not the same thing in most European languages, never mind the rest of the world. If we have a line-wrapping algorithm in phobos that works by code points, it needs a large THIS IS ONLY FOR SIMPLE

Re: nginx module bindings

2015-04-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-18 09:33, Shammah Chancellor wrote: Yeah, I am at an impasse. It either segfaults or spits out lots of errors about not being able to find headers despite adding all the -I paths. Which headers are it complaining about? -- /Jacob Carlborg

Re: Why I'm Excited about D

2015-04-07 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 01:51, Adam Hawkins wrote: Only trade off in the Ruby case is metaprogramming. You can do metaprogramming in D, it's just a bit different compared to Ruby. -- /Jacob Carlborg

Re: Why I'm Excited about D

2015-04-07 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 02:29, Adam D. Ruppe wrote: On Tuesday, 7 April 2015 at 00:15:51 UTC, w0rp wrote: [...]and runtime templates. The last two haven't been written yet. Really? Runtime templates aren't even hard to implement vibe.d has a template system. It's based on Jade, which seems to be

Re: Why I'm Excited about D

2015-04-07 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 10:33, John Colvin wrote: (parentheses are optional for all function calls), Optional for all function calls taking no arguments. Note that in Ruby parentheses are optional for function calls taking arguments as well. -- /Jacob Carlborg

Re: unittests are really part of the build, not a special run

2015-04-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-02 23:46, Wyatt wrote: Dealing with it at work, I find it puts us scarily at the mercy of regexen in Ruby, which is unsettling to say the least. More pressingly, the plain English method of writing tests hinders my ability to figure out what the test is actually trying to do.

Re: unittests are really part of the build, not a special run

2015-04-03 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-02 22:34, Dicebot wrote: Oh yeah, looking forward to listening it :) I had an unpleasant experience of encountering Cucumber when trying to contribute to dstep so this specific name is like a trigger to me :) Yeah, I don't like how it ended up in DStep. I'm using it completely

Re: Why I'm Excited about D

2015-04-07 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 18:06, Adam D. Ruppe wrote: Aye, though it is compile time rather than runtime which hurts the edit/run cycle - you have to recompile, redeploy (maybe), and restart just to see a quick text change. Oh, right, that was what he meant with runtime :) -- /Jacob Carlborg

Re: Mid-term vision review

2015-04-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-04 01:00, Iain Buclaw via Digitalmars-d wrote: Summary of sources in first link, those familiar with DMD internals will understand what the glue methods more or less do. It's not like there's a lot of documentation for the DMD internals ;) -- /Jacob Carlborg

Re: std.reflection prototype

2015-04-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-04 21:49, bitwise wrote: One more question: Does anyone know why TypeInfo_class.getMembers() was removed? [1] I found an old post saying that it never worked and returned an empty array, so that is most likely the answer Yes. but although getMembers was removed, Walter seems to

Re: std.reflection prototype

2015-04-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-04 18:16, bitwise wrote: Ok, I think I understand what you're suggesting now, which is that you want a library to be able to override RTInfo in order to add it's own metadata to all types, which raises the question, what if more than one library wants to add metadata? And I think

Re: DDMD is now in the master branch

2015-04-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-08 08:26, Daniel Murphy wrote: Several hours ago, Walter merged my DDMD branch into master. This means that an additional 'ddmd' target is available in the makefiles, and the autotester will check that it builds. The make target converts the C++ frontend source to D, and then

Re: Why I'm Excited about D

2015-04-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 19:53, deadalnix wrote: https://www.destroyallsoftware.com/talks/wat That is mostly for JavaScript. -- /Jacob Carlborg

Re: Why I'm Excited about D

2015-04-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-07 19:46, Ary Borenszweig wrote: It's true that Ruby is slow, but only because their priority is correctness. I don't think it's so much about the correctness, it's rather the complicated features it supports, like metaprogramming. eval and bindings are causing problems, also

Re: Which D IDE do you use?(survey)

2015-04-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-08 00:58, weaselcat wrote: Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0 TextMate 2. -- /Jacob Carlborg

Re: D Code list should be tag/hierarchical based

2015-04-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-08 08:51, extrawurst wrote: What i like about the current layout is the possibility to rapidly try different keyword searches using the browser find-functionality. I like that too, but it only works when there are quire few packages. -- /Jacob Carlborg

Re: Which D IDE do you use?(survey)

2015-04-08 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-08 12:29, Jens Bauer wrote: I voted for nano+uCode (my own IDE, which is still pre-alpha). uCode is designed for microcontroller and SPLD/CPLD use. nano, because it's the only editor on a Mac, I can be sure of handling Unicode well. (TextEdit messes up unicode files, Xcode 2.5 seems

Re: The next iteration of scope

2015-04-02 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-02 14:02, ketmar wrote: .di files has no function bodies, yet they still works. so compiler *can* do full processing, but it is not required, and if compiler does that, this restriction can be removed in the future. but with automatic inference for functions we are stuck with full

Re: extending 'import' using 'with'

2015-04-01 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-01 12:21, Mike James wrote: Just a thought... How about adding the keyword 'with' to 'import' to save on typing :-) import org.eclipse.swt.widgets.Canvas, org.eclipse.swt.widgets.Composite, org.eclipse.swt.events.DisposeListener,

Re: Named unittests

2015-04-01 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-01 20:35, Idan Arye wrote: If we could tell the compiler to only build a single, specific test the development cycle can become orders of magnitude faster. There should be a lot of option to run tests: * Base on a file * Line number * Name * Tag And so on. -- /Jacob Carlborg

Re: unittests are really part of the build, not a special run

2015-04-01 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-01 20:04, Ary Borenszweig wrote: By the way, this is the way we do it in Crystal. The source code for the spec library is here, if you need some inspiration: https://github.com/manastech/crystal/tree/master/src/spec . It's just 687 lines long. Ahhh, looks like my old buddy RSpec

Re: Which D IDE do you use?(survey)

2015-04-09 Thread Jacob Carlborg via Digitalmars-d
On 2015-04-09 11:34, Jens Bauer wrote: Xcode 2.5 is the best Xcode. There's only one IDE from Apple which is better: Project Builder! The rest of them are too broken for me. Xcode 3.x keeps spamming my console. Even if I could run Xcode 7254.9, I double they would have fixed the unicode

Re: Request for Features/Ideas: A std.archive package

2015-05-19 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-17 18:32, Liam McSherry wrote: Phobos currently has packages for working with various archives (Zlib/Gzip, Zip), and it's probably reasonable to expect that support for more archive formats will be added in future. Before any more are added, it would probably be beneficial to define

Re: shared libs for OSX

2015-05-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-20 23:35, bitwise wrote: Heh.. That's pretty useless. Any idea on the state of things? Like if there are plans to support this in the near future(few months)? I couldn't find many conversations on this. This kinda-totally ruins my plans(on OSX at least). I don't think anyone is

Re: shared libs for OSX

2015-05-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-21 07:06, Joakim wrote: Actually, TLS works on OS X: dmd emulates it, while ldc has native TLS using undocumented OS X APIs. The emulated TLS won't work with dynamic libraries. The runtime can only fetch the TLS data from one source, which will be the executable itself. I'm

Re: Request for Features/Ideas: A std.archive package

2015-05-20 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-20 14:19, Liam McSherry wrote: On Wednesday, 20 May 2015 at 08:26:11 UTC, Kagamin wrote: http://www.rarlab.com/rar/unrarsrc-5.2.7.tar.gz why do you need reverse engineering? UnRAR only extracts RAR archives, there's no facility to create them. If you wanted to create them, you

Re: shared libs for OSX

2015-05-20 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-20 16:44, bitwise wrote: I tried using a shared library for OSX yesterday. I opened it with dlopen, retrieved my extern(C) function, and called it. All was well, and it seemed to work(wrote to the console with writeln). But, I got a message in the console saying shared libraries were

Re: Request for Features/Ideas: A std.archive package

2015-05-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-21 00:46, Walter Bright wrote: Clearly, we need a Deimos entry for libarchive. https://github.com/d-programming-deimos No, it needs to be a Dub package. Can we please kill Deimos. -- /Jacob Carlborg

Re: Request for Features/Ideas: A std.archive package

2015-05-21 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-20 22:00, ketmar wrote: `spawnProcess(unrar, x, uselessarchive.rar);` That is the ugly workaround. Which means you need to include a tool for unraring along with your own application. -- /Jacob Carlborg

Re: Make dub part of the standard dmd distribution

2015-06-02 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-01 16:49, Jonathan M Davis wrote: And this is when Jacob Carlborg chimes in and says I told you so. ;) His favorite complaint about dub has always been that it combined package management and the build tool into one. :) -- /Jacob Carlborg

<    5   6   7   8   9   10   11   12   13   14   >