@quartata It bothers me more than it probably should that you got the first and last of four things. The original full quote is "One ring to rule them all, one ring to find them. One ring to bring them all and in the darkness bind them."
Well, This may seem awkward, We have a logic tag, but not a single "logical expression calculator".
Instructions
Simple.Golf a program that Reads(or input) the logical expression, calculates it, and output the results.
There are these logical functions.
NOT(a)
AND(a,b)
OR(a,b)
XOR(a,b)
You...
I imagine it reserves C:\ubuntu or something as the virtual root of the Ubuntu system, then installs stuff under that as it would do in a normal Ubuntu install.
@Sherlock9 I can't imagine that there wouldn't be any applications of Lisp in high-performance situations. I can, however, imagine that there are so few Lisp programmers in relation to C/C++ programmers that it'd be hard to find those applications. Unless you google stuff like "Lisp game" or "high performance Lisp", etc.
at least in my small sample size of my current workplace, there's only 1 other programmer (that I know of), that understands/uses things like map
that said, there's only 15 or so of us
it obviously depends on culture, hiring practices, but I still don't think that the average programmer uses them. They'd still fall back on for loops and such
@zyabin101 Type the text in a text editor with the correct color and font, justify it to the right width, take a screenshot, paste into your image editor. — mbomb0079 mins ago
the problem IMO with allowing code blocks is that I think they should be made a named function. That said, we're getting into the territory of whether you can give the programmer too much power
@NathanMerrill For me, it's not so straightforward as "moar power!" It's more like, a potential feature should never be rejected on the basis of "Why would anyone need/use that?" or similar complaints.
@El'endiaStarman I agree with Nathan to a certain extent, I think it is sort of like tags on SE sites. We should reject tags that we don't think will be useful to other people, just like I think you should reject features that seem to mostly serve to complicate a language, rather than make it more expressive. Otherwise, add it to an appropriate library, instead.
@NathanMerrill Hmm. I'm not exactly doing that in Pytek, though. While I'm not strictly adhering to the Zen of Python with regards to having exactly one way to do X, I do think it's a good heuristic.
the "one way to do X" is a tradeoff. If there is only 1 way, then you have people saying "I wish I could do Y". If there are lots of ways, then you have people saying "what does Y do"?
@FryAmTheEggman Sure, which is why I've been aiming to find simple-ish but powerful ideas. In particular, I think the _ feature could be unexpectedly useful, depending on how I implement it. I'm not so sure about $, but I'll try it anyway.
@NathanMerrill Yeah. It's worth noting that Python actually has two ways to sort a list: sorted(L) and L.sort(). One is, however, in place and the other makes a copy.
aka, the C++ compiler frequently is unpredictable with what it generates (you have to know a lot about how it works to understand why it does what it does)
unless you're transpiling to another high-level language (like Java) then sure. but the generated code doesn't really matter if you're transpiling to for example machine code imo, as long as it's reasonably fast
ah, I must be an exception then. You should really try tongue typing sometime. The decreased distance between the screen and my eyes makes for faster response times
@HelkaHomba actually... osabie currently uses two linefeeds to separate the input from the source. is that allowed? (because that would help me as well)
@El'endiaStarman Thanks for the response. I should look into that
@NathanMerrill And there is the line in the Zen of Python about "there should be only one way to do thing, though that way may not be obvious unless you're Dutch"
Picking the obvious choice is a fairly good heuristic though. See: the several times Conor (and other people) asked "How do I do X in Python?" and the answer was almost exactly X.
@El'endiaStarman yeah, following standards is crucial. I was more or less saying that if you have feature A that is similar to B in a different language, you shouldn't use the syntax of A
I was going to use <> for my dependent type system, so that I could do String<4> to indicate a string of length 4. However, I've abandonded that for String@length=4
besides being less powerful, it gets confusing when you try to compare it to other language's type systems
Random thought I just had: is there a certain angle and speed of flowing water that would result in a wave standing still if it's moving against the flow of water?
@El'endiaStarman open the tap. around the spot where the water hits the sink the water will be very shallow and streaming away, but then a few centimetres on it will suddenly get deeper (and that boundary should be roughly stationary). that's a hydraulic jump.