Better HN
topnewbestaskshowjobs
Log inSign up

rootlocus

3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions

Submissions

comment 4y ago · link · parent

> For math, you need to think, question, and play with the concepts.

And having someone to answer questions and validate hypotheses makes the learning process a lot smoother and helps correct mistakes before they solidify.

comment 4y ago · link · parent

> But if B is moved by another body, which in turn is moved by another body, and so on, then we face either an infinite regress or a cycle, with each body moving the next. To handle this, Leibniz invokes p4, taking together all bodies which are movers, and referring to the whole as C.

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

P8 Every body whatsoever has an infinite number of parts.

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

little-endian

comment 4y ago · link · parent

> We recognize the value in this feature and have tried to come up with a good way of doing it that fits within the design constraints of the language, but it has several design issues. > Recall that Hare is designed to be similar to C in terms of scope and goals.

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

No support for generics or custom allocators, combined with no desire to implement a package manager. The language author accepts that (1) Hare is just as limited as C and (2) C has no way of implementing a good hash map.

> 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

Here we go implementing Hare++!

comment 4y ago · link · parent

Personally, I find it hard to appreciate the stdlib when every identifier is optimized to use the least amount of characters. There's a module called `shlex` (what does that mean?), there are two types called `pwent` and `grent`, a type (can't find it again) has a size field called `sz`. Various types have single letter fields. There's a `chown` function under `os` and another one under `fs`. The "interface" for streams is defined by the very generically named type `vtable`. There's also a dedicated module just for creating a temp directory? There are dedicated modules for `linux` and `unix`, but then various os level types are defined in a catch-all module called `rt`.

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

> We designed Hare to be similar to C, and useful everywhere C is useful

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

> That's a funny one, and I agree, and it's also the reason I use "and" instead of "but" for those kinds of sentences.

So you agree, but it's also the reason you substitute it to hide it?

comment 4y ago · link · parent

Git is a distributed VCS, everyone has a clone of the repo, and at least one person has the latest main branch.

comment 4y ago · link · parent

> It's like asking why a bomb defuser feels pressured.

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

> it's beyond me why anyone would need to prove they can cope with such pressure without breaking down.

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

Most packages you'd pull from maven are developed by large companies or foundations like apache. The dependencies you're pulling are simple jar files that get loaded at runtime and don't execute anything at build or install time.

comment 4y ago · link · parent

Firefox markets itself and openly protests for privacy rights. To go against it would completely shatter the users trust.

comment 4y ago · link · parent

My experience is the exact opposite of this. Modular code that has well defined boundaries and responsibilities can be mocked and tested in isolation. It can also be reasoned about in isolation, reducing complexity. New functionality can be assigned to the proper module because each module has a well defined purpose.

comment 4y ago · link · parent

Is there a legitimate reason why a .com TLd would increase the business value over .io?

comment 4y ago · link · parent

> You guys really need to step out when you start to get too cynical.

Maybe I wouldn't have been so cynical if the author would've respected the title and shown some Radagast hair nest.

comment 4y ago · link · parent

Like how they find the cleaning of a bird litter exhausting when other people deal with both pets and babies at the same time?

comment 4y ago · link · parent

Companies who care about their customers usually do better in the long run. You can look up "long term greedy" for an example.

comment 4y ago · link · parent

As someone who lost 20kg in 5 months by eating less, I don't appreciate being called full of shit.

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

I've edited my comment to reflect that the first step is visiting a nutritionist. I'm not an expert, and this worked for me under the supervision of a professional. I never starved myself, and I stopped at around 75Kg.

comment 4y ago · link · parent

Weight loss is simple math: calories_in - calories_out. It's usually much more efficient to reduce calories_in than to increase calories_out. I've lost 20kg in 5 months by:

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

Maybe don't ask potential hires to balance binary trees in CSS on a whiteboard.

comment 4y ago · link · parent

Kids who get healing crystals instead of vaccines, also don't get the vaccine?

comment 4y ago · link · parent

> That the author got this recursive lookup so small that it broke everyone's brains is just more reason to be interested in this article.

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

Because I was confused and thought I was replying to someone who didn't understand the "BobbyTables", sibling below. My bad.

comment 4y ago · link · parent

https://www.explainxkcd.com/wiki/index.php/Little_Bobby_Tabl...

comment 4y ago · link · parent

> One assert per test

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.

1
678
40