Re: a van Emde Boas tree

2019-02-05 Thread Martin Drašar via Digitalmars-d-announce
Dne 5.2.2019 v 16:47 Dejan Lekic via Digitalmars-d-announce napsal(a): > On Tuesday, 5 February 2019 at 15:28:04 UTC, Alex wrote: >> Hi all, >> my van Emde Boas tree finally reached an announceable state, at >> version 0.12.0. > > vEB tree is an interesting data structure. Where is the

Re: SDL2 texture blend help

2017-12-13 Thread Martin Drašar via Digitalmars-d
Dne 13.12.2017 v 4:03 Ivan Trombley via Digitalmars-d napsal(a): > On Wednesday, 13 December 2017 at 01:44:33 UTC, Dmitry wrote: >> On Tuesday, 12 December 2017 at 23:28:23 UTC, Ivan Trombley wrote: >>> Here's the code that produces the correct results (exactly the same >>> as GIMP): >> Share

Re: remake of remake of Konami's Knightmare

2017-11-23 Thread Martin Drašar via Digitalmars-d-announce
Dne 23.11.2017 v 13:18 ketmar via Digitalmars-d-announce napsal(a): > recently i worked on remake of DOS remake of Konami's Knightmare > game[0]. the game is playable now, it has music from original MSX > Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of > course, and it is

Re: Using lazy code to process large files

2017-08-02 Thread Martin Drašar via Digitalmars-d-learn
Dne 2.8.2017 v 14:45 Steven Schveighoffer via Digitalmars-d-learn napsal(a): > The problem is that you are 2 ranges deep when you apply splitter. The > result of the map is a range of ranges. > > Then when you apply stringStripleft, you are applying to the map result, > not the splitter result.

Re: Using lazy code to process large files

