Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

1,291 karma · joined Mar 27, 2019 (7y ago) · 868 submissions

Submissions

comment 3y ago · link · parent

> Ya, and everywhere I've worked, that team is called "devops".

But then that team is only doing operations and not development. Unless they are committers to k8s.

comment 3y ago · link · parent

> If you don't need storage cluster with any other solution, then you don't need it with kubernetes.

That is only half of the truth. If your application needs a database, and which application doesn't, you have to store its data somewhere. So you either need a storage cluster, or you open the can of warms called local volumes and (anti-)affinity rules.

For smaller application deployments, hosting a separate kubernetes cluster is extremely expensive in terms of time spend to debug infrastructure issues. k8s introduces orders of magnitudes of additional complexity to networking, dns, storage, routing, logging, etc. All in the name of making these exact same things easier for the developer. This can be a good separation of work, if you are large enough to afford a dedicated k8s maintenance team. But often it is not.

comment 3y ago · link · parent

But compilers deal usually with trees not general graphs.

comment 3y ago · link · parent

Yes and no. Babashka itself is Clojure/JVM program compiled with graalvm to a native binary that starts very fast. Babashka contains an interpreter for a simplified variant of Clojure. It also contains a predefined set of classes of the JVM and a predefined set of Clojure libraries.

Basically, it contains most of what you would need to use it for simple scripts, make network requests, parse command line arguments and many more things.

But, it won't run every possible Clojure program and it won't be as performant as Clojure on the JVM if the program runs longer.

comment 3y ago · link · parent

By blocking everyone coming from HN, they paint everyone here with the same brush, don't they?

comment 3y ago · link · parent

Why?

comment 3y ago · link · parent

In my experience Emacs is slow when I enable evil. I do like vim keybinding, but using evil negates most of the benefits for me since it introduces unbearables pauses. That is with Doom emacs under Linux.

comment 3y ago · link · parent

Your example is usually referred to as a sunburn chat. Although it shares all drawbacks of pie charts. Some would say sunburn chart make it even harder to correctly understand the relative size of elements than pie charts.

comment 3y ago · link · parent

What kind of tools do you build? I'd be interested in your opinion on what are the preconditions for tools to profitable.

comment 3y ago · link · parent

> Sure it's there, but having to wade through a large history of experiments tried and failed when trying to answer why this thing is here right now just feels subpar

That is one the downsides of trunk-based developments. One keeps a history of all failed experiments, the usefulness of the commit history deteriorates. That is for reading commit messages as well as for bisecting bugs.

comment 3y ago · link · parent

Agreed on most points, but a good SCM provides also the ability to bisect bugs and to show context that is hard to capture by explicit comments. E.g. what changed at the same time as some other piece of code. What was changed by the same person a few days before and after some line got introduced.

Regarding your first point:

> I've been in enough projects that changed version control systems

I have the impression that with the introduction of git, it became suddenly en-vogue to have tools to migrate history from one SCM to another. Therefore, I wouldn't settle on restarting from a snapshot anymore.

With git you can cut off history that is too old but weighs down the tools. You can simplify older history for example, while keeping newer history as it is. That is of course not easy but it can be done with git and some scripting.

comment 3y ago · link · parent

> I never read the git log.

Imho, you are missing out on a great source of insight. When I want to understand some piece of code, I usually start navigating the git log from git blame. Even just one-line commit messages that refer to a ticket can help understanding tremendously. Even the output of git blame itself is helpful. You can see which lines changed together in which order. You see, which colleague to ask questions.

comment 3y ago · link · parent

One could accomplish a part of your vision, today, by splitting commits into smaller commits. Then you have the relation between hunks of changes and text in the commit message on a smaller level. Then you can use branches with a non-trivial commit message in the merge commit to document the whole set of commits.

As far as I know changes to the Linux kernel are usally submitted as a series of patches, i.e. a sequence of commits. I.e. a branch, although it is usually not represented as git branch while submitting.

comment 3y ago · link · parent

> > This is false. “The only way to improve at X is to do it” is the advice you give when you actually have no idea how to improve…

> This is also false. I was an active fitness instructor for 8 years and my cardio was great and also was a weightlifter. I could teach a two hour master class and go hard without giving out of breath. The first time I decided to do an outdoor 5K on a whim, it took me 40 minutes and I felt like I was going to die. I had to do run specific training.

