News for hackers. Stuff that matters.

itsuka

Re:Arwes: Futuristic Sci-Fi UI Web Framework on Friday June 23, 2023 @12:21PM (#36449012)
You can see the glass material I was referring to in this video (timestamped): https://developer.apple.com/videos/play/wwdc2023/10076/?time...
Re:Arwes: Futuristic Sci-Fi UI Web Framework on Friday June 23, 2023 @11:38AM (#36448371)
I'm sorry if this is offtopic, but I think the future is already here.

I would love to see a UI framework based on the glass material like the one used in visionOS (with dynamic vibrancy for better accessibility). Bonus: a spotlight effect on hover. For reference, Apple has provided their design file on Figma here: https://www.figma.com/community/file/1253443272911187215

I am an advocate for knowledge sharing and have previously contributed (a tiny amount) to the community mentioned above, Reactiflux. There, I was able to share my knowledge freely without fear of being penalized or judged through a voting system, or being heavily moderated as is the case with Wikipedia or StackOverflow. I also didn't have to worry about my contributions being eternally indexed on the internet. As a contributor, this is a feature (much less so for the lurker).

On that note, I recently had to request a deletion from Internet Archive because I shared content on my personal website that violates a ToS (it's a Slack archive that I have already anonymized). Unsurprisingly, my request went unanswered.

Are you referring to the text-gecko model? I don't think it's released to the public yet.

> If I remember correctly gecko is small enough to run on device.

Yes, I also remember reading that it's designed to be lightweight enough to run on a mobile device.

textembedding-gecko reached GA on June 7th, together with text-bison.

You can view all the models available to you on Model Garden.

For those who are curious (like me), Human Interface Guidelines and design templates for visionOS will be published later this month alongside the first visionOS developer seed.

(source: WWDC23 Slack)

Re:News from WWDC23: WebKit Features in Safari 17 Beta on Tuesday June 06, 2023 @11:11PM (#36222403)
If I remember correctly, Safari addressed many transform-related bugs two years ago, which resulted in me noticing fewer bugs (quite drastically). Around that time, Safari became my primary development browser, which may have also contributed to this observation.

Based on Web Platform Test [0], it looks like Chromium browsers are not performing any better in this area.

[0] https://wpt.fyi/results/css?label=master&label=experimental&...

But I feel the pain of having to carefully test 2D/3D transform and animation on all browsers across platforms (even Safari on iOS and macOS can have different behaviors).

How about prompt construction? I first heard about it from the maintainer of LangChain, and I also came across it in Azure docs: https://learn.microsoft.com/en-us/azure/cognitive-services/o...
I'm not sure what you're trying to build, but by the end of the second course, you should be able to create a customer service chatbot that is equivalent to what others have built. If you're interested in building/fine-tuning an LLM, that's totally beyond my knowledge.
I have taken Andrew Ng's courses on DeepLearning.AI and I highly recommend them if you are interested in quickly building LLM-based apps.

I suggest taking them in the following order:

- https://www.deeplearning.ai/short-courses/chatgpt-prompt-eng...

- https://www.deeplearning.ai/short-courses/building-systems-w...

- https://www.deeplearning.ai/short-courses/langchain-for-llm-...

Note: although I only have basic Python skills, I am still able to follow these courses

I have never built an agent before, nor am I knowledgeable about the latest studies in this field. So what I am saying below is likely to be nonsensical.

I was thinking that perhaps we have been working with abstractions that are too low-level. Instead of providing a set of tools such as API calls or text splitters, wouldn't it be more reliable to give agents templates or workflows of successful tasks, such as trimming videos or booking restaurants?

These templates would consist of a set of function calls, or a graph of connected components in low-code tools like LangFlow. I believe auto agents already use a similar concept where they cache successful tasks for future reuse. The idea is to populate these caches with the most common use cases, and use retrieval if they become too large, so that we don't experience cache-miss most of the time and work with lower-level abstractions (tools) as the baseline. Templates, like prompts, should be portable (e.g. JSON) to avoid the need for everyone to reinvent the wheel. While this solution may not be as impressive as a full autonomous agent and may not work for a generalized case, it should produce a more predictable outcome, I think.

I maintain a list of OpenAI-based OSS UIs: https://github.com/itsuka-dev/awesome-chatgpt-ui

This one seems to have gpt-4-0314 model: https://chatgpt.nextweb.fun

For gradient tool, I can recommend https://gradient.style by Adam Argyle

Not only is it easy to use (IMO), but it's also more powerful than what design tools offered today, with new color spaces being one of my favorite features.

Intro: https://twitter.com/argyleink/status/1649124742463623169

Re:MDN Blog on Tuesday May 30, 2023 @12:36PM (#36126968)
Thank you for taking the time to explain things so clearly to me. Considering the reuse, having values in a separate page makes sense now.
Re:React is 10 years old on Tuesday May 30, 2023 @12:22PM (#36126740)
To celebrate React 10th anniversary, Next.js interviewed Andrew and Sebastian from React core team: https://www.youtube.com/watch?v=g5BGoLyGjY0
Re:MDN Blog on Tuesday May 30, 2023 @12:09PM (#36126557)
You're right. I am not as familiar with MDN's organization and CSS as you are (I only recently discovered that CSS is a typed language). However, I find it confusing that some pages have their own page for values, while others don't. As a reference page, I expect the valid syntax for all values to be provided. But I agree that specific examples can be linked to other resources.
Re:MDN Blog on Tuesday May 30, 2023 @11:39AM (#36126132)
I wish they'd update their docs with better examples instead of creating more content for tutorials, blogs, etc.

As an example, when comparing these two pages:

- Blog: https://developer.mozilla.org/en-US/blog/css-color-module-le...

- Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/color

It is apparent that the reference page lacks any mention of features from level 4 such as oklch, display-p3, and color function. Also, a search for "display-p3" returns no results on that page.

I personally prefer sizes that are multiple of 8 because it works well with grid-based layouts and popular CSS libraries and design tools like Tailwind and Figma also adopt this system, although not strictly. However, I agree with your general sentiment that the exact number does not matter much. It will matter less even more when Container Queries become a common practice.

Older »