I'm using the "tokenized" scoring system that I've sued with all my previous scratch answers, but apparently the site has switched over to the scratchblocks2 scoring system
😤 There still would have been a bug because I got rid of it anyway and it was there and it didn't affect anything and this would have been the same in js etc.
What if your range is (0,32] for example? Then you'd have an almost 50% failure rate. Shouldn't affect performance too much but it would still not be very efficient. Then again, still probably would end up being more efficient than my approach :P
Also I need to hardcode [-] and [+] to zero a cell because with infinite bounds, it would take forever to actually zero a cell that's on the wrong side of 0.
I'm looking for a new programming language to learn. Not for golfing, or work, but for casual everyday personal use. Right now I've basically been using Java for everything. There are some things I like about Java vs. Perl or Python (stronger typing, etc.) but at the same time there's lots of things I don't like (verbosity, inflexibility, awkwardness at doing lots of things that would otherwise be built-in to a scripting language, etc.). Any suggestions for a language to learn?
I suggest Python, personally. It's fairly easy to use and its syntax makes sense, and although it's weakly-typed, it's not very verbose, it's flexible and portable across platforms, it has a lot of builtins (no more doing System.out.println :P), and it has a lot more syntactical sugar.
@PhiNotPi JavaScript. Many useful libs, very low probability for errors, neat syntax, dynamic typing and bonus - you already have an interpreter. Just hit F12.
@Downgoat I made anti-web-crawler to hide my email address from creepy webcrawlers
The left-side of my email address now looks like alpxeumABxamtOfp.tPYjFmVmyhPvdkAfrlTjAfAQvLsSjCJh.eiAgGZYeBEtrTylgzzzceIWRzmjPDHMimwuWtXvvMofmMvGIIhaeANwDGpuciAQOGbhwaKco
@HyperNeutrino Kotlin wiki. It's a JVM language (meaning compiled Kotlin code can work with compiled Java code), but claims to make significant improvements to Java. (edit: comparison with Java)
Also I love how my friend this one time was like "Infinity * Infinity is Infinity in JavaScript, but Infinity ^ Infinity is 0. Why?" and since he was talking to me I thought he was doing actual exponentiation so I was like "probably wraparound" but no, he was using XOR >.<
l+r = 0+2 = 2, 55 53 51 bytes
[>+[-<+>>+<]<[>]>[+[-<+<->>]<[->+<]]>[-<+>]<<]>[-]<
l+r = 1+2 = 3, 46 44 bytes
[[>+[-<+<+>>]<[<+[->->+<<]]>]>[>]<[-]<<[-]>]
My own algorithm. The pointer should begin at the number that needs to be zeroed. The time complexity is O(n^2).
How it works:
We star...
@Uriel Isn't Javascript really weird when it comes to order of execution, and functions, and other stuff? I mean, I've only used it a couple of times, but it never struck me as a language I would use for anything other than webpage development.
Whoa, I've made a regex golfing language which would have beaten the shortest answer (Retina) to the Rex challenge by almost 50%, had it existed at the time. Time to go to bed.
vsl::scope> @test func f() {}
Transform Error: Used undeclared annotation of name test (0:1)
1 | @test func f() {}
| ^^^^
FIX-IT:
• 2 available FIX-ITs
What would you like to do?
[1]. Rename annotation
[2]. Delete annotation
[3]. Exit
Your selection: 1
New name? inline
@inline func f() {}