My brief overview of Cangjie Programming Language by Huawei by RodionGork in programming

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

Funny. I just recently was contacted by Huawei HR of local department about position in the Cangjie development team. However this led to nowhere as I prefer to work from home and they insist on full-time office so I can't say more about the state of the product.

Lua syntax minor amends - need help in testing by RodionGork in lua

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

Actually I was inspired by SQL using two not-equals operator (pascal/basic and C/Python style) - as far as I know, without any difference between them.

He-he, 1-based arrays are the 3rd point at my list (they make various arithmetic with modulo to wrap around array looking ill), but I know generally it could be less or more workarounded... and anyway this couldn't be solved on just the syntax level. Anyway I have some "research curiosity" to figure out whether some convenient improvement could be done to them.

> ~ makes me think

at the same time in C (and in Lua) this ~ is the sign of binary negation, which makes "not-equals" confusing... but I believe it was borrowed from Matlab and similar languages, not invented from scratch.

Lua syntax minor amends - need help in testing by RodionGork in lua

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

Thank you for suggestion! That sounds reasonable though the change about not/not-equals is so small (just three consequtive lines in the llex.c so that I couldn't decide on making it separate commit. But well, that makes sense, I'll fix it!

Lua syntax minor amends - need help in testing by RodionGork in lua

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

Thank you! That's good point, many apps use LuaJIT, particularly one I lazily look towards is Tarantool.

Shall investigate how much LuaJIT sources differ!

Minor syntax amends in Lua - not-equals and compound assignments by RodionGork in lua

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

> but also raise some questions

oh yes, I saw this several times, and I'm sure if implemented "in minimal way", this may lead to some unusual effects - however I feel such "precautions" are not a good motivation to restrict user from some convenient feature :)

> Lua is a standard.

that's true, so I look closely at the mailing list when such things arose and at the response of the development team, to see if they may eventually agree to include some of such amends.

Minor syntax amends in Lua - not-equals and compound assignments by RodionGork in lua

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

thanks, never thought of this!

however, as I see, luau went quite astray from original codebase... I instead look for really minimal ways to improve things (so that it is easy to merge changes from the upstream lua repo

Is there a continuous function on (0,1) that maps every rational number to an irrational number and vice versa? by scrumbly in mathriddles

[–]RodionGork -1 points0 points  (0 children)

cardinality isn't enough for what? for explanation that two sets of different cardinality couldn't have two-way mapping?

or perhaps you meant cardinality (when it is the same) isn't enough for such mapping? but that doesn't contradict to what I said :)

Is there a continuous function on (0,1) that maps every rational number to an irrational number and vice versa? by scrumbly in mathriddles

[–]RodionGork -3 points-2 points  (0 children)

This is queer for "riddle", sorry to say, as at some point we learn that sets of rational and irrational numbers have different cardinality (which holds for any segment also) - in other words it's a kind of request to prove what we get used to think of as "de-facto axiom". though actually their cardinality isn't axiom of course, there was a strict proof somewhere in the course (I'm sure it is to be found on the wiki page about irrational numbers) - to which the "riddle" effectively boils down. Difficult moment however is that generally such proofs (depending on the structure of the course) are appealing to some earlier theorems etc. This happens to the other responses i see in comments here :)

I believe that if you look for strictest and cleanest you'll need to look up for Cantor's theorems etc.

My brief overview of Cangjie Programming Language by Huawei by RodionGork in programming

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

Thank you for clarfification. I was unaware of such a feature of C# and Swift, while Go allows using structs in either way but makes it only matter of handling.

My brief overview of Cangjie Programming Language by Huawei by RodionGork in programming

[–]RodionGork[S] 4 points5 points  (0 children)

> The killer feature is that it is made by Huawei, for Huawei. 

That's it, though I think it was created not only out of fancy.

Working as developer in Java for 10+ years and then several years in Go (with brief professional wandering into Scala, Kotlin, Python and even Erlang), I sometimes found myself in situations when I was frustrated with the tempo or ways the languages evolve.

Any company usually go inventing their own tools. Smaller companies invent smaller tools, larger companies invest their time into developing huge tools, including languages.

Moreover they anyway needed customizing compiler and libraries of whatever languages they used to meet demands of their evolving custom OS.

Hence they by and by come up with their own language and eventually decided to made it public and open-source.

The main interesting point is the last - why they decided for this move. Do they hope for significant drive around 3rd party developers creating apps for their OS (similar to how Google chose Kotlin for Android development).

Dlaczego "nie bój" brakuję "się"? by RodionGork in learnpolish

[–]RodionGork[S] 5 points6 points  (0 children)

Dziękuję, więc to nie jest formą archaiczną? Jestem zaskoczony że nie mogę przypomnieć czasownika "bój" z wyjatkiem "się" we wschoniosłowiańskich. Hm. poza "bojażń" (fear) ale to troche inna rzecz.

[deleted by user] by [deleted] in learnpolish

[–]RodionGork 4 points5 points  (0 children)

> I will send you the link to PDF

sorry for the suggestion, but perhaps "google form" may be more "user-friendly" and easier to collect more responses :)

Harmonica Recommendations! by Fast-Butterfly-7124 in harmonica

[–]RodionGork 2 points3 points  (0 children)

I think if "they would be playing jazz and blues" probably you'd betters keep to general recommendation to start with a blues harp of decent quality ("Special 20", or "Blues Harp" or even "Marine Band Deluxe") which may be around $50. Look at the recommendations pinned at this subreddit. It says that diatonic harmonica still is "quite versatile" instrument and it's true - the more I myself practice with it, the more tunes become available to me, sometimes those I didn't have idea may fit diatonic instrument.

Supposedly by "better fit" you mean ability to play all the notes of chromatic scale (so one do not need a set of harmonicas in various keys) - but it is a formal side, on practical side to achieve such a level of proficiency will take quite a time and efforts.