This is also false. If you look at professional soccer players. They do all sorts of excercises that you never see in a game. I assume lot's of American footplayers also lift weight in training. Yet there are no weights on playing field. Shouldn't they just play games in training?

comment 3y ago · link · parent

> There are really only two ways TC is used in practice in today's economy:

Isn't that exactly the case, because the idea of using TC in every PC produced a huge backlash?

comment 3y ago · link · parent

That would mean the original request was unreasonable and not rude.

comment 3y ago · link · parent

How is this rude? Is disagreeing already rude? GP started that sentence with "Please" not with "YOU MUST NOT".

comment 3y ago · link · parent

> TC is value neutral so the FSF slurs don't make sense

Trusted computing is often used such that one might think, it implies the user can trust something (his computer). But it is the other way around. A service provider can trust a machine - that a user bought -- to not do what the user wants. That is misleading at best.

comment 3y ago · link · parent

> So you have this tree of dependent data fetches, how do you minimize the time waiting? You could walk the tree node-by-node, but that balloons your wait time. So you kick each bit of work off to a new thread and wait for it to be done. How do you wait for it?

This is exactly the kind of problem that is targeted by Project Loom [1] and structured concurrency [2] on the JVM. Async programming makes a lot of tools not applicable (or at least very cumbersome to use): debuggers, profilers, tracing tools, stack traces, etc.

[1]: https://openjdk.org/jeps/425

[2]: https://openjdk.org/jeps/428

comment 3y ago · link · parent

> Did they need to do all the extra work of developing an exploit in order to convince someone that was dangerous?

It might be clear in this case for someone who has already seen that really obscure bugs could be practically misused. But in the long-term, it is necessary to show that this is not some theoretical risk, which could be exploited in one never-heard-of hobby linux distribution. If security researchers skip these PoCs, a generation of future developers - who never saw practical PoCs - will just not believe it is relevant.

Saying the security researchers don't need to show PoCs is like saying mathematicians don't need proof, they just need to be very sure that a theorem holds.

That is the difference between a researcher/scientist and an engineer. An engineer could say, well this is likely exploitable, therefore let's safeguard against this. So that there remains a margin of security.

comment 3y ago · link · parent

> I wouldn't live in such a shitty, broken, mismanaged shithole. Properly managed places are able to provide good public transit.

So you don't want to live somewhere near forests or lakes. Somewhere, where is still some for of nature present. You only want to live downtown in a major city. Let me guess, you don't have children. Because many people change their opinion about that when they become parents.

comment 3y ago · link · parent

> Literally every other country in the world proves you don’t need them.

Please, tell us one country in the world that doesn't need cars.

Many, may be less dependent on cars than the U.S. . But no country is independent of cars. Using such hyperbole doesn't help the conversions. It just deepens the trenches.

comment 3y ago · link · parent

> Japan, many european cities, etc are all comfortable with the provision and use of widespread public transport.

And yet, they have many many cars.

comment 3y ago · link · parent

I've had one last week, in Germany.

comment 3y ago · link · parent

Combine A/B testing with exponential growth of the user-base and you will only measure newcomers. Medium, advanced, and expert user simply won't matter in your test results. Whether that is what you need depends on the situation.

comment 3y ago · link · parent

> how those individuals (we prefer the term ‘resources’) interact

BCG uses the term ADU - Agile Delivery Units - instead of resources. That sounds directly like a term from the handbook of the ministry of truth.

comment 3y ago · link · parent

And here we have a clear example for the downsides of a monopoly.

comment 3y ago · link · parent

Pointer arithmetic pulls C and C++ into the realm of weakly typed languages. Pointer arithmetic is a core part of the language.

On the other hand, Haskell's unsafeCoerce or OCaml Obj.magic are usually not considered to be part of the language, since they are "normal" functions, but it is impossible to implement them inside the language.

comment 3y ago · link · parent

> I’m pretty sure the apps do a lot more now than they did on windows XT

The question is whether that additional work is of any benefit to the user.

comment 3y ago · link · parent

Yes, learn about compilers. I am only half joking here.
1
121314
29