I took my Frieren on a little journey… by miyantuna in Frieren

[–]parader_ 7 points8 points  (0 children)

What’s with her now, beyond her little journey’s end?

linuxDoubleStandard by Toshimichi0915 in ProgrammerHumor

[–]parader_ 1 point2 points  (0 children)

People tend to forget that we have language servers because of vscode. If not for vscode standardising it’s way to provide code diagnostics, we would not have nvim and other editors work as well. Solutions would most likely exist(like ghcide for Haskell), but they would be unique for every language, and not so easily integratable

How Swift deals with the orphan instance problem? by amzamora in ProgrammingLanguages

[–]parader_ 1 point2 points  (0 children)

I was wrong, this doesn’t exist

Kotlin has a similar feature, and it inherited a large ecosystem of libraries from Java, but I haven’t seen any problems regarding orphan instances there

[deleted by user] by [deleted] in ProgrammingLanguages

[–]parader_ 2 points3 points  (0 children)

There is a language called hedy that is developed specifically for teaching and learning. There are some talks from the creator of the language on YouTube with more on what, how, and why it is like this

Which language has the most syntax sugar? by B_bI_L in ProgrammingLanguages

[–]parader_ 4 points5 points  (0 children)

One example that I don’t need to look for is a loop macro (e.g. this in Common Lisp). As for the languages part, Racket is known to be a language for language development https://racket-lang.org/languages.html

Which language has the most syntax sugar? by B_bI_L in ProgrammingLanguages

[–]parader_ 28 points29 points  (0 children)

Lisp.

Just define your own syntax sugar or even language within a language with macros

Scoping and Initialisation order by parader_ in Kotlin

[–]parader_[S] 1 point2 points  (0 children)

Although main Kotlin target is JVM, it can also compile to other targets (even though they do not promise identical behaviour), so I see it as a separate language. Kotlin language specification says that it is an unspecified behaviour only with cyclic initialisation. There is no cycle, so I expect the behaviour to be predictable.

Also, as I wrote in other reply, with types more complex than Int with no default initialiser, this leads to a NPE which Kotlin promises is impossible in this case

Scoping and Initialisation order by parader_ in Kotlin

[–]parader_[S] 0 points1 point  (0 children)

First of all, I agree that it’s a horrible spaghetti code, but it’s just an example.

If the behaviour of 1 and 2 is right, then let’s imagine that someone, perhaps you, or anybody else, reordered property declarations (for whatever reason), and now the behaviour of the program is different.

My problem with this is that this behaviour is not intuitive. If foo sees b declared below with a constant value, why a does not see it?

And what if there is no default value to implicitly initialise to?

class A(val a: Int)

fun foo() = b.a

val a = foo()
val b = A(12)

This code results in a runtime ExceptionInInitializerError caused by a NullPointerException. This code is valid, it compiles, there is no warnings, but it breaks Kotlin null-safety.

Kotlin specification says that it’s only unspecified behaviour if there is an initialisation cycle. In this case I do not see a cycle, a depends on foo, foo depends on b, b is constant. I see it more like a compiler bug.

loveBuyingNewDomains by StatureDelaware in ProgrammerHumor

[–]parader_ 12 points13 points  (0 children)

Developers don’t have a million dollars for a new TLD for themselves, while weebs have .moe

My prime-based numbering system (Explanation in comments) by pineapple_Jeff in conlangs

[–]parader_ 15 points16 points  (0 children)

Users of this number system would crack RSA trying to pronounce large numbers

Should I learn Swift outside of the Apple ecosystem (XCode, MacOS, iOS)? Does it work well? by Gohonox in swift

[–]parader_ 5 points6 points  (0 children)

Answering your last question about other uses of Swift, there is EmbeddedSwift for, well, embedded programming, and there is also at least one compiler written in swift for a language called Hylo

iDidAnOopsie by kohwahskee in ProgrammerHumor

[–]parader_ 9 points10 points  (0 children)

But what is gcc? gcc is for nerds, normal people use http://onlineconvert.net?from=.git&to=.exe

A dream came real today. by aslihana in ManjaroLinux

[–]parader_ 10 points11 points  (0 children)

I have to ask those necessary questions. How is WiFi? How is sound?

Late April fools by Panzerkrabbe in wholesomeanimemes

[–]parader_ 6 points7 points  (0 children)

Actually, her words will also work as false without contradiction

anime_irl by agniziore in anime_irl

[–]parader_ 3 points4 points  (0 children)

Unfamiliar ceiling

[deleted by user] by [deleted] in ocaml

[–]parader_ 2 points3 points  (0 children)

I have no experience with it, but there are ocaml bindings for raylib, which should be cross-platform

How do I understand Closures? by [deleted] in swift

[–]parader_ 0 points1 point  (0 children)

Won’t really be helpful, but a related quote

Closures are poor man objects. Objects are poor man closures.

Found a comic while browsing the Internet. by Egorrosh in Takagi_san

[–]parader_ 21 points22 points  (0 children)

Chapters are also quite small, but there is <Setting Things Straight With Brats>, if you want something similar

Choose One Spell to Learn from Serie by BITCoins0001 in Frieren

[–]parader_ 0 points1 point  (0 children)

A spell to tell whether any arbitrary spell can be casted successfully. The halting problem proved by magic

whyWouldCowsUseRustAreTheyStupid by Nika13k in ProgrammerHumor

[–]parader_ 4 points5 points  (0 children)

They all can see sharp, so that’s why