August 08

On Thursday, 8 August 2024 at 20:23:02 UTC, Sergey wrote:

>

On Thursday, 8 August 2024 at 20:20:11 UTC, Chris Piker wrote:

>

(the rest is D).

D in space when? :)

Unfortunately I'm only the ground segment, so D's not going to space today. But you never know what the future holds. (I did notice this the other night, https://wiki.osdev.org/D_Bare_Bones ...interesting.)

Back on Earth, I do hope my D based telemetry parser helps out a lot of missions over time. Btw, std.sumtype and dpq2 were notably useful in the work. Shout-outs to Paul and Denis are definitely in order. They get free beer from me if I'm ever lucky enough to run into either of them.

August 08

FYI, the code has been merged into the main branch already:

https://github.com/py2many/py2many/tree/main/pyd

On Thursday, 8 August 2024 at 20:20:11 UTC, Chris Piker wrote:

>

On Friday, 12 July 2024 at 18:07:50 UTC, mw wrote:

>

I have made basic py2many.pyd work at language/syntax level in my dlang fork:

https://github.com/mw66/py2many/tree/dlang

The following examples works now:

https://github.com/mw66/py2many/tree/dlang/tests/expected

py2many/ 13:56:23$ ls ./tests/expected/*.d
./tests/expected/bubble_sort.d
...

Outstanding! Thanks for the work! (Apologies for my slow response. I've been back on a C project for a while and didn't notice your posts.)

I will definitely make use of this when D is back atop the stack, should be about three weeks from now. One of my core support services still has about 20% python (the rest is D). Will be nice to convert the remaining 20%.

August 10

On Wednesday, 24 April 2024 at 19:50:45 UTC, Chris Piker wrote:

>

is anyone aware of any tools that generate an abstract syntax tree which could then be converted to somewhat equivalent D code?

Just keep in mind that dependence on such a method might cause you to overlook potential higher level transformations between the two languages; especially since they have vastly different feature-sets, and D is a language where you have to consider value vs reference semantics, whereas Python… uhh… makes my head hurt.

Does any of this code happen to be open-source?

August 15

On Saturday, 10 August 2024 at 11:10:01 UTC, IchorDev wrote:

>

Does any of this code happen to be open-source?

The initial code I'd like to convert isn't open-source yet, though it will have to be soon. NASA is big on open source these days. The logic being, the public paid for development, so the public should get to see it, and in the case of analysis software, verify it.

Looking down the road, the second and more difficult conversion on the horizon is currently still a CGI web-service: dasFlex. That one will take more careful attention as I'll likely go with a fiber based model and will likely require a fully manual re-write, though it is an example of work-a-day application code for a converter to chew on.

December 03

You might want to check out Mojo. It’s great for modernizing Python code and offers high performance with Python interoperability

December 03

On Tuesday, 3 December 2024 at 12:36:22 UTC, johnwalker wrote:

>

You might want to check out Mojo. It's great for modernizing Python code and offers high performance with Python interoperability

Mojo is interesting, though note that 'the language is evolving rapidly and source stability is not guaranteed':
https://docs.modular.com/mojo/faq/#whats-the-mojo-versioning-strategy

3 days ago

On Tuesday, 3 December 2024 at 12:36:22 UTC, johnwalker wrote:

>

You might want to check out Mojo. It’s great for modernizing Python code and offers high performance with Python interoperability

Thanks for the recommendation but I'm specifically looking to convert my legacy python to D. The rest of the system I've build is in D and I'd prefer single source language for ease of development and maintenance. There's already PyD for dual language development.

Though I probably shouldn't give in, this response does break my cool a little bit, so one time only...

rant /
It's perfectly okay to like other languages much better then D, but I find it off-putting when people advocate for other languages in a language specific forum. I don't go on Python sites and tell them to use something else, nor do I go to the locally owned automotive shop and tell customers in the lobby to get their car fixed somewhere else.

The D forum maintainers are very tolerant (hats off to them) but it's just crass to do this, especially on a site maintained by volunteers. You probably didn't mean much by the recommendation, but think of the many hours that D developers have poured into making the language useful and how disheartening it must be for them to see folks trying to pull away support on their own forum.

As far as I can tell, Mojo has nothing to do with D nor with the thread topic.
/ rant

3 days ago

On Friday, 20 December 2024 at 00:53:30 UTC, Chris Piker wrote:

>

Though I probably shouldn't give in, this response does break my cool a little bit, so one time only...

rant /
/ rant

Definitely seen worse Xmas rants here ;-)

Jordan

2 days ago

On Friday, 20 December 2024 at 00:53:30 UTC, Chris Piker wrote:

>

On Tuesday, 3 December 2024 at 12:36:22 UTC, johnwalker wrote:

>

You might want to check out Mojo. It’s great for modernizing Python code and offers high performance with Python interoperability

Based on the link to the not official website - it could be message from AI

>

Though I probably shouldn't give in, this response does break my cool a little bit, so one time only...

Even though here it is fine rant, but in general I think D community should be caught to live in their own bubble or in a bubble “hey look we are better than C++” and pretend that nothing else exist in the world except C++…

2 days ago

On Friday, 20 December 2024 at 00:53:30 UTC, Chris Piker wrote:

>

On Tuesday, 3 December 2024 at 12:36:22 UTC, johnwalker wrote:

>

You might want to check out Mojo. It’s great for modernizing Python code and offers high performance with Python interoperability

Thanks for the recommendation but I'm specifically looking to convert my legacy python to D. The rest of the system I've build is in D and I'd prefer single source language for ease of development and maintenance. There's already PyD for dual language development.

Though I probably shouldn't give in, this response does break my cool a little bit, so one time only...

rant /
It's perfectly okay to like other languages much better then D, but I find it off-putting when people advocate for other languages in a language specific forum. I don't go on Python sites and tell them to use something else, nor do I go to the locally owned automotive shop and tell customers in the lobby to get their car fixed somewhere else.

The D forum maintainers are very tolerant (hats off to them) but it's just crass to do this, especially on a site maintained by volunteers. You probably didn't mean much by the recommendation, but think of the many hours that D developers have poured into making the language useful and how disheartening it must be for them to see folks trying to pull away support on their own forum.

As far as I can tell, Mojo has nothing to do with D nor with the thread topic.
/ rant

I agree with your post so much.

It's like answering "Why not fry a nugget instead?" to the question "How do I fry an egg?"

1 2 3
Next ›   Last »