2017-08-02 Thread Martin Drašar via Digitalmars-d-learn
Dne 2.8.2017 v 14:11 Daniel Kozak via Digitalmars-d-learn napsal(a): > import std.stdio; > import std.algorithm; > > void main() > { > > > auto input = ["... some text, another text", "some,another","...so,an"]; > > auto result = input.filter!(a => a.startsWith("...")) >

Using lazy code to process large files

2017-08-02 Thread Martin Drašar via Digitalmars-d-learn
Hi, I am struggling to use a lazy range-based code to process large text files. My task is simple, i.e., I can write a non-range-based code in a really short time, but I wanted to try different approach and I am hitting a wall after wall. Task: read a csv-like input, take only lines starting

Re: Passing macros from commandline or enumerating versions

2017-03-08 Thread Martin Drašar via Digitalmars-d-learn
Dne 7.3.2017 v 22:36 Adam D. Ruppe via Digitalmars-d-learn napsal(a): > The way I like to do it is to pass a module on the command line that > contains the custom config. So in the app: > > --- > import myapp.config; > > // use the variables defined in there like normal > --- > > > Now, to

Passing macros from commandline or enumerating versions

2017-03-07 Thread Martin Drašar via Digitalmars-d-learn
Hi, I was wondering, if there is a way to pass a macro with value to the compiled program, i.e., something like -Dfoo="bar". And if that is not possible, if there is a way to enumerate all set versions. I want my application built with different string imported configurations and I have no idea

Re: Box2D Lite D Port (Yet Another)

2016-10-31 Thread Martin Drašar via Digitalmars-d-announce
Dne 31.10.2016 v 10:56 ketmar via Digitalmars-d-announce napsal(a): >> I am asking, because it seems to contain some nice things (like a sat >> solver port) that may help others and could benefit from being more >> accessible than only with a programmer's spelunker gear. And I am >> saying this

Re: DlangUI 0.9.0: Console backend added

2016-09-09 Thread Martin Drašar via Digitalmars-d-announce
Dne 9.9.2016 v 13:21 Vadim Lopatin via Digitalmars-d-announce napsal(a): > Hello! > > Now it's possible to build DlangUI apps to run in console (Linux, Windows). > When DlangUI is built with version=USE_CONSOLE (dub subconfiguration > "console" for dlangui library) - it works in terminal. This

Re: IDE - Coedit 2, update 2 released

2016-03-19 Thread Martin Drašar via Digitalmars-d-announce
Dne 16.3.2016 v 13:41 Basile B. via Digitalmars-d-announce napsal(a): > Maybe in the next major version. > > Actually there's already a draft (see the source named ce_gdb.pas) but > it's not activated because it was really not worth. The only feature > that was implemented is the breaking on

Re: IDE - Coedit 2, update 2 released

2016-03-15 Thread Martin Drašar via Digitalmars-d-announce
Dne 15.3.2016 v 3:09 Basile B. via Digitalmars-d-announce napsal(a): > see https://github.com/BBasile/Coedit/releases/tag/2_update_2 Nice work! Any chance of getting debugging support eventually? I would love to ditch Visual Studio.

Re: extern(C++, ns)

2016-01-20 Thread Martin Drašar via Digitalmars-d
Dne 20.1.2016 v 23:01 Walter Bright via Digitalmars-d napsal(a): > I understand his suggestion. I asked Manu to elaborate what the "serious > problems" are. This code snippet doesn't work as it is not supposed to > work, but still unknown is what the "serious problem" with it is - and I > want to

Re: extern(C++, ns)

2016-01-13 Thread Martin Drašar via Digitalmars-d
Dne 13.1.2016 v 7:51 Walter Bright via Digitalmars-d napsal(a): > If you like: > > extern (C++) { > int a; > extern (C++,ns) { > int a; > } > } > > The whole point of scoped names is to be able to do this. > > Also, I would expect to be able to access

Re: "Good PR" mechanical check

2016-01-12 Thread Martin Drašar via Digitalmars-d
Dne 12.1.2016 v 14:34 Andrei Alexandrescu via Digitalmars-d napsal(a): > Related to https://github.com/D-Programming-Language/dlang.org/pull/1191: > > A friend who is in the GNU community told me a while ago they have a > mechanical style checker that people can run against their proposed >

Re: Regex benchmarks in Rust, Scala, D and F#

2016-01-05 Thread Martin Drašar via Digitalmars-d
Dne 5.1.2016 v 19:09 deadalnix via Digitalmars-d napsal(a): > On Tuesday, 5 January 2016 at 17:52:39 UTC, Karthikeyan wrote: >> Hi, >> >> Came across this post in rust-lang subreddit about the regex >> benchamrks. Scala surprisingly outperforms D. LDC also gives a good >> advantage for efficiency

Re: Please vote for the DConf logo

2015-11-14 Thread Martin Drašar via Digitalmars-d-announce
Dne 13.11.2015 v 15:52 anonymous via Digitalmars-d-announce napsal(a): > On 13.11.2015 15:22, Andrei Alexandrescu wrote: >> By my count: >> >> * 1.1:xxx >> * 1.2:xxx >> * 2: xxx >> * 3: xx >> * 3, change font:

Re: 1st Ever Artificial Consciousness to be Written in D Language

2015-09-02 Thread Martin Drašar via Digitalmars-d-announce
Dne 2.9.2015 v 16:41 GrandAxe via Digitalmars-d-announce napsal(a): > This is to inform the D Language community that the first viable general > artificial algorithm is being written in D. It is called Organic Big > data intelligence (OBI); the website is at www.okeuvo.com. > > Some of its

Re: 1st Ever Artificial Consciousness to be Written in D Language

2015-09-02 Thread Martin Drašar via Digitalmars-d-announce
Dne 2.9.2015 v 19:10 GrandAxe via Digitalmars-d-announce napsal(a): > Scam?! I haven't asked you for a farthing, so what nonsense are you > talking about? > > Why not just wait until the end of September before you explore the > limits of rudeness? That's just an observation based on experience

Re: [OT] Sharp Regrets: Top 10 Worst C# Features

2015-08-19 Thread Martin Drašar via Digitalmars-d
Dne 19.8.2015 v 3:12 Adam D. Ruppe via Digitalmars-d napsal(a): I just saw this link come by my desktop and I thought it was an interesting read because D does a lot of these things too, and avoids some of them: http://www.informit.com/articles/article.aspx?p=2425867 I don't agree they

Re: Future(s) for D.

2015-06-24 Thread Martin Drašar via Digitalmars-d
Dne 24.6.2015 v 11:07 Chris via Digitalmars-d napsal(a): Speaking of which, just found this in a job add (no joke). Sure, who doesn't have all of these qualifications: Required Doctorate Degree At least 5 years experience in the areas of information extraction and machine

Re: Future(s) for D.

2015-06-24 Thread Martin Drašar via Digitalmars-d
Dne 24.6.2015 v 14:15 Chris via Digitalmars-d napsal(a): Sure, this smells like a job description tailor made for someone they already have in mind. However, I wonder what experience means. Yeah, I've played around with Java and C++ or I'm really into the two languages and know them very well.

Re: DDocs.org: auto-generated documentation for all DUB projects (WIP)

2015-02-11 Thread Martin Drašar via Digitalmars-d-announce
Dne 10.2.2015 v 23:40 Kiith-Sa via Digitalmars-d-announce napsal(a): DDocs.org (http://ddocs.org) is a repository of documentation for DUB projects that automatically re-generates docs as new projects/releases/branch changes are added. ... That is fantastic! I always wanted something like

Re: DlangIDE

2015-02-11 Thread Martin Drašar via Digitalmars-d-announce
Dne 11.2.2015 v 14:16 Vadim Lopatin via Digitalmars-d-announce napsal(a): Matching [ { ( ) } ] highlight is implemented Delete line is available with Ctrl+Y Indent/unindent - new shortcuts added Ctrl + [ ] Hi, when you say that a certain combination is used for something, does that mean

Re: Czech D community

2015-01-31 Thread Martin Drašar via Digitalmars-d
Given the overwhelming number of responses you received, I would suggest to adhere to Kiith-Sa's suggestion of dropping the idea of a czech-only forum. I think that we are more likely to meet for a beer than to make such forum alive in near future. Martin smime.p7s Description: Elektronicky

Re: [website redesign] PR for the one with the big red menu bar

2015-01-28 Thread Martin Drašar via Digitalmars-d
Dne 27.1.2015 v 21:02 anonymous via Digitalmars-d napsal(a): PR: https://github.com/D-Programming-Language/dlang.org/pull/869 - For details see here. Live version: http://ag0aep6g-dlang.rhcloud.com - If you've visited this before, you may have to clear your cache to see the proper logo color.

Re: Czech D community

2015-01-25 Thread Martin Drašar via Digitalmars-d
Dne 25.1.2015 v 19:23 Daniel Kozak via Digitalmars-d napsal(a): Cus, je tady nekdo z ceska? Vlastnim domenu dlang.cz a mam v planu tam rozchodit stranky tykajici se jazyka D (navody, dokumetaci, forum, mozna i neco jako knihu o Decku). Pokud ano a mate zajem se na tom jakkoliv podilet

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-23 Thread Martin Drašar via Digitalmars-d
Dne 23.1.2015 v 19:16 Andrei Alexandrescu via Digitalmars-d napsal(a): Both are nice: http://tour.golang.org/welcome/1 http://rustbyexample.com/ Or something along the lines of https://tryhaskell.org With possible integration with D REPL. smime.p7s Description: Elektronicky podpis S/MIME

Re: How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows?

2015-01-07 Thread Martin Drašar via Digitalmars-d-learn
Dne 7.1.2015 v 12:00 Laeeth Isharc via Digitalmars-d-learn napsal(a): What you want is some kind of code obfuscation. The easiest thing for you is to use exe compression. It is not going to stop a dedicated attacker, but ordinary people will not be able to extract any information from it.

Re: How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows?

2015-01-06 Thread Martin Drašar via Digitalmars-d-learn
Dne 6.1.2015 v 18:15 FrankLike via Digitalmars-d-learn napsal(a): How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows? If you build a exe ,such as which can get Data from DataBase,when you modify the exe's extension to 'txt', and you

Re: Error: function declaration without return type.

2015-01-06 Thread Martin Drašar via Digitalmars-d-learn
Dne 6.1.2015 v 22:25 Suliman via Digitalmars-d-learn napsal(a): On Tuesday, 6 January 2015 at 21:19:38 UTC, bearophile wrote: Suliman: void foo() { writeln(test); writeln(mystring); } foo(); } I guess you have to remove that line. Bye, bearophile Why? I

Re: Very short anonymous survey

2014-12-10 Thread Martin Drašar via Digitalmars-d
Dne 10.12.2014 v 6:33 Anonymous via Digitalmars-d napsal(a): Hello all, If I could have a minute of your time for a short anonymous survey regarding D libraries and tools, I'd really appreciate it. http://goo.gl/forms/lMrHRr335C This is explained further in the link above, but for

Re: Programming in D book, draft of the first print edition and eBook formats

2014-11-26 Thread Martin Drašar via Digitalmars-d-announce
This is HUGE! I've gone through many of your chapters, but it was just now, after seeing it as a one 700 pages long book, that I truly realized how much of a work this must have been. Thank you. Can't wait to have it on the shelf... Martin smime.p7s Description: Elektronicky podpis S/MIME

Re: What are the worst parts of D?

2014-10-13 Thread Martin Drašar via Digitalmars-d
Dne 13.10.2014 v 23:09 ketmar via Digitalmars-d napsal(a): as i can't publish my current version of cmdcon, i decided to write another one from scratch. it contains alot less of mixin() codegens, can do everything cmdcon.d can do and has structs/classes already working. this is the excerpt

Re: Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

2014-10-09 Thread Martin Drašar via Digitalmars-d
Dne 9.10.2014 v 10:50 Martin Nowak via Digitalmars-d napsal(a): Would this affect your code? yes, but I understand the rationale so I don't mind Do you think it makes your code better or worse? less ambiguous, so I would say better Is this just a pointless style change? no -- Martin

Re: What are the worst parts of D?

2014-10-06 Thread Martin Drašar via Digitalmars-d
Dne 3.10.2014 v 16:42 ketmar via Digitalmars-d napsal(a): alas, only very old and rudimentary module is available. basically, it's the core of the full-featured console, but... only the core, and not very well written. i'm planning to opensource fully working thingy with bells and whistles

Re: What are the worst parts of D?

2014-10-06 Thread Martin Drašar via Digitalmars-d
Dne 6.10.2014 v 12:15 ketmar via Digitalmars-d napsal(a): On Mon, 06 Oct 2014 10:22:01 +0200 Martin Drašar via Digitalmars-d digitalmars-d@puremagic.com wrote: as i said this is the very first version of cmdcon, not the one i'm using now. i'm not able to publish the current version yet

Re: What are the worst parts of D?

2014-10-03 Thread Martin Drašar via Digitalmars-d
Dne 2.10.2014 v 19:02 ketmar via Digitalmars-d napsal(a): On Thu, 02 Oct 2014 16:45:21 + via Digitalmars-d digitalmars-d@puremagic.com wrote: That's pretty cool, so you basically use the reflection capabilities of D to generate your own custom CLI to the application? yes. some naming

Re: Voting: std.logger

2014-07-29 Thread Martin Drašar via Digitalmars-d
Dne 29.7.2014 7:11, Dicebot via Digitalmars-d napsal(a): (sorry for being a bit late, was distracted) std.logger proposal by Robert Schadek enters voting period which will last two weeks starting from now. Discussion thread : http://forum.dlang.org/post/zhvmkbahrqtgkptdl...@forum.dlang.org