Readit News logoReadit News
dwmbt commented on Observable Notebooks Data Loaders   observablehq.com/notebook... · Posted by u/mbostock
thomastjeffery · 3 months ago
The CLI works great for... what?

Isn't the idea to write notes? I think constantly running a script to generate a static webpage would drive me insane. Isn't the whole point of a computational notebook to have some kind of integrated GUI?

dwmbt · 3 months ago
have you taken a look at what the CLI is for? like you mentioned, it's pretty much just a build step! but there are some runtime things basked that are interesting [0]. i just have a watcher listening to file changes to trigger a rebuild. i have no need for real-time queries so just having the current state at build works for my purposes.

if you must know, the product i work on is primarily a data lake. we have our own query language -> i have a fork of the CLI w added support for parsing custom cells. i don't know of any alternatives that give me a notebook so easily!

> running a script to generate a static webpage would drive me insane

possibly web-brained take but i don't mind it much. builds are instant for me, network latency is the only thing i find myself waiting around on.

> Isn't the whole point of a computational notebook to have some kind of integrated GUI

well yea, pretty sure the entire point of the desktop app is to show what you can build atop the new api! this preview is meant to expand the capability of observable within your own custom web app. the original framework was too close to some of the frustrations you mentioned, so they're trying to make it more amorphous :)

[0] https://github.com/observablehq/notebook-kit/tree/main/src/r...

dwmbt commented on Observable Notebooks Data Loaders   observablehq.com/notebook... · Posted by u/mbostock
mjoin · 3 months ago
what? this runs on all platforms
dwmbt · 3 months ago
i believe they're referring to the observable desktop[0] macos app, a gui client for notebook kit[1]. the cli works great, fwiw!

[0]: https://observablehq.com/notebook-kit/kit) [1]: https://observablehq.com/notebook-kit/desktop

dwmbt commented on Deno in 2023   deno.com/blog/deno-in-202... · Posted by u/spiros
CyberDildonics · 2 years ago
What does it have to do with Deno and why do any of that to draw boxes and text on the screen? FLTK could do GUIs that took almost no CPU power starting with 100KB binaries 30 years ago.

People doing hardware accelerated GUIs have been using openGL for almost as long. This doesn't need to be a science project or a rabbit hole, drawing a GUI quickly is well worn territory.

dwmbt · 2 years ago
edit: i will not be taking this comment in good faith, i had a look through parents comments and it looks like they simply do not agree with Slint's approach to GUI programming: https://news.ycombinator.com/item?id=39223499#39229382

> What does it have to do with Deno

can we at least try to give people the benefit of the doubt instead of pretending like everyone is out to get you? if you read the change-log, it spells it out well:

> Our goal is to provide a windowing solution for WebGPU without linking to native windowing systems like X11

> This is a low level API that can be used by FFI windowing libraries like sdl2, glfw, raylib, winit and more to create a WebGPU surface using native window and display handles.

do you get it yet?

> People doing hardware accelerated GUIs have been using openGL for almost as long. This doesn't need to be a science project or a rabbit hole, drawing a GUI quickly is well worn territory.

i suggest talking to other graphics professionals to get a better understanding of why opengl is not _the_ solution. for a tldr[0]:

> regular OpenGL on desktops had Problems. So the browser people eventually realized that if you wanted to ship an OpenGL compatibility layer on Windows, it was actually easier to write an OpenGL emulator in DirectX than it was to use OpenGL directly and have to negotiate the various incompatibilities between OpenGL implementations of different video card drivers. The browser people also realized that if slight compatibility differences between different OpenGL drivers was hell, slight incompatibility differences between four different browsers times three OSes times different graphics card drivers would be the worst thing ever. From what I can only assume was desperation, the most successful example I've ever seen of true cross-company open source collaboration emerged: ANGLE, a BSD-licensed OpenGL emulator originally written by Google but with honest-to-goodness contributions from both Firefox and Apple, which is used for WebGL support in literally every web browser.

also, openGL is deprecated on macOS.

[0]: https://cohost.org/mcc/post/1406157-i-want-to-talk-about-web...

dwmbt commented on Show HN: The Enchiridion   psykip.vercel.app/... · Posted by u/bdsqqq
dwmbt · 2 years ago
this looks and reads great, repo here if anyone is interested: https://github.com/bdsqqq/psykip
dwmbt commented on I made ChatGPT to rewrite the CV to match the job posting   chat.openai.com/g/g-7A4g8... · Posted by u/nikolaiST
TrueGeek · 2 years ago
How are you converting the markdown format resume to a Word doc / PDF?
dwmbt · 2 years ago
`pandoc resume.md -o resume.pdf -V geometry:margin=1in`
dwmbt commented on A picture is worth a thousand permissions requests   sixcolors.com/post/2023/1... · Posted by u/ingve
dwmbt · 2 years ago
> Something so basic as moving a file between two directories. Can you Command-X, Command-V it?

