fushuan

joined 2 years ago
[–] fushuan@lemm.ee 2 points 1 month ago* (last edited 1 month ago)

the main issue presented in the meme is that python is "weird" because it doesn't have a default launch entrypoint like rust (I think) and c/c++. Both are compiled languages and python is generally not. When python is used in a compiled manner (wheels) however, it also does have a way to specify entrypoints, so the meme is comparing specifically compiled languages with interpreted scripting languages.

However, python is not weird at all about not having a general entrypoint in the scripting interpreted form, because all the other interpreted scripting languages work like that! Examples include all shell script languages like bash, zsh or fish, and other languages like javascript or R are similar.

The one I responded to however stated that they don't care that bash is similar because bash is also "insane" or "not sane", but as previously stated in this comment, all scripting languages have a lack of a funcion based entrypoint for their scripts, so I wonder which language are they using for their fast scripting if even bash is "not sane" for them.

My underlying point that i was trying to make in my first comment on this chain is that complaining that tools that are used in different use-cases are not similar is a pretty uneducated take that clearly shows a lack of diverse experience in the field.

Note: In my first comment on this chain I was expanding upon the comment of the one I responded to, as you can see that they are making a similar point when specifying that python's example is a different thing than the ones on top.

[–] fushuan@lemm.ee 2 points 1 month ago (1 children)

You mean the "want to be zsh but with a specific config instead of having the liberty to do anything" shell? /s

Jokes aside, regardless of your shell of choice, in companies there are tons of scripts that launch programs, processes and so on, that will generally be coded in bash. Scripts that process files, take the output, send emails... All in a single script. The shell of remote nodes won't be zsh or fish, it will be bash, and a lot of them won't even have vim installed, only vi. Like it or not, bash is heavily used in a looot of places.

[–] fushuan@lemm.ee 1 points 1 month ago

It's my fucking keyboard. I'm all in for open source and stuff but it's too much, I had to go back to proprietary ones because the other ones just suck for multi language inputs :(

[–] fushuan@lemm.ee 4 points 1 month ago (5 children)

What other saner languages do you use for scripts, though? All scripting languages share the particular complaint showcased in this post.

[–] fushuan@lemm.ee 11 points 1 month ago* (last edited 1 month ago) (3 children)

I'm gonna repeat what I wrote in another comment. You are comparing the default interpreted way of running python~~g~~ to a compiled language. When you compile a python program into a wheel, you define the entry points of the code on it, and they point to functions like main() or whatever you define.

You aren't complaining that a index.js doesn't automatically run the main function when run by node, or that bash doesn't also have a default main function execution. Interpreted languages oriented to scripting won't have the same rules as compiled languages.

programming languages aren't usually cursed, what's cursed is the way some people decide to structure their programs. I've seen some stuff.

[–] fushuan@lemm.ee 10 points 1 month ago (11 children)

Agreed, when building the wheel in python we can also define entry points like a main function, and run it the same way the compiled C code is run.

These people are comparing the interpreted raw python code to a compiled C binary. My dudes, bash doesn't have a main function either and no one is fucking complaining.

[–] fushuan@lemm.ee 2 points 1 month ago (1 children)

When you say Chromecast, do you mean that you cast the android app to the TV? Because that experience is fine, its the native androidtv app I'm complaining about. And it's not only the player, the android app is able to select the subtitles on the menu before launching the MPV player. In any case yeah, I'll test the performance of the android app casting and just do that.

[–] fushuan@lemm.ee 2 points 1 month ago* (last edited 1 month ago) (3 children)

Oh, but I will. For it to be a fork of enby, it's fucking amazing how bad the androidTV app is in comparison. The media player has improved,but its still way slower then using an external one,which is weird. It also freezes for a solid 5 seconds minimum every time I swap subtitles (while the vlc external player does it on the fly), and it makes me change subtitles every single time I load a chapter. Envy's player lets the user set a preferred subtitle language and it makes an effort to preselect one. Not only that,but you can seal that on a series basis and you can select the subtitle before starting the video on the user interface.

It has improved since I last tried it and at least it doesn't die while transcoding or whatever, but the difference in performance of the android app/web version to the androifTV app is crazy. It would be better to adapt the android/web version of the app the manage a TV input than make the androidTV app actually useable...

Besides that its amazing :)

I rescind most of what I said because I just checked that the android app has TV casting (it didnt last time I checked) and the android app does have the preselecting and the player is waaaay smoother. Its comical that casting is a better user experience then using the native app but whatever.

[–] fushuan@lemm.ee 4 points 1 month ago

(another user) I live in Spain, in a city where most of the region come to work. We have the vet in a nearby town, so we usually go there by car. Getting out of the city into the town takes around 15 minutes, of which around 10 are spent on a 120KMH highway. Bikes can't go on that road, completely banned, so they would need to go through another, way longer route. Yeah, it would take over an hour to go on a bike.

The people that live in that town that come to my city to work basically need a car, and it's not like they can't do their living in walking distance for every necessity but work. It is what it is.

also what the fuck 112 km/h is extremely fast

120KMH is the max here, but it's pretty common for highways to have that cap. Same for france iirc (130?) and germany, besides their funny uncapped road. In fact, sweden has very similar limits, where "motorways" go around 110 to 120. https://en.wikipedia.org/wiki/Speed_limits_in_Sweden

I'm surprised you don't know this, do you have a license?

[–] fushuan@lemm.ee 1 points 1 month ago

Sometimes I have to swap between two routed for several things, so I create a quick in-memory alias like aa=$(pwd)

Then I can cd $aa

[–] fushuan@lemm.ee 21 points 1 month ago (2 children)

Put this in bashrc or whatever flavour of shells's bashrc you use:

function cs () { cd "$@" && ls }

I didnt remember the function sintax of bash so I just copied it from SO.

[–] fushuan@lemm.ee 2 points 1 month ago* (last edited 1 month ago) (1 children)

Technically the covenant of champions gives the best ring in the game so if you pain through 30 invasions, you do gain benefit.

Also, by invasions I meant forced offline NPC imvasions in known spots where they easily respawn.

view more: ‹ prev next ›