Better HN
topnewbestaskshowjobs
Log inSign up

RandomBK

1,535 karma · joined Sep 22, 2014 (12y ago) · 318 submissions

Submissions

comment 1y ago · link · parent

Depending on how you count, the ratio might not be that small. A lot of hot code are written in hand-coded inline assembly, so in terms of CPU cycles run it's probably non-negligible.

i.e. take a look at the glibc implementation of 'strcmp` [0]

[0] https://github.com/bminor/glibc/blob/master/sysdeps/x86_64/m...

comment 1y ago · link · parent

"What kind of hooker takes credit cards?"

"A rich one!"

comment 1y ago · link · parent

A couple of cities have been doing this as well. Vancouver Canada has lidar point clouds covering the entire city, going back to 2013.

[0] https://opendata.vancouver.ca/explore/dataset/lidar-2022/inf...

[1] https://x.com/edwardjxli/status/1871676981143875725

comment 2y ago · link · parent

Potentially dumb question: wouldn't the existence of a global magnetic field already imply the presence of a global electric field? Or is this discovery a separate unrelated electric field?

comment 2y ago · link · parent

I've no plans for it myself, but that sounds like an interesting project! It should be fairly easy to hack together. The actual logic itself is just a few dozen lines of glue code around a single HTTP POST request.

comment 2y ago · link · parent

Already exists :)

Set the `local_uri` setting in the configuration (`llm2sh --setup`), and either pass `-m local` on the CLI or set `"default_model": "local"` in the config.

PRs are always welcome.

comment 2y ago · link · parent

I'm glad you like it! The whole point is to have a simple no-frills clean CLI experience.

> Is there a way to point at an arbitrary API endpoint?

Yes. Set the `local_uri` setting in the configuration (`llm2sh --setup`), and either pass `-m local` on the CLI or set `"default_model": "local"` in the config.

38.

Show HN: Llm2sh – Translate plain-language requests into shell commands(github.com ↗)

67 points · by RandomBK · 2y ago · 21 comments

comment 2y ago · link · parent

Were you there for fun, or research? What made you decide to visit in person?

From what I can tell, Mauritania is not particularly tourist-friendly. It has an active "Reconsider Travel" advisory with the US State Dept, and there was a coup there as recently as 2008.

How does one even go about planning the logistics of such a trip?

comment 2y ago · link · parent

I'm starting to see some packages break due to not pinning 1.x in their dependencies. `pip install numpy==1.*` is a quick and hacky way to work around those issues until the ecosystem catches up.

comment 2y ago · link · parent

I think GP meant <Author>, <Reviewer 1>, <Reviewer 2>

comment 2y ago · link · parent

How is this not a blatent antitrust violation?

comment 2y ago · link · parent

It's a petition early on in the case, so it just needs to be based upon "information and belief". The fact-finding step of the multi-year process has yet to begin, but lawyers need to present the best plausible case possible at this stage.

comment 2y ago · link · parent

I'm pretty sure the Death Star undid several eons of environmental conservation efforts on Alderaan.

comment 2y ago · link · parent

Yikes... In the same doc:

>"For example, the separation between kernel mode and user mode is a classic and straightforward security boundary."

>"Non-boundaries: [...] Administrator to Kernel [...] Administrative processes and users are considered part of the Trusted Computing Base (TCB) for Windows and are therefore not strong isolated from the kernel boundary."

The reasoning makes sense, but that's quite a mixed message for an unintuitive nuance.

comment 2y ago · link · parent

Thanks, I hate it.

* I love the idea, and I'm interested to see more progress in this direction.

* I'm not a huge fan of the syntax - for me, the commands are the star of the show, while the async/await is a glue. This syntax emphasizes the async/await while the important stuff get shuffled into quotes.

* Don't make me install node - and especially not system/user-wide packages - to run a script.

Having said all that, this is a neat idea and a cool hack on top of javascript language features.

comment 2y ago · link · parent

My job does not involve direct responsibility for the immediate life-or-death of hundreds of lives.

comment 2y ago · link · parent

Alternatively, the technique used for finding plane crashes has a 99% recall and we're just happening to talk about the 1% that slipped through. Survivorship bias is not out of the question here.

comment 2y ago · link · parent

