Live data from Hacker News

The Senegal Programming Language

github.com

41–50 of 80 posts

Re: The Senegal Programming Language

#41
post #10

Earlier quoted context omitted.

The "enhance" seem to be monkey patching, which is a common practice in dynamic languages. Prototype pollution is when malicious people use monkey patching to introduce vulnerabilities.

There are non-malicious issues related to prototype pollution. The most recent that comes to mind are packages overwriting each other. How do you handle two enhances that add the same function name? In JavaScript the second overwrites the first, which can cause issues if the functions do different things.

This may be apocryphal, but I thought JS's `Array.includes` method was so-named when it was added to the spec to avoid conflicting with popular libraries that were adding a `contains` method to the Array prototype. In order to avoid conflicting and breaking existing sites, a less-common name was chosen for the spec.

Re: The Senegal Programming Language

#42

I was wondering where all the traffic on the repo was coming from after months of inactivity lol. Most comments (so far) are asking "why?". Its honestly a fair question, what does this language offer that others dont? Nothing really, this project isn't anything serious I just wanted to have some fun with it. Regardless, I'll put up a why section.

Might be off-topic but how did you get notified about the high traffic? If my website had a high traffic I would not notice at all. I do not feel like writing a script to notify me either.

Re: The Senegal Programming Language

#43

so many new programming languages come out that are almost identical to existing ones. Where's the crazy ideas (aside from the esoteric languages, which are different because they're intentionally difficult). I'd love to see more entries in the areas other than OO or procedural languages (or even just a variation on those, like an actor-model language). There's so many ideas in the programming language theory space t…

I'm still waiting for the programming language that doesn't take off on tangentially obscure ideas, but address the three fundamental dimensions of a computer program, state, functionality, and interaction dynamics, on an equal footing and with a clean orthogonal architecture. I've only met this mindset way back in Object-Oriented Modeling and Design 1st Edition, by James R. Rumbaugh et.al. The book is not about programming language design but about how to use these ideas when programming in existing languages. Despite it being otherwise somewhat immature I remember it as a very inspirational read.

Re: The Senegal Programming Language

#44
post #25

I'm curious as to why they have 'this.' to access class fields. JavaScript uses this because the architecture for accessing fields predates the existence of classes (even then I feel it should be extended to allow fields be accessed without 'this.' if the field and usage exist within the same class definition.) Surely a compiler should be smart enough to not require a 'this.' if the name is in the scope of the class…

I dislike implicit 'this' immensely. It is very common for local variables to shadow instance variables, e.g. in a constructor. Habitual use of shadowing can lead to bugs, for instance if you mistype a local variable declaration a later use of the intended name might default to the instance variable. Ruby is my favourite with @foo, it's concise but explicit. Because of this, languages with implicit this tend to have a convention such as "instance variables must start with an underscore", which is just a poor man's sigil.

Here's an example:

In early versions of Swift, using print("hello world") in a UI class would open a print dialog, because it dispatched the print: instance method on NSView, instead of the global print function.

Re: The Senegal Programming Language

#45

Senegal is the name of a country

Java is the name of an island in Indonesia. C# is a note commonly used in 12-tone chromatic scale. Ruby is a gemstone. Bash is a violent action. Racket is a fraudulent scheme, which…

and so what? it's not the same as using the name of a prominent country

it's disrespectful, stupid, and won't help you for SEO or searchability anyways

they probably looked for name of birds and stopped there, uncultured

Re: The Senegal Programming Language

#46

Earlier quoted context omitted.

There's a Discord where you can probably get the answer to your question: https://discord.gg/9dq6YB2

Official Discords/Slacks for programming languages should be considered an antipattern - especially if they end up replacing documentation or a discussion group. It's as if the new generation of developers doesn't realize the difference between transient conversations (which is what happens on Discord/Slack) and creating knowledge (which needs to be persistent and searchable, neither of which is afforded by aforement…

it's not a "new generation of developers" problem

it comes down to the intelligence of a person

having low IQ makes you do that kind of mistakes

it's the same for feedback, some people prefer lies so you don't hurt people saying the truth

they even institutionalize that as a rule, and they then silent you, because you hurt people by telling them actual facts without artificial rounded edges aka lub

Re: The Senegal Programming Language

#47

I was wondering where all the traffic on the repo was coming from after months of inactivity lol. Most comments (so far) are asking "why?". Its honestly a fair question, what does this language offer that others dont? Nothing really, this project isn't anything serious I just wanted to have some fun with it. Regardless, I'll put up a why section.

Might be off-topic but how did you get notified about the high traffic? If my website had a high traffic I would not notice at all. I do not feel like writing a script to notify me either.

Discord webhooks with GitHub, a lot of people were starring(?) it on github

Re: The Senegal Programming Language

#48

Earlier quoted context omitted.

Java is the name of an island in Indonesia. C# is a note commonly used in 12-tone chromatic scale. Ruby is a gemstone. Bash is a violent action. Racket is a fraudulent scheme, which…

and so what? it's not the same as using the name of a prominent country it's disrespectful, stupid, and won't help you for SEO or searchability anyways they probably looked for name of birds and stopped there, uncultured

(Mind blown) Maybe try asking before making a fool out of yourself lol.

https://news.ycombinator.com/item?id=28823129

Re: The Senegal Programming Language

#49

Earlier quoted context omitted.

Java is the name of an island in Indonesia. C# is a note commonly used in 12-tone chromatic scale. Ruby is a gemstone. Bash is a violent action. Racket is a fraudulent scheme, which…

and so what? it's not the same as using the name of a prominent country it's disrespectful, stupid, and won't help you for SEO or searchability anyways they probably looked for name of birds and stopped there, uncultured

Why is it disrespectful? Or “stupid”? What SEO benefit do you think any project expects to get from choosing to share a name with any country?

Re: The Senegal Programming Language

#50

I was wondering where all the traffic on the repo was coming from after months of inactivity lol. Most comments (so far) are asking "why?". Its honestly a fair question, what does this language offer that others dont? Nothing really, this project isn't anything serious I just wanted to have some fun with it. Regardless, I'll put up a why section.

Nothing wrong with that! The world would be a lot less interesting if every project were useful
Post reply on HN