3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions
comment 4y ago · link · parent
So the argument hinges on the composition of (all) moving objects and the premise that the composed body is also moving but cannot be moved by another body since all the bodies are in the composition.
Supposing the only objects in the universe are two objects moving each other (in a cycle), they are considered a single body moved by an immaterial body because their composition cannot move itself? So everything boils down to where does energy come from?
comment 4y ago · link · parent
P3 Infinite power is an original capacity to move the infinite.
So anything moving anything has infinite power, in which case everything moving something has infinite power?
LE: I re-read the P3 premise: only movers that aren't moved themselves have infinite power. All movers that have bodies are moved themselves (P6), so they don't have infinite power.
comment 4y ago · link · parent
This sounds like the language inherits all the limitations of C and isn't able to provide sufficient expressivity to solve problems that you yourself consider valuable (which aren't that many considering the niche scope). People move away from C because of these limitations, how do you expect they would choose Hare as a replacement?
comment 4y ago · link · parent
> Recall that Hare is designed to be similar to C in terms of scope and goals. C also provides no general-purpose hash map, and little by way of other data structures (though some attempts exist, none of them good).
So you're stuck using a crappy general-purpose hash map that you have to convince your linux distribution package managers to maintain.
comment 4y ago · link · parent
Also, no data structures? I don't see maps, arrays, sets. No support for custom allocators (where's the `mem` module)?
The roadman mentions TLS, smtp, sql and http (no json?) but you're not too concerned with people wanting to use it for web development?
comment 4y ago · link · parent
Except under proprietary operating systems. It's really not that difficult to compare Hare with C. C works everywhere, Hare doesn't. It's disingenuous to compare languages that aren't even close to the same portability level. C, Rust and Zig can be used to implement any imaginable piece of software, from desktop to server on almost any architecture and operating system. Hare is a niche language for Linux services, so I don't think anyone had any doubts Hare would not replace C.
comment 4y ago · link · parent
The stakes and environment aren't even close for this to be a meaningful comparison. A job interview will always carry some degree of pressure, no matter the circumstances. What I fail to understand is why would someone feel more threatened by this scenario as opposed to, say, answering a barrage of technical question or solving algorithmic problems.
comment 4y ago · link · parent
Where's the pressure? You have a piece of code, all you need to do is read it, understand it, make a (possibly) trivial modification. That's exactly what you would be doing (or have been doing) every day. You don't have to explain complex algorithms on a whiteboard. There are no high stakes. You can leave whenever you want.
Last time I had to do something like this I was allowed privacy, internet, headphones.
comment 4y ago · link · parent
comment 4y ago · link · parent
First, too much water can cause hyponatremia. Drinking 2 to 3 litters of water / day is fine, but reach 5L and it's getting dangerous. And one of the main advantages of drinking water is it keeps your stomach full, meaning you don't feel hunger, and thus eat less.
Second, what's the purpose of your 3rd point if not to reduce calorie intake?
comment 4y ago · link · parent
1. Visiting a nutritionist. She helped me choose better foods and understand the process. The visit also validated that the process would have a high chance of succeeding (as opposed to praying that some weird trick on the internet works) and it won't have negative effects on my body.
2. No more oil fried food.
3. Significantly reduce sugar.
4. Eat only the calories I need. Snacks usually have the calories of a whole meal. Whenever you say no to a snack, the calories on the label are reduced from calories_in, giving you some dopamine.
5. Drink more water. The stomach gauges hunger by how large or small it is. By filling it with water, you reduce the sensation of hunger.
6. Some exercise (I managed 400 - 500 calories / day from small hikes). I could do hikes each day, because the view at the top of the hill is gorgeous, and it made the entire hike (which had some steep portions) bearable. But I started with an in-house stepper (5 minutes / day, then 8, then 15, then 20)
Consistency is key. If your basal metabolic rate is 1800 calories and you manage to have 1200 calories at the end of the day, that's 600 calories weight loss. A kilogram of weight is somewhere around 7500 calories. That means you'll lose 2kg / month. But if you skip 50% of days, you'll only lose 1kg / month. Also, consistency is key, because once you stop eating healthy, you'll gain the weight back.
Also, following hard diets can have many negative impacts:
1. You might only lose water
2. You might deprive your body of various nutrients, leading to health problems
3. When you stop, you gain all the weight back
I'd advise you find a method of counting your calories, and finding a solution of being below your BMR each day that works for you without feeling like a chore, that covers all macronutrients and that you can keep for as long as possible. Counting calories also gives you a measurable progress and a source of dopamine.
comment 4y ago · link · parent
https://github.com/jvns/tiny-resolver/blob/main/resolver.sh - the recursive lookup is 16 lines for + switch.
I'm sorry to say this, but if the recursive lookup can be implemented with a for and a 3-way switch that a CS 101 student can write, it's really not doing the heavy lifting. It may be interesting to know about it, it may be the case that multiple resolves don't have the implementation, but it's a trivial piece of code, let's not idolize it.
For me personally, having the power of hitting an endpoint and receiving useful information is really satisfying. Creating the request and parsing the reply are probably 90% of that process. And frankly, that was the first think I was looking for when I skimmed the article. "Are DNS replies really that easy to parse?". The fact that I need to make a switch on the reply and potentially make a recursive request somewhere else is trivial once you get the actual useful info from the remote.
I'm not criticising the article or the title. It's my opinion that parsing is more important, I'm not faulting the author. But I'm having a hard time accepting your arguments.
comment 4y ago · link · parent
Was meant to make a failed test instantly communicate what's wrong with the unit under test. As frameworks evolve and our practices around them change, it's absolutely fine to come up with new rules.
All of uncle Bobs rules come with pages of explanations of what problems they solve. If you don't have those problems, you may not need those solutions. The book is more about the spirit of the law than the letter.