Better HN
topnewbestaskshowjobs
Log inSign up

weaksauce

7,020 karma · joined May 31, 2008 (18y ago) · 3,135 submissions

five nine plus r at gmail

https://www.github.com/fiveNinePlusR/tabist

Submissions

comment 2y ago · link · parent

originally every commit was a full snapshot of the current state of the repository. the repository is now compressed after the fact using deltas but like another person said but it’s really just an implementation detail.

comment 2y ago · link · parent

the Architecture of open source applications is a pretty interesting book to see real world examples of design https://aosabook.org/en/index.html

comment 2y ago · link · parent

they did actually do that during the pandemic... operated under a different name and delivered

comment 2y ago · link · parent

> lack of first-class functions and iterators/generators, as well as the general iteration protocol

can you elaborate on what you miss here? ruby has a robust enumerable suite of methods so i'm curious what you found lacking

comment 2y ago · link · parent

what is ruby debug not able to do that you want it to do?

https://github.com/ruby/debug

a nice ide integrated experience:

https://code.visualstudio.com/docs/languages/ruby#_debugging...

https://github.com/ruby/vscode-rdbg

https://code.visualstudio.com/docs/editor/debugging

heavy metaprogramming in any language is going to be a pain to debug so i'm not sure what you're expecting but there are tools to help. you can also call source_location on some method to figure out where things exist.

comment 2y ago · link · parent

honestly both of them look like bad clipart from the early 2000s. cool and all but they don’t have the gravitas you’d want.

comment 2y ago · link · parent

I flew on a 75 on delta the other day

comment 2y ago · link · parent

> Idempotency tackles the issue of handling multiple requests for doing the same thing, isn't it?

yeah... there should be no extra side effect if you call something more than once on it with the same parameters. ie foo(x) is the same as foo(foo(x)) is the same as foo(foo(foo(x)))

or in networking GET x is the same as GET x followed by a GET x etc... the GET request doesn't (*shouldn't) change anything.

comment 3y ago · link · parent

> I used the examples they provided on the repo README.

I was using the more complex examples from their README as well (except added a name to the second one to make it more useful).

> I would still argue I can get the same results with less typing.

so what? we type words and sentences much quicker than having to type control characters like - and |. also, you still have to know the invocations to sort and head off the top of your head without looking them up whereas a simple sql select statement is something most programmers would know how to do in their sleep.

  git for-each-ref --format='%(refname:short)' refs/heads/ | while read branch; do
    commit_count=$(git rev-list --count $branch)
    [ "$commit_count" -le 10 ] && echo "Branch: $branch, Commit Count: $commit_count"
  done
I think we can agree this is much more complicated to write than:

   SELECT name, commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10
> If I run the 2nd command example against the chromium repo, it takes several minutes where a shell script using git for-each-ref takes about 8 seconds. I would also argue that this might be better expressed as commit_count <= 10 but I realize you're also using an example. This is the script I ran:

if speed matters then your script is fine to bang out if you need it but for one off queries that you know to be correct (look at how simple the second query is) it is probably fine and most people aren't working on chromium so speed is probably never going to be an issue in the first place.

comment 3y ago · link · parent

