Better HN
topnewbestaskshowjobs
Log inSign up

jarpineh

260 karma · joined Apr 6, 2011 (15y ago) · 185 submissions

Submissions

comment 8mo ago · link · parent

Intriguing concept, especially because I've thought of dabbling into this area.

Can this tool solve these problems with models:

- insisting on using sed and shell redirection instead of File Edit Tools?

- trying to use npx to run commands instead of npm run that's right there in package.json

- forgetting to produce the docs that was asked for in AGENTS.md

- checking and using latest package versions instead of deciding somehow that years old versions are good enough

To my mind these are context problems, where somehow model chooses other information it has over what's in the repository, and what tools it has on call.

The other side of Lat.md, checking diffs models make among other changes, that's hard for me to grasp. I'd need to see it in action. Perhaps a coding session as a stream?

comment 8mo ago · link · parent

As an aside, there's now Lance data format support in DuckDB through their extension. It has Lance's vector search support available among other things:

https://github.com/lance-format/lance-duckdb/tree/main?tab=r...

I just noticed this, and your post, and haven't yet checked neither (sorry). I'm however doing some vector search benchmarking soon, with DuckDB's options alongside others. So your work caught my attention here.

comment 1y ago · link · parent

Well, this looks very nice. I have so far avoided runbooks, preferring to use Ansible or such. Installed, and will see if I'll change my habits. Containers and such have made Ansible usage more cumbersome.

Also, I noticed there's only 60+ Atuin sponsors (at Github), so added myself. Been using Atuin for some while now. Hopefully their work is sustainable.

comment 1y ago · link · parent

I wonder what is the difference between efficiency of MacBook display vs Framework laptop. Whilst CPU and GPU take considerable power they aren't usually working at 100% utilization. Display however has to be using power all the time, possibly at high brightness in daytime. MacBooks have (all?) high resolution displays which should be much power hungrier than Framework 13 IPS. Pro models use mini LED, which needs even more power.

