Recent submissions

Comment · 1 year ago
Comment · 1 year ago
Comment · 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...

Comment · 2 years ago
Comment · 2 years ago
`pandoc resume.md -o resume.pdf -V geometry:margin=1in`
Comment · 3 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'.
Comment · 3 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.

Comment · 3 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.

Comment · 3 years ago
Comment · 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)!
Comment · 3 years ago
i used this to learn swift myself and wished there was a newsletter to send out a reminder for me. instead, i used this apple script to generate a reminder every day for me. you can open Script Editor on your mac and run this. it will start today and schedule a new alert with the appropriate link :)

```AppleScript

set baseURL to "https://www.hackingwithswift.com/100/swiftui/"

set numberOfDays to 100

tell application "Reminders"

set swiftList to make new list with properties {name:"100

Days of Swift"}

repeat with i from 0 to numberOfDays

  set dayNumber to "Day " & i

  set dayLink to baseURL & i

  set reminderDate to (current date) + (i \* days)


  tell swiftList to make new reminder with properties {name:dayNumber, body:dayLink, due date:reminderDate}

 end repeat
end tell

```

Comment · 3 years ago
interesting hypothesis, but my subjective rebuttal is that nearly all of my friends would readily admit that they'd be perfectly content with building a life similar to that of their parents. most kids just don't think it's possible.

i asked in the parent comment if this is a normal thing? my parents were immigrants, so they don't have the experience of growing up here. it's always been an uphill battle. perhaps i've inherited that mentality but i wonder if americans of previous generations were also 23 and cynical, never thinking it possible to afford building a comfortable life?

Comment · 3 years ago
Comment · 3 years ago
Comment · 3 years ago
that's also not entirely true either. it's prone to make illegal moves. one could argue abiding by the rules of the game is a requisite for understanding!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton