November 27, 2023

On Monday, 27 November 2023 at 13:08:18 UTC, Martyn wrote:

>

...
...
Just my thoughts. Dlang, I think, goes in the same category as C#... until further notice.

I accidentally hit send.

What else would be in the same category as C# ??

I think that depends on what you are trying to do.
Depending on what it is you are doing, alternatives could be Go, Dart, Kotlin, or to some degree.... node. (please dont throw stones at me!)

Of course - we also have D.

November 27, 2023

On Monday, 27 November 2023 at 13:31:31 UTC, Martyn wrote:

>

Depending on what it is you are doing, alternatives could be Go, Dart, Kotlin, or to some degree.... node.

It's a quite asinine myth that you need to learn a new language for every program you write. Coincidentally today languages tend to compete everywhere from native to web and kernels.

November 27, 2023

On Monday, 27 November 2023 at 10:22:52 UTC, Kagamin wrote:

>

On Sunday, 26 November 2023 at 18:23:13 UTC, Daniel N wrote:

>

What's wrong with native kotlin?

It's in hybrid pascal family.

fun <T> Sequence<T>.chunked(size: Int): Sequence<List<T>>

Is Sequence its approach to slices?

Well...

val array = arrayOf(1, 2, 3, 4, 5, 6, 7, 8, 9)
val slice = array.sliceArray(0..3)

But check this sugar
https://kotlinlang.org/docs/lambdas.html#it-implicit-name-of-a-single-parameter

val sequenceResult = sequenceOf(1, 2, 3, 4, 5)
    .filter { it % 2 == 0 }
    .map { it * 2 }
    .toList()
November 28, 2023
public fun ByteArray.sliceArray(indices: IntRange): ByteArray {
    if (indices.isEmpty()) return ByteArray(0)
    return copyOfRange(indices.start, indices.endInclusive + 1)
}

Is this accurate? copyOfRange?

November 28, 2023

On Monday, 27 November 2023 at 16:11:34 UTC, Kagamin wrote:

>

On Monday, 27 November 2023 at 13:31:31 UTC, Martyn wrote:

>

Depending on what it is you are doing, alternatives could be Go, Dart, Kotlin, or to some degree.... node.
...
It's a quite asinine myth that you need to learn a new language for every program you write.
...

It was not my intention for my comment to come across this way. Some languages are generally suited for certain things but not others. I mean, I know there has been a comment from someone on here saying that D is great for server-side/background programs but **** for client/frontend.

Of course, there are languages that are doing well for most types of areas- and C# is an example. As for the alternatives I suggested, they are just that.. but if you already know or good as C#, do you really need to change? Probably not.

November 28, 2023

On Monday, 27 November 2023 at 13:08:18 UTC, Martyn wrote:

>

On Sunday, 26 November 2023 at 17:52:24 UTC, Imperatorn wrote:

>

[...]

A D developer/supporter, when having discussions about Rust, Zig, Odin, Go, etc... are going to include D in the conversation as well.

[...]

Personally I think D could be really great if just a little more attention would be given to the ecosystem and tooling.

November 28, 2023

On Tuesday, 28 November 2023 at 15:17:50 UTC, Imperatorn wrote:

>

On Monday, 27 November 2023 at 13:08:18 UTC, Martyn wrote:

>

On Sunday, 26 November 2023 at 17:52:24 UTC, Imperatorn wrote:

>

[...]

A D developer/supporter, when having discussions about Rust, Zig, Odin, Go, etc... are going to include D in the conversation as well.

[...]

Personally I think D could be really great if just a little more attention would be given to the ecosystem and tooling.

why don't you start giving it the attention then?

November 28, 2023

On Tuesday, 28 November 2023 at 09:17:57 UTC, Martyn wrote:

>

It was not my intention for my comment to come across this way. Some languages are generally suited for certain things but not others. I mean, I know there has been a comment from someone on here saying that D is great for server-side/background programs but **** for client/frontend.

I use D for both regularly and don't see any obvious preference.

November 28, 2023

My recent project is gitlab automerger that automates its asinine branch-commit-request-merge workflow so that I don't see its humongous web 2.0 interface.

December 02, 2023

On Sunday, 26 November 2023 at 17:52:24 UTC, Imperatorn wrote:

>

Is there really any other language than D that can replace C++ and Rust?

Go is good, but very tedious to write.
Zig, Odin, Beef, V and Jai are not production ready (according to the creators themselves).

C# is the only thing is see that could be a serious alternative. Forget about Java, Kotlin or whatever.

But other than C#, are there really any serious alternatives?

I don't think Rust is the answer, for many reasons.

Well, maybe Nim would actually be a serious alternative, however, I'm kinda used to the C-style.

Any feedback?

If you want alternatives to D, just use any high-level with C interop. Still it's not nice as D, I hope DLang gets more attention it needs in future.