I did ask LLM for some stats about this. According to Claude Sonnet 4 through VS Code (for what that's worth), my Macbook's display can consume same or even more power than CPU does for "office work". Yet my M1 Max 16" seems to last a good while longer than whatever it was I got from work this year. I'd like to know how those stats are produced (or are they hallucinated...). There doesn't seem to be a way to get display's power usage in M series Macs. So, you'd need to devise a testing regime for display off and display on 100% brightness to get some indication of its effect on power use.

comment 1y ago · link · parent

I'm no health expert, only an expert practitioner of my hands. Mostly I keep changing keyboards and positions. That small chorded keyset can be set to more natural positions and moved at will to wherever you can reach. You ostensibly don't need to even look at it. I'd assume you would be looking between the chord sheet for directions and what you're actually writing... A device like this Tap thing, which is attached to your fingers or wrist, allows even more freedom.

As for mouse, well, I guess a trackball is easier to move about, stick to chair arm or something. Touchpad might work also, but you require more estate for precision and gestures.

comment 1y ago · link · parent

Yeah, I have probably conflated the two technologies somewhere along the way. And if I had read all the way to the footnotes of the original article I'd have found the keyset's chords. They do are counting in straight binary, going from a-z in order. Add mouse buttons for modes to get uppercase, numbers and what not. Interesting really that such a simple scheme worked.

comment 1y ago · link · parent

Whoa. Thank you for the info dump. I'll see about making use of these.

That Tap device has moved from fingers to wrist, I see. Sadly it's out of stock. Plus getting niche devices outside US is expensive and warranty probably doesn't work.

[1] https://www.tapwithus.com/product/tap-xr/

Edit: that LTT video makes a good case for the device, if only in typical 'tube fashion.

comment 1y ago · link · parent

I sometimes wonder if chorded keyboard would be better for controlling the computer and keeping better posture against RSI issues. Not to mention more compact space compared to full keyboard. I seem to remember from a recording of the demo (and few writings on subject) that the keyset and mouse were used together for more powerful effect than either one alone.

What I haven't found out is how well a multilingual writer could use these. Do the chords rely on properties of particular language, like English. Does the chord order follow from how often you write letter a instead of x. Would another language be adaptable to same chords, or do you need to make an optimized version?

comment 1y ago · link · parent

And since in Lisp code is data and data is code you could go even farther back. A tad sensationalist claim from the article authors.

comment 1y ago · link · parent

I find it a baffling that the popularity of Jupyter and successes of notebook analysis in science hasn’t brought a change in Python to better support this user base. Packaging has (slowly) progressed and Uv nicely made the experience smooth, fast and above all coherent. Yet the Python runtime and parser are the same as ever. The ipynb notebook format and now Marimo’s decorator approach had to be invented on top. Python might never attain the heights of Lisp’s REPL driven development, yet I wonder if it couldn’t be better. As much I enjoy using Jupyter it’s always been something tacked on top of infrastructure that doesn’t want to accommodate it. Thus you need to take care of cell order yourself or learn to use a helper tool (Jupytext, Nbdev).

Me, I’d have support in the parser for a language structure or magic comment that points the cell boundaries. I would make dynamic execution of code a first party feature with history tracking and export of all the code sent into the runtime through this. Thus what the runtime saw happen could be committed over what user thought they did. Also, a better, notebook aware evaluation with extension hooks for different usage methods (interactive, scripting, testing).

I have no solution to ipynb JSON problem. I do think it is bad that our seemingly only solution for version control can manage only simple text, and users of all the other format have to adapt or suffer.

comment 1y ago · link · parent

This is a wonderful project. Seemingly simple on the surface. I'd love to see some notes of the frontend implementation. I see there's OpenFreeMap as presumably the base map, which uses MBTiles. Then custom geometry on top from Pmtiles, that I assume is generated for the project. How the colormapping is done I didn't find yet. Actually lots to unpack here.

comment 1y ago · link · parent

That's one way of looking at it. To me this UI seems like both a useful tool and an advertisement.

There's another way this could have gone. DuckDB Labs might have published the extension as providing official HTTP API for all to use. Then simultaneously MotherDuck would announce support for it in their UI. Now with access to any and all databases whether in-browser, anywhere through official HTTP API or in their managed cloud service.

I for one would like HTTP API for some things that now necessitates doing my own in Python. I don't see yet much need for the UI. I'm not looking for public, multiuser service. Just something that I can use locally which doesn't have to be inside a process (such as Python or web browser). There's such API in the extension now, but it's without docs and in C++ [1]. There's also the option of using 3rd party community extension that also does HTTP API [2]. Then there's one that supports remote access with Arrow Flight, but gRPC only it seems [3]. But official, stable version would be nice.

[1] https://github.com/duckdb/duckdb-ui/blob/main/src/http_serve...

[2] https://duckdb.org/community_extensions/extensions/httpserve...

[3] https://github.com/Query-farm/duckdb-airport-extension

comment 1y ago · link · parent

Ok, thank you for the explanation.

I realized that the extension provides a HTTP API to DuckDB. Is this perhaps to become the official way to use DuckDB through HTTP? For me this is much more interesting than one particular UI.

I went looking and found that there's community extension of similar functionality: https://duckdb.org/community_extensions/extensions/httpserve...

Official, supported HTTP API with stable schema versioning would be a nice addition.

comment 1y ago · link · parent

The nature of UI as an extension is somewhat hard to understand, since its installation method differs from other extensions. Even core ones. Some extensions autoload, some require INSTALL query, and this one has its own special builtin query. It at least feels more ingrained than other extensions by its user experience.

Then there's the (to me) entirely new feature of an extension providing a HTTP proxy for external web service. This part could have been more prominently explained.

Edit: the OP states that "built-in local UI for DuckDB" and "full-featured local web user interface is available out-of-the-box". These statements make me think this feature comes with the release binary, not that it's an extension.

To clarify my point: for me it's not the possible confusion of what this plugin does or how, but what this collaboration means for the future of DuckDB's no-cost and commercial usage.

comment 1y ago · link · parent

I have thought that the commercial nature of the (heh) mother company here, DuckDB labs, is support contracts and the like. Whilst MotherDuck is just another VC funded company in the DuckDB ecosystem. This new extension being added the list of default extensions blurs the line. That it seemingly is a proxy to closed source product from another company makes things even murkier. I can see a point for a for-pay external extension, but this one feels more like an AD for other company's services.

comment 1y ago · link · parent

The docs say that the extension's server is configured here: https://duckdb.org/docs/stable/extensions/ui#remote-url

But yeah, I can't find docs nor source for the UI. And the extension docs refer to MotherDuck's own UI: https://motherduck.com/docs/getting-started/motherduck-quick...

So, a bit confusing way this is set up.

comment 1y ago · link · parent

The UI looks nice and is by itself a welcome addition.

I am somewhat at odds with it being a default extension build into DuckDB release. This still is a feature/product coming from another company than the makers of DuckDB [1], though they did announce a partnership with makers of this UI [2]. Whilst DuckDB has so far thrived without VC money, MotherDuck has (at least) 100M in VC [3].

I guess I'm wondering where the lines are between free and open source work compared to commercial work here. My assumption has been that the line is what DuckDB ships and what others in the community do. This release seems to change that.

Yes, I do like and use nice, free things. And I understand that things have to be paid for by someone. That someone even sometimes is me. I guess I'd like clarification on the future of DuckDB as its popularity and reach is growing.

[1] https://duckdblabs.com

[2] https://duckdblabs.com/news/2022/11/15/motherduck-partnershi...

[3] https://motherduck.com/blog/motherduck-open-for-all-with-ser...

edit: I don't want to leave this negative sounding post here without addendum. I'm just concerned of future monetization strategies and roadmap of DuckDB. DuckDB is a good and useful, versatile tool. I mainly use it from Python through Jupyter, in the browser and native. I haven't felt the need for commercial services (plus purchasing them from my professional setting is too convoluted). This UI whilst undoubtedly useful seems to be leaning towards commercial side. I merely wanted some clarity on what it might entail. I do hope DuckDB and its community even more greater, better things, with requisite compensation for those who work to ensure this.

comment 1y ago · link · parent

This looks very promising. I'll have to think my visualization cases against new possibilities this enables.

I have been intermittently following Rerun, a "robotics-style data visualization" app [1]. Their architecture bears certain similarities [2]. Wgpu in both, egui and imgui, Rust with Python. Rerun's stack does compile to WASM and works in browser. Use cases seem different, but somewhat the same. I don't do scientific nor robotic stuff at all, so no opinions on feasibility of either...

[1] https://rerun.io [2] https://github.com/rerun-io/rerun/blob/main/ARCHITECTURE.md

comment 1y ago · link · parent

Well this seems nice and easy. Thank you for the example. There's local, Kubernetes and fly.io support for FLAME (that I found after short search). I envision running main Erlang VM on a light weight server continuously, and starting beefier machines for Python tasks as needed.

comment 1y ago · link · parent

At first read this seems really promising. Getting into Elixir/Erlang ecosystem from Python has seemed too hard to take the time. And when there I wouldn't be able to leverage all the Python stuff I've learned. With Pythonx gradual learning seems now much more achievable.

It wasn't mentioned in the article, but there's older blog post on fly.io [1] about live book, GPUs, and their FLAME serverless pattern [2]. Since there seems to be some common ground between these companies I'm now hoping Pythonx support is coming to FLAME enabled Erlang VM. I'm just going off from the blog posts, and am probably using wrong terminology here.

For Python's GIL problem mentioned in the article I wonder if they have experimented with free threading [3].

[1] https://fly.io/blog/ai-gpu-clusters-from-your-laptop-liveboo...

[2] https://fly.io/blog/rethinking-serverless-with-flame/

[3] https://docs.python.org/3/howto/free-threading-python.html

comment 2y ago · link · parent

There’s also Overture Maps with its 3.7B features:

https://overturemaps.org/

Foursquare could conceivably become a member and donate their data.

comment 2y ago · link · parent

You can use DuckDB WASM independently of Pyodide and can extend it with SQLite.

Though it seems to be somewhat limited. I couldn't even check what version it has, since sqlite_version() was missing. Version in the repository [1] is 3.38.1, which is from quite a ways ago.

At the moment DuckDB web shell can't load SQLite extension, since that hasn't been released for yesterday's 1.1.2. Earlier version does work using recently updated WASM edition. That can be extended with spatial including GDAL, vector search etc [2]. Making your own "SQL web shell" wasn't too hard, though docs weren't quite complete enough for me.

[1] https://github.com/duckdb/sqlite_scanner/blob/main/src/sqlit... [2] https://github.com/duckdb/duckdb-wasm/releases/tag/v1.29.0

comment 2y ago · link · parent

I do applaud this kind of work. Better, faster tooling for data as files and moving across runtimes is sorely needed.

Two things I would hope to see before I'd start using Vorter is geospatial data support (there's already Geoparquet [1]) and WASM for in-browser Arrow processing. Things like Lonboard [2] and Observable framework [3] rely on Parquet, Arrow and Duckdb files for their powerful data analytics and visualisation.

