285 karma · joined January 14, 2017
Your comment seems to support, rather than disprove, the claim.
JS was around for years without much success before the browser became a popular platform for applications. People used to only write applications for the server or for platforms like Java and Flash that were just embedded as plugins in the browser. They only started using JS after improvements to browsers made it a better platform than the alternatives.
The Grand Duchy of Moscow existed from 1263 to 1547, but the beard tax was from 1698 (Tsardom of Russia) to 1772 (Russian Empire).
let y = f()(2, 3)
but there should be a different command to do (`alt-(` in paredit) let y = f((2, 3))
There should of course also be "slurp" and "barf" commands to add or remove items from the parentheses if you do the wrong thing first (or want to wrap multiple things in the parentheses)Scandinavia (counting only Sweden, Norway and Denmark) has a population of about 21 million, so it's actually bigger than any German state, and about the same size as Florida (3rd largest US state). If you count Finland too, it's about the size of Texas, so California is the only US state that's meaningfully bigger.
What is the difference between Datalog rules and SQL views?
The Suez Canal doesn't have locks, so in principle the length isn't limited. In reality it of course is limited by the harbours you intend to use. Apparently ships longer than 400m also require permission from the Suez Canal Authority.
More important for the claim that Chinamax is bigger is the tonnage. Chinamax can carry 400,000 tonnes, while Suezmax is typically under 200,000 tonnes.
What country is this? Your domain seems to indicate Kazakhstan, but they have one of the highest suicide rates in the world, so I suppose that's not it?
(defun main
()
(format t "Hello world")
)
Should be (defun main ()
(format t "Hello world"))
The lisp community has very well established formatting conventions. You pretty much never see closing parens on their own line like this except when reading code written by beginners (or some special cases like package export lists for example, where one might want to leave the list "open" for adding new symbols, similar to a trailing comma in some other languages).For example, you have a function that does a bunch of math without knowing the types of the arguments. A JIT compiler can first compile it with generic math, but later observe that it's almost always called with fixnums, and choose to create a specialized implementation for fixnums. SBCL relies on the programmer to implement and call the optimized version when appropriate.
[1]: https://www.unicef.org/media/files/MalariaFactSheet.pdf
[2]: https://endmalaria.org/sites/default/files/RBM Annual Report 2018_EN.pdf (page 6)
> Present-day examples of multinational states are Afghanistan, Belgium, Bolivia, Bosnia and Herzegovina, Brazil, Canada, China, France, Ethiopia, India, Indonesia, Iraq, Madagascar, Malaysia, Mauritius, Montenegro, Nigeria, Pakistan, Philippines, Russia, Serbia, Singapore, South Africa, Spain, Sri Lanka, Suriname, Switzerland, United Kingdom and United States.
Primality only applies to natural numbers, so there can't be primes between 4.0 and 6.0. There is one between 4 and 6, but that's a finite range.
Nim can kinda do this with its effect tracking feature (although I haven't used Nim enough yet to know if anyone is really using it), e.g.
type
AEffect = object of RootEffect
BEffect = object of RootEffect
proc callA() {.tags: [AEffect].} = echo "A"
proc callB() {.tags: [BEffect].} = echo "B"
proc somethingInBetween() = # Tags are inferred here.
callA()
proc doSomethingWithA() {.tags: [AEffect].} =
somethingInBetween()
# trying to `callB()` here would fail.
proc doSomethingWithB() {.tags: [BEffect].} =
callB()
# trying to `callA()` here would fail.
The `tags` pragma adds specific tags to the proc and the compiler ensures that it doesn't call anything with any other tags. Similar mechanism is used for exceptions too.