Better HN
topnewbestaskshowjobs
Log inSign up

nmz

679 karma · joined Mar 3, 2019 (7y ago) · 680 submissions

Submissions

comment 2y ago · link · parent

I'm speaking more generally than git here, part of being any type of inventor is to simplify for the user and make it intuitive, that way if the internals change, the abstraction/external look the same.

comment 2y ago · link · parent

Internals are nice, but are also not and should not be necessary to know, I don't know how a FS is writing a file, and yet I can store files fine.

comment 2y ago · link · parent

I mean... the beginning of mission impossible 1 should tell you.

comment 2y ago · link · parent

Record breaking heatwaves is not scientific or something anyone can feel? It's news to me that humans are incapable of feeling heat, weird considering I'm using 2 fans and am still sweating, when I didn't before. or british folk are having heatwaves that their infrastructure can't handle because they're used to colder weather... or that humans can't feel wind considering "Beryl was the earliest Category 5 Atlantic hurricane on record." [0].

Look, you wanna plug your ears then do so, I do so as well, but claiming that the weather wont be that much different is provably false and irrelevant when we're undergoing a massive extinction event that is urgent, just because we have time limits. doesn't diminish from the situation or undermine from its continued urgency.

https://www.ncei.noaa.gov/news/global-climate-202406

comment 2y ago · link · parent

The climate movement wasn't taken seriously 70 years ago, but as people see its effects more and more and the more you live and remember that you could actually walk outside without AC and not melt the more its strengthened. So I highly doubt what you say.

comment 2y ago · link · parent

Its a shared atmosphere, so they will suffer the effects of it equally. This isn't a "just the US" type of thing. if you suffer from hurricanes or monsoons, earthquakes, and so on, it is in your best interest to reduce the effects of pollution. China was the biggest polluter, they still are, but they are taking measures.

We also haven't agreed to punitive actions, tax credits incentivize cleaning, but there is barely any punishment or accounting of it. Else coal which is probably the worst form of energy production would not exist.

comment 2y ago · link · parent

You should ask the arraycast guys on how they did it. They got him to talk about ivy and apl/array style programming for an hour or so.

comment 2y ago · link · parent

Cheat engine?

comment 2y ago · link · parent

What is this dvfs you talk about? desktop virtual file system? Dynamic voltage and frequency scaling? Google doesn't know, or well, the first page doesnt know.

DVCS stands for distributed version control system, it has nothing to do with binary blobs, whether or not it supports it, is an implementation detail.

comment 2y ago · link · parent

its pretty good... not better than brave, but the browser itself is a tad slow, but you probably won't feel it in a 8 core machine.

comment 2y ago · link · parent

> it is a feature which allows, for example, to work simultaneously on several releases, patches, hot fixes, etc. Once better alternative emerges we'll jump the git ship as we did before when we jumped onto the git ship.

What are you talking about here? I'm not talking about eliminating branching, but the fact that merging a branch is usually just a fake single commit that hides away the complexity and decisions of the branch. see [0] into how you can leverage branches and the log for a sane commit history.

> that was a feature of a bunch of source controls and a reason among others why they lost to git.

Given the article, git won because it was foss, torvalds and speed, if you have proof of a good amount of people saying "I hate the division of data and repository!" then its a believable claim, or maybe you're confusing the data/repo division with cvs? git also didn't have to fight much, the only contender was hg

[0]: https://fossil-scm.org/home/timeline

comment 2y ago · link · parent

DVCS stands for distributed version control system, it has nothing to do with source code?

Maybe you're confusing it with SCM which are source control managers, that's the only ones that handle strict source only, but scm can mean other things.

comment 2y ago · link · parent

Git is terrible at branching, constantly squashing and rebasing is not a feature but an annoyance. see fossil for how to do proper branching/merging/logging, by its very nature, Not to mention that by having the repository separate from the data, it forces you to organize it in a nice way (Mine look like Project/(repo.fossil, branch1/ branch2/ branch3/) You can achieve this with git now but I never had to think about it in fossil, its a natural consequence of the design.

comment 2y ago · link · parent

I wouldn't put fossil in that list of collaboration, since its not really a collaborative tool, or more like, there are barriers to that collaboration, like creating a username for each fossil repository. That's a huge barrier in my view. It would be nice if there was something like a general auth identity that can be used everywhere but that's still not implemented.

FWIW, mercurial seems to have an advantage over git, and that support for BIG repositories which seems to be provided by facebook of all people, so until facebook moves to git, mercurial lives on.

comment 2y ago · link · parent

bytecode is also architecture dependent

comment 2y ago · link · parent

Weird thing to call sane when its the shell that is insane, or more likely an instrument of torture.

comment 2y ago · link · parent

This is your opinion on what the default behavior of nil should be, fortunately, We can disagree and you can set a metatable that errors on nil, I will choose to do or not do that depending on the object.

assert() also exists for this very reason.

PS: there is a performance penalty between doing d["foo"] v d.foo, one expects an expression, the other does not. So it cannot be compiled. lua also errors on use of a nil value, d.foo() will error, d.foo + 3 will also error. So while it does "silently return a marker" it will crash on runtime.

comment 2y ago · link · parent

I do not know how/why the language should magically know that something should error, if nil is not acceptable as a return then you use || or "this". if the table should not have nils then you turn it into a metatable that errors or returns whatever you want it to.

comment 2y ago · link · parent

I'd recommend teal because luau is not really lua.

comment 2y ago · link · parent

It does not. The most viable solution is transpilation, teal is the most recent candidate.

You can have a hack of sorts using a schema and tables as in

local schema = { a = "number", b="string" } -- key = "type" local data, link = {a=4, b="default value"}, {} -- link -> data, link itself is always empty local tbl = setmetatable(link, { __index = data , __newindex = function (t,k,v) if schema[k] and type(v)==schema[k] then data[k] = v return true end error"type does not match schema" end })

tbl.b = 5 -- this will error because its the wrong type

There are certain solutions you can do with functions, lsp is also really good at telling you when you went wrong.

comment 2y ago · link · parent

But lua isn't lacking them, <for in do> is for generators, and if you want iterators you can make those as well.

comment 2y ago · link · parent

well, lua existed back then, but that lua is not lua5, even lua4 looks incredibly different especially when it comes to tables.

comment 2y ago · link · parent

What do you want it to return though?

x = f() or "default value"

or maybe you want it to error

x = f() or error"F failed"

or maybe x is an object in which case you can just

setmetatable(x,{__index = function () return "" --[[default value here]] end})

or maybe you don't want nils, in which case

debug.setmetatable(nil, {}) -- actually this one is complicated, but yeah, you can use this.

comment 2y ago · link · parent

There's no explanation.

comment 2y ago · link · parent

At first glance I thought this was a randomizer, like writing facebook and landing on X.

comment 2y ago · link · parent

Identification is not necessarily via a username, people can identify you via just knowing how you look or your voice, the method doesn't matter.

comment 2y ago · link · parent

Its a userbase problem, nothing anybody can do about it.

comment 2y ago · link · parent

Choice should only be offered after you have a stable foundation/base. Suppose you have a store that sells frozen food only, an incredible amount of choices, but no base ingredients like flour, grains and meat.

Software is utilitarian in nature, the goal is the task, but, how do you accomplish a task with an infinite amount of tools? and not only that, but how can you be sure that the tool is secure and stable?

1
678
23