I mean you intentionally chose the most basic of the queries and translated them into different git gui commands.

    SELECT name, COUNT(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DESC LIMIT 10
something like that is more complex and less easily gleaned by the git gui. or something else that's dead simple to remember how to do in sql vs probably having to open up the git manpages or cobble some script together to do:

   SELECT name, commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10

comment 3y ago · link · parent

billionaires existing is an indictment on our greed and failures of our systems. nobody needs 1000+ million dollars.

comment 3y ago · link · parent

While I like your approach better than his by a considerable margin... I would say his approach has merits since he's a principle engineer at google(maybe hiring there) and was an engineer hiring at amazon. the problems they face would definitely have this applicability of a large volume of data needing to be worked on efficiently.

comment 3y ago · link · parent

no, the regulations are to blame in a lot of the way. I'd love to have a tacoma that was the size of a small truck than the size of the tundra of the same era. the new tundras are absolute behemoths. there's a curve that the auto manufacturers are having to hit and the curve tightens every year and the requirements are also tied to the sqft of the truck. so larger footprint == less stringent mpg requirement.

https://www.thedrive.com/news/small-cars-are-getting-huge-ar...

comment 3y ago · link · parent

> However, they are not allowed to lie during trial.

outright lie? no. but that doesn't matter when it's just your word against theirs and they have some outsized influence in the community as a savior figure.

comment 3y ago · link · parent

> Some people create good and beneficial products.

and those would shine with a "just the facts ma'am" approach.

comment 3y ago · link · parent

technically LOTO is to lock the switch with a padlock in the off position and tag the lock with an identifier so the plant knows who is doing the work but overall generally right.

comment 3y ago · link · parent

yeah that's one of the many reasons i don't like reading textbooks or anything substantial on a computer

comment 3y ago · link · parent

it's a webpage promoting a vulnerability they found and a paper they wrote and is owned by georgia institute of tech. they ~~have servers~~ are just using github pages and a budget already i'm sure for marketing. this is marketing.

comment 3y ago · link · parent

https://www.epa.gov/energy/about-us-electricity-system-and-i...

86% is nearly all to be fair(edit as of 2017)... not 99% nearly all but it's well more than half.

comment 3y ago · link · parent

it's a great presentation and interesting topic... one nit though is that it is good form to type out the acronym or initialism as words first and then append the initialism to the end unless it's quite a well known one like PDF(usually i suppose as it could be probability distribution function on a maths page).

comment 3y ago · link · parent

they have a completely different paradigm. apple has a reviewer run the app and test it(with varying levels of competence). they also have a suite of static analysis checks to see if you are using any no-no apis or other things. they have a restrictive "does this thing solve a novel problem" to avoid 1000 flashlight apps.(which doesn't seem to work that well but it's been a while since I looked at it)

google operates on the pay 15$ and then you can submit any app and if people report you enough it gets removed and your account gets flagged. they might have some static analysis tools like the oop said. but in general apple is restrictive by default and google is permissive by default.

comment 3y ago · link · parent

If you read the veto letter from him it's pretty reasonable in what he's willing to agree to:

https://www.gov.ca.gov/wp-content/uploads/2023/10/SB-58-Veto...

he's not anti-mushrooms but he's anti-unfettered access to mushrooms without guidelines in place. I don't know if it's the right call or not but mushrooms are something that's not really fit for general consumption; cannabis being fairly benign and understood is a different issue altogether and one that makes sense to have fairly unfettered access to at a population level.

comment 3y ago · link · parent

don't some medicines have a time delay release mechanism that this would defeat? getting that much of a dose of some medicines all at once wouldn't be ideal I'd think. caveat emptor and all that.

354.

We now know how cats purr–why they purr is still up for debate(arstechnica.com ↗)

2 points · by weaksauce · 3y ago · discuss

comment 3y ago · link · parent

making over 10 million a year... i feel like that is fair

comment 3y ago · link · parent

you're absolutely correct and furthermore smaller particles and larger particles are easier for the masks to catch to state it differently if it wasn't clear.

comment 3y ago · link · parent

how are cows causing that much death?

comment 3y ago · link · parent

> and i don't want people taking this repo and just cloning the game for free.

they don't mind that actually... they just want you to not sell it or anything too close to the original game. if you want to figure out how to compile it and play it they are fine with it. it seems to be the don't screw me over license.

comment 3y ago · link · parent

the source is open and fairly unrestricted. the assets and game itself are not though.

> Non-legal summary of license: Anyone can use or compile the code EVEN WITHOUT OWNING THE GAME. The code is open to everyone. If you're doing noncommercial or commercial things with a low budget ( < $50k/year), you can do anything, so long as you credit us. Don't sell anything unaltered (don't sell our sprites or music unaltered, or compile and try to sell the game unaltered.)

comment 3y ago · link · parent

you don't have embedded copper water lines in concrete slabs I assume? sure a little drywall damage is nothing but having to jackhammer that up is a bigger ask.
1
111213
105