They're even more terrified of torch or another framework take up the industry. As ML is a research-heavy space, getting ML researchers to use your platform has benefits.

comment 2y ago · link · parent

No, it's a delve resonator, and its function is very well understood: https://www.poewiki.net/wiki/Prime_Chaotic_Resonator

comment 2y ago · link · parent

True, yet many games are effectively single-threaded anyways.

The bigger problem is memory capacity and bandwidth, but I suspect folks will eventually figure out some sort of QoS setup to let the system crunch LLMs using otherwise unused/idle resources.

comment 2y ago · link · parent

It's worth noting that the 4bit quants can run on cpu at ~reading speed, which should unlock many use cases - especially if we can precompute some of the results async.

comment 2y ago · link · parent

More cache never hurts. I'd imagine there were GPU perf gaps, though they were hard to distinguish from CPU-based performance hits. The most notable issues were random latency spikes caused by the multiple layers of hypervisors, which interfered with some games and occasionally caused audio/video desync on Youtube.

I ultimately tore down that setup and just swapped to dual-boot. The steps needed to set up high-performance VFIO (i.e. clearing enough contiguous RAM for 1GB Hugepages) meant most of the benefits of VFIO never really materialized for me.

comment 2y ago · link · parent

Back when I ran Windows in a KVM VM for gaming, a lot of anti-cheat systems didn't take kindly to running in a virtualized environment.

Turning on HyperV to go KVM->HyperV->Windows effectively 'laundered' my VM signature enough to satisfy the anticheats, though the overall perf hit was ~10-15%.

comment 2y ago · link · parent

I see this being misreported all over the place.

Twitter failed a Motion to Dismiss, which is basically the judge saying "Schobinger's arguments aren't completely bonkers and he may be on to something". The case hasn't even gotten to the trial stage yet - the actual decision on whether a contract was violated or not won't be until after the trial.

I'm not a fan of Musk's legal strategies, but it's quite frustrating seeing so many normally reputable sources making such a big deal out of so little.

comment 2y ago · link · parent

> HP achieved a yield of 9%, meaning 91% of the dies failed.

This line really stood out to me - I was aware early semi yields were poor, but this poor? Was this par-for-the-course for technology at that time, or was this bad even by 70s standards? What do typical yield numbers look like today?

comment 2y ago · link · parent

As much as we may like/hate the entities involved in this dispute, net neutrality is a serious topic and we shouldn't be encouraging actions like this.

comment 3y ago · link · parent

Got it! That's great to hear. It'd be great to explicitly clarify that in the README :)

Out of curiosity: Have you considered alternative licenses like SSPL or the Elastic license, which make a clear(er) delineation between whitelabelling/hosting vs simply using the application? I'm sure I'm not the first person to have written off Windmill because of the AGPL.

comment 3y ago · link · parent

I would love to begin using this system, but the licensing is giving me serious pause. While most of the software is under the AGPLv3, the Commercial License section of the README [0] implies that the company takes on a fairly broad interpretation of the AGPL.

In particular, the line "[...] to build a feature on top of Windmill, to comply with AGPLv3 your product must be AGPLv3 [...]" seems to imply the company aligns with the stance taken by Google and other companies: that even calling the application via API is enough to trigger copyleft [1].

This implies that if I were to build a sign-up form that triggers a Windmill workflow in the backend, my entire application would either need to be AGPLv3 or I would need a commercial license.

That's perfectly reasonable, as it means any non-AGPL use will have to contribute back to Windmill via a commercial license. However, it does mean positioning this as an "Fully Open-source" alternative to Airflow is only technically correct. This is much closer in practice to "source available" than how most developers would think as "open source".

If this isn't how Windmill wants their license interpreted, I highly encourage clarifying things.

[0] https://github.com/windmill-labs/windmill#commercial-license

[1] https://opensource.google/documentation/reference/using/agpl...

comment 3y ago · link · parent

One balance I've yet to find is how to handle the split between code-in-database (workflows stored in a database and edited via web IDE) vs code-in-git (workflows checked into the repo and only changed via the normal development+peer-review process).

It looks like Workflow is primarily the former (code-in-database), but provides an API to sync things from a git repo. Is there a mechanism to enforce the rule that certain scripts/functionality/secrets are locked behind workflows sourced from a provided repository?

12345
11