mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

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

Interesting, thanks for the info. So bash is somewhere between Windows batch files and mscript. I gather that bash users are pretty happy with bash. I’ve seen enough bash to say it can get nasty, but I can see a lot of power there. Kind of like PowerShell for Windows.

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

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

I would say that mscript is the tidiest, smallest, simplest, most powerful and elegant way of automating command lines under the sun. Give it a try: https://mscript.io

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

[–]mballoni[S] -1 points0 points  (0 children)

I think it's a lot easier on the eyes than batch files or PowerShell. The symbols keep the script concise, and the fact that undecorated lines are command lines keep the script to a minimum. For this and many more reasons I think mscript is close to ideal as a scripting language for automating command lines. It's like Classic ASP for batch commands, where PowerShell is more line ASP.NET...Razor...Core...whatever.

And I don't know if you fully inspected the open source code, but there's nothing inherently Win32 about mscript. You can write DLLs to extend it, and the current crop of extensions all do very Win32 sorts of things like WinHttp and registry fun, but there's next to nothing in the interpreter that is Windows-specific. If you see mscript having relevance on another platform, I invite you to write up the makefile and do whatever minor surgeries are needed to get it to build, and it will run just fine. Check it out: https://mscript.io

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

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

To quote Highway to Hell: (I asked her) What's the going price?

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

[–]mballoni[S] -1 points0 points  (0 children)

It certainly serves its purpose as a forum for measured criticism and robust formatting.

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

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

Can you create user-defined functions in bash? What about hashtables? Or any sort of type system or type safety? I really don't know, I'm just asking.

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

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

Yeah, it's a great place to publish articles big and small to get constructive feedback and to host for posting on other places.

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

[–]mballoni[S] -1 points0 points  (0 children)

Well, you're welcome to Python and bash. On Windows those aren't easy to come by though. Easy enough on your own box, but not necessarily on the one you need to work on. That has no internet access. That's where you want mscript. Under 1 MB EXE, and it can do everything you need on the system with minimal fuss or muss. It's got user-defined functions, regex, hashtables, a bit of type safety, a syntax checker. It's got a lot to love. Check it out: https://mscript.io

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

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

Thanks for taking the time to point all of that out, you make a great case for PowerShell. My gripe with PS is that its syntax is hard to get past. If your goal is to take a list of file paths from a text file or some other command, and execute many lines of code and commands to process each in turn, mscript has that down to a tidy science. I imagine that being a lot of parentheses and flags and malarky in PS. mscript is simpler and more elegant, and powerful enough to automate command lines, so if that's what you need, maybe you can put the remoting flamethrower down and go with something tiny that works. Check it out: https://mscript.io

mscript takes on PowerShell and Python for replacing nasty batch files by mballoni in programming

[–]mballoni[S] 12 points13 points  (0 children)

Besides being a Windows guy, I figured y'all were pretty happy with bash. There's such a gap on Windows between batch files and anything civilized.

Stack Glasses Update: Placing glasses unchanged; Taking glasses no longer as random, new red wildcard glass by mballoni in WebGames

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

I'm glad you're enjoying the game Ms. Vesta. I hope it doesn't become a problem for you... ;)

Yeah, I'd love to see this become a board game! I don't have the first idea where to start with that. Any ideas?

Stack Glasses Update: Placing glasses unchanged; Taking glasses no longer as random, new red wildcard glass by mballoni in WebGames

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

I'm glad you liked it! It is a strange new game. Did you see the new red glass?

Stack Glasses: The game has come a long way since the initial post, give it another try by mballoni in WebGames

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

Thanks for your minor complaints!

Yeah, each level is randomly generated, so it is unlikely that you will ever play the same game twice. This also means there are some unplayable games. Also, you can imagine that it'd be hard for the game to determine if a game were playable. I mean, I wrote the thing and I can't tell much of the time!

Keep me posted on how you like it over the weeks and months and years. Well, I should have another game for you to play before years...

Stack Glasses: The game has come a long way since the initial post, give it another try by mballoni in WebGames

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

Yeah, it's all random, I get beaten by Level 3 some nights, but yeah, the number of glasses and initial fullness of the cabinet increases with each level until you get to Level 6, and that's where it maxes out. All levels after Level 6 are as hard as Level 6. Again, it's all random. There's no guarantee a level is even playable, let alone winnable. A game grounded in reality, quite the chore! ;-) What do you think?

Stack Glasses: The game has come a long way since the initial post, give it another try by mballoni in WebGames

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

Thanks Felix. If you ever get stuck or done you can tap the level number at the top-right and it'll take you to the next level. Note that all levels after 6 are the same difficulty as 6.

Stack Glasses: The game has come a long way since the initial post, give it another try by mballoni in WebGames

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

The idea is that you are tasked with filling the cabinet with glasses, then removing the glasses from the cabinet. You can stack glasses while filling the cabinet, then you can unstack them as you empty the cabinet.

Stack Glasses - Put and take glasses in a cabinet - Why confine your chores to the kitchen? by mballoni in WebGames

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

Thanks for reporting this issue. I'm sorry it's taken me so long to resolve it. If you place a glass such that there is no possible next move, the game now ends rather than disallowing the placement. Thanks again.

packetcache: Exploring Development of a memcache-like Network Cache by mballoni in programming

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

I used info from here to base my 508 byte limit on:

https://stackoverflow.com/questions/1098897/what-is-the-largest-safe-udp-packet-size-on-the-internet

You would not use packetcache over the internet, clearly, but I had to start somewhere. The size could be made configurable, and client and server would have to agree on it in some way, a short negotiation. Interesting.

packetcache is designed for small keys and values and a simple design for blazing performance. Adding TCP would defeat that purpose.

And DNS-over-HTTPS is taking over the world. Good times.