Docs » Welcome to xs’s documentation! View page source Welcome to xs’s documentation!¶ xs is a dynamically typed, dynamically scoped, concatenative array language inspired by kdb+/q and released into the public domain. The interpreter and builtin functions are written in OCaml. The name “xs” either stands for: eXtra Small The plural of “x” Check out the project page on github if you wish to browse the source, open an issue or pull request. xs aims to be a small language with a focus on compactness and expressiveness. Or email me at sturm@cryptm.org Installation Examples Tutorial Introduction Comments Function and Variables Operators Lists Scoping Data Types Day 1 Advent of Code 2019 Solution Language Reference Command-Line Parameters Syntax Data Types Parsing Scoping Math neg unary negative + addition - substraction * multiplication % division mod modulus ** power ln natural logarithm sin sine cos cosine tan tangent sum sum of list sums partial sums of list prod product of list prods partial products of list abs absolute value ceil ceiling floor floor Boolean and Conditionals == equals < less than > greater than gq greater or equal lq less or equal && And || Or if if expression cond multiple conditional every tests all true any any true cmp comparison Stack Manipulation dup duplicate element swap swap elements drop drop value Function Application . apply $ swap and apply Assignment : set/print ~ peek set/print :: reassign Iterators and Accumulators ' map '' map2 / fold \ scan fix fixpoint fixes partial fixpoints do iteration List and String [] make list enlist make list ^ delist til construct numbered list len length of list flip flip list rev reverse , concatenate ,, cons lower lowercase string upper uppercase string Indexing, Reshaping, Changing @ get ? find where # take _ drop cut reshape cat concatenate all cats partial concatenate all Set Operations in contains inter intersection union uniq unique elements Sorting asc sort ascending dsc sort descending sort custom sort Types of type conversion type sv scalar from vector vs vector from scalar I/O open open file read read data write write data seek change file position close close file handle readl read lines writel write lines Misc rand random value include evaluate file measure elapsed time eval evaluate
Stuff I feel like blogging about.
The moment you start treating your customers as captives, they begin to make other plans. It might take a while, but they always end up leaving. The first step is warning away their friends. On the…
For a long time, my top hardware frustration was to deal with a docked laptop that wouldn't wake up. It was sporadic but the scenario would be as follows. Even the best Thunderbolt dock at the time, the CalDigit TS3, would occasionally fail to wake up the system. It was super annoying. When Thunderbolt 4 was announced in 2020, I was ecstatic. Intel's Thunderbolt 4 Announcement Press Deck specifically mentioned solving my very problem with a section stating Required PC wake from sleep when computer is connected to a Thunderbolt dock. That meant the behavior was part of the (reportedly thorough) conformance test suite. I got the CalDigit TS4 as soon as it was released, in 2022. It was perhaps a little bit better but overall I was disappointed to still sometimes encounter a machine that would not wake up. At this point, I had pretty much given up and filed Thunderbolt's "wake from sleep" promise in the "unreliable" folder, right next to Bluetooth Pairing. Fast forward to 2025, when I needed to replace my aging BenQ and its dead pixels. I purchased an ASUS ROG Swift (PG27UCDM), mostly to see what the 240 Hz fuss was about ... and "wake up" became reliable. Since I switched the monitor, I have never experienced a failure. The system works perfectly, flawlessly waking the laptop and bringing the desktop online in under a second. To this day, I have no idea why it works. Maybe the old Ben-Q firmware was buggy. Maybe it simply took too long to wake up. I still have the same MacBook Pro 16" M1 Max and ThinkPad X1 Carbon Gen 9, did they receive firmware updates? Either way, I thought I'd share the details of my configuration, in case someone else is dealing with the same frustration.
I installed BTCC because of an ad that said I get something in the ballpark of $100 back from putting a deposit into it, on top of that stacking a referral code. I got roughly $30 from OKX, so I gave this one a try. I did both and while I got a good bonus, I realized all of it was a COUPON. Some was for buying options trading only, and the other to cover trading fees. Having no idea how options trading worked, I put a low risk bet in, and lost a bit before I could withdrawal my crypto to another platform. Ended up net negative from it, including the fees to withdrawal. submitted by /u/NewvelopedSound [link] [Kommentare]
Learned helplessness, the failure to escape shock induced by uncontrollable aversive events, was discovered half a century ago. Seligman and Maier (1967) theorized that animals learned that outcomes were independent of their responses-that nothing they did mattered-and that this learning undermined …