try Command-C, Command-Option-V. works for me :)

also, if you're in need of a launcher, Raycast is nice. i don't use any of their fancy AI stuff and opted out of data tracking. i have several window management functions there that are indispensable.

dwmbt · 2 years ago
i know it's separate from the thread, but i thought i'd share another nice macos utility app. i have some bots and personal CLI tools running somewhat around the clock. amphetamine helps keep your mac alive through sessions, so you can run jobs or even just play music while 'sleeping'.
dwmbt commented on A picture is worth a thousand permissions requests   sixcolors.com/post/2023/1... · Posted by u/ingve
andrelaszlo · 2 years ago
I recently switched my work laptop from a ThinkPad running Arch to a MacBook Air M2.

I was very efficient in my Arch environment that I have tweaked gradually for over a decade so I was quite reluctant to make the move.

Trying to keep an open mind, I told myself that at least I will get the pleasure of using the amazingly intuitive and beautiful UIs that Apple have been tweaking since before I was even born!

Imagine my disappointment. Simple things are slow and annoying. Difficult things are impossible.

Something so basic as moving a file between two directories. Can you Command-X, Command-V it? No. If both folders are open in Finder tabs you can drag the file to the tab, then wait for a blinking animation to complete before you are allowed to drop it into the target folder.

I guess you should open both folders as separate windows and then drag. But that creates even more windows, and window management in Macos is just impossible to tweak, so you are forced to use Apple's weird gesture-based paradigm. It might feel productive since you make so many animations happen but switching to the window you're thinking of should - and could - take fractions of a second and feel like an extension of your mind but in this new reality it's more like choreographing a bizarre window ballet even when you get used to it.

Things could be so much better. But hey, the hardware seems pretty good.

dwmbt · 2 years ago
> Something so basic as moving a file between two directories. Can you Command-X, Command-V it?

try Command-C, Command-Option-V. works for me :)

also, if you're in need of a launcher, Raycast is nice. i don't use any of their fancy AI stuff and opted out of data tracking. i have several window management functions there that are indispensable.

dwmbt commented on Live near your friends   headlineshq.substack.com/... · Posted by u/thenobsta
olah_1 · 2 years ago
> Spending my 20s in city, where I could walk to a bar/friend's house/restaurant/ball game, was a wonderful experience.

For many, living in a city like that can be just as isolating, if not more. Because being surrounded by so many people and not having any real connections is a different kind of hurt. It's sort of a cosmic joke at that point.

dwmbt · 2 years ago
taken me a couple of years to figure this out. moved to a medium-large city post uni with a grand delusion that i'd simply make friends and find my wife due to the virtue of living in a denser environment.

after a while, it didn't work out like i thought it would. surely, it had nothing to do with me and my inability to socialize properly? nay! i came to the naive conclusion that the city was at fault, or that we were mismated: "it's not big enough and there's not enough to do, or places to meet people. it's really far from the things i like to do, like the ocean or hiking spots." so, i moved to one of the most dense, socially-active cities in the world.

been here a while and yeah, it sucks. i think you put it best, feels a bit like a cosmic joke. there's only a few places in the world where so many people are crammed into such a small place. yet, i have no one.

i had enough and dished out some $$$ to spend 2 months in a rural town. a real quiet place, one of those towns with a single coffee shop. no whole foods or any amazon shenanigans. i miss some things, but the only times i've felt this at home have been... at home, with my parents. i think i'll move back in with them and give up on the city dream.

dwmbt commented on At this company, we are family   pboyd.io/posts/at-company... · Posted by u/dharmit
marklar423 · 2 years ago
That sounds fascinating, a whole world I know nothing about. Would you mind pointing me at where I could read more?
dwmbt · 2 years ago
an heir to the Johnson & Johnson fortune filmed a documentary full of weird dynamics like this: https://www.youtube.com/watch?v=HmlX3fLQrEc
dwmbt commented on 100 Days of SwiftUI   hackingwithswift.com/100/... · Posted by u/sanketpatrikar
marcellus23 · 3 years ago
Yeah, I know, but the comment mentions Swift everywhere else, including in the name of the list being created in Reminders. The conflation of Swift and SwiftUI also shows up a few other times in the comments here.
dwmbt · 3 years ago
ahhh yeah, wish i could update my comment to give that context. i learned swift via swiftui, as it seemed like the most accessible avenue (as far as quality resources go)!

u/dwmbt

KarmaCake day181September 16, 2021View Original