News for hackers. Stuff that matters.
Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @01:56AM (#15015868)
Author here, I will be happy to answer some questions.
Re:Dao Programming Language by cju on Tuesday August 15, 2017 @12:54PM (#15019941)
This reminds me Stanza (http://lbstanza.org/). Do you know it and what differences would you point out ?
Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @10:55PM (#15024618)
I didn't know it. But according the introduction in its website, the differences are very easy to spot on: the syntax is obviously different; Stanza compiles directly to native code, but Dao doesn't; Dao supports class and inheritance, but Stanza not; concurrency support is also different. The main similarity seems to be both having optional typing.
Re:Dao Programming Language by copx on Tuesday August 15, 2017 @05:04AM (#15016571)
A. Is the language stable/mature enough for production use?

B. Do the concurrent features allow shared memory parallelism?

I currently use Lua if I need an embedded scripting language for a personal project and the one thing that annoys me is that Lua cannot utilize multiple cores effectively.

Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @05:34AM (#15016704)
> A. Is the language stable/mature enough for production use?

The language is stable now in terms of features, there will be no more significant changes in the language in the forseeable future. However, the document on the website is a bit outdated, I will update it in the coming days.

As for the implementation, I cannot say for sure, but I believe it is sufficient stable now. My colleagues and I have been using Dao to develop commercial product prototype in the past half year, the only tricky problems we experienced had something to do with the wrapping of a game engine. All (no many actually) other problems are quite trivial. After solving the problems related to the wrapping, the product prototype has been working quite smoothly.

However, our use may not have covered all the features of Dao, so there could be some parts less stable than the parts we have been using. But since we are actually using Dao in real products, we are obviously obliged to make it as stable as possible:)

> B. Do the concurrent features allow shared memory parallelism?

Yes.

Re:Dao Programming Language by jaxn on Tuesday August 15, 2017 @02:04AM (#15015902)
Is it pronounced Dow or Day-o?
Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @02:08AM (#15015910)
Dow. It is the same word as Tao, but in the official Pinyin writing that matches its Mandarin pronounciation.
Re:Dao Programming Language by billpg on Tuesday August 15, 2017 @11:58AM (#15019386)
Would you please tell my brain. Every time it sees that name it insists on going "Daylight come and I wanna go home."
Re:Dao Programming Language by jaxn on Monday August 21, 2017 @09:39PM (#15069121)
That makes me want to check it out more.
Re:Dao Programming Language by haskal on Tuesday August 15, 2017 @03:33AM (#15016224)
What's the Chinese character for Dao (if exists)?
Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @03:39AM (#15016238)
Re:Dao Programming Language by haskal on Tuesday August 15, 2017 @03:37AM (#15016234)
Oh, sorry.

道: found it on the Chinese version.

Re:Dao Programming Language by aidenn0 on Tuesday August 15, 2017 @02:55AM (#15016083)
Did you write the GC from scratch? How does it integrate with llvm?
Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @03:14AM (#15016153)
Yes, I wrote the GC from scratch. I am not sure if it can be integrated well with llvm, I never thought about it. The concurrent GC algorithm (plus a single threaded incremental collector) in Dao was inspired by the algorithm proposed in http://researcher.watson.ibm.com/researcher/files/us-bacon/B....
Re:Dao Programming Language by aidenn0 on Tuesday August 15, 2017 @04:39AM (#15016457)
IIRC reference counted GCs are easier to integrate with LLVM as there is no need to generate a global root set (which is one of the things that llvm makes hard).
Re:Dao Programming Language by NeoHermit on Tuesday August 15, 2017 @09:39AM (#15018048)
Right, this property of reference counted GCs can make certain things simpler.

I just realized that you asked the question probably because of the LLVM-based JIT compiler for Dao. This JIT compiler actually does not deal with GC at all, it just compiles consecutive segments of VM instructions into functions that will be called by the VM. Only a subset of the total VM instructions are compilable this way. It was intended for programs with a significant amount of numeric computation.