[1] https://geoparquet.org

[2] https://developmentseed.org/lonboard/latest/

[3] https://observablehq.com/framework/

comment 2y ago · link · parent

There's the tmux -CC control mode support that was mentioned, which combines best from both. Leader key support that arrived in this version might enable even greater Tmux integration.

I like how easy it has been to manage Unix terminal keys without giving up non-US keyboard altogether. Other Unix/Linux terminal stuff like middle click/tap paste. Search is good. Hotkey window ("Quake" mode") is a fun one, but never seem to remember to call it. Contrast adjustment to tweak themes for readability. Smart Selection for urls and the like.

But I've been an user for many years, so hard to look at the experience through features.

comment 2y ago · link · parent

Yeah, this state of discussion saddens me. There's so many other features I've yet to digest in the release notes. This release has been a long time in coming. Yet, as a daily iTerm user, I haven't thought I have really missed anything. It works and it works well. But, I'm certain there's few things here I'll be using soon. I have been donating a long time, and shall continue to so.

comment 2y ago · link · parent

These AI features aren't behind the scenes things. You either have to call "Codecierge" or "Engage Artificial Intelligence" explicitly. Unless I've missing something. As per release notes:

- Add AI-powered natural language command generation. Enter a prompt in the composer and select Edit > Engage Artificial Intelligence. You will need to provide an OpenAI API key since GPT costs money to use. - A new AI feature in the Toolbelt, "Codecierge", lets you set a goal and then walks you step-by-step to completing it by watching the terminal contents. It requires you to supply an OpenAI API key.

comment 2y ago · link · parent

It is exposed from Advanced tab under "URL for AI API". You do have to change the model name from the preselected and offered OpenAI GPT model names. Otherwise this AI API URL isn't used. Haven't yet tested with local OAI compatible model yet, though, but did manage to break it using bad address :)

comment 2y ago · link · parent

There's advanced setting for "URL for AI API" which I guess you could use for local (OpenAI compatible) model services. Since I only have Azure based OAI I can't use the commercial service anyway...

I would like to use LLM as a helper directly. I wouldn't enable it on main profile and user account, but in a separate profile with restricted account it can be useful. I already do copy paste from LLM, which is far slower than this new feature (though of course more controlled).

comment 2y ago · link · parent

I second this. Though I might just (heh) be too biased having today added some common Just recipes as global shell aliases [1]

I also use Just for build and deploy commands. Other thing I was thinking of was setting environment variables. Complex pipelines can be split into several dependent recipes. Or using shell aliases you can string them together yourself with regular pipes in very compact form. Just recipes defer to shell or a programming language of your choice. Just makes some shell stuff easier without replacing or hiding it.

[1] https://just.systems/man/en/chapter_68.html

Edit: I also added Atuin https://atuin.sh/ recently to better deal with shell command history. Though that one I’m still learning.

comment 2y ago · link · parent

Thank you for your reply. For the first point, I agree. When I was doing my experiments with single file Django I was thinking of combining few simple, single purpose apps into one regular Django project. This project would serve as an actual site for people to use with its own templates, but hopefully not that much custom code. With ASGI coming along (this was 2019 I think) I even tried to combine these app pieces under one ASGI server. Sadly I run into some trouble with server tooling.

In regards to nanodjango I shall take a look. Also, need to read the rest of your articles. Thank you for writing them! I’d still like to experiment with the idea of small, independent, pluggable apps. Perhaps Django can be coaxed to this now.

1234567