LinuxDo 新帖推送
182 subscribers
251K photos
312K links
Download Telegram
标题: Nature 编程语言集成 WebView
作者: #hualaka
板块: #国产替代
编号: 1501088
帖子: https://linux.do/t/topic/1501088
时间: 2026-01-22 16:59:34
摘要:
一位开发者尝试在 nature 编程语言中集成 WebView(项目地址:https://github.com/wzzc-dev/nature-webview),采用类似 Rust Tauri 的集成方式,最终打包完成后可以得到体积小巧、轻量化的可执行桌面程序。

这个简单的桌面程序就是由 nature + webview 打包而来,在 macos arm64 上只有 680KB 的大小,下面是一个更加简单的 hello world 代码示例
import webview as w
import webview.{webview_t}
import libc.{cstr, to_cfn}
import co.{sleep}
import co
import runtime

fn interval_callback() {
co.yield() // Yield coroutine every 10ms to allow GC to run
}

fn other() {
for true {
println('other co')
sleep(1000)
}
}

fn main() {
println("Hello, Nature Webview!")

@async(other(), co.SAME)

var window = w.create(1, null)
w.set_title(window, "Hello World".to_cstr())
w.bind(window, "interval_callback".to_cstr(), to_cfn(interval_callback as anyptr), 0)

var html = `
<html>
<body>
<script>setInterval(() => {window.interval_callback(
标题: 反重力炸了影响真大,好多公益站的gemini3也用不了
作者: #fist2005
板块: #搞七捻三
编号: 1501090
帖子: https://linux.do/t/topic/1501090
时间: 2026-01-22 16:59:55
摘要:
反重力有部分炸了,好多公益站的gemini3也用不了。
标题: 反重力挂了也许是自己服务器问题,x反重力官方下面好多人都在反馈
作者: #formalistBlue
板块: #开发调优
编号: 1501092
帖子: https://linux.do/t/topic/1501092
时间: 2026-01-22 17:00:13
摘要:
标题: 感谢佬的教程,白嫖已发货
作者: #Simshen
板块: #福利羊毛
编号: 1501094
帖子: https://linux.do/t/topic/1501094
时间: 2026-01-22 17:00:21
摘要:
标题: 反重力也被出手了吗
作者: #堪仲
板块: #搞七捻三
编号: 1501095
帖子: https://linux.do/t/topic/1501095
时间: 2026-01-22 17:00:37
摘要:
香港 日本 新加坡 都换了都加载不出来
标题: Antigravity 炸了?
作者: #Y.Z Cong
板块: #开发调优
编号: 1501100
帖子: https://linux.do/t/topic/1501100
时间: 2026-01-22 17:01:56
摘要:
没办法选择模型了。
标题: Antigravity没模型了!!
作者: #山雨欲来
板块: #搞七捻三
编号: 1501105
帖子: https://linux.do/t/topic/1501105
时间: 2026-01-22 17:02:08
摘要:
有佬遇到这个情况吗,这个账号还是买的pro的。
标题: 求解web视频流式播放问题。
作者: #球儿
板块: #开发调优
编号: 1501107
帖子: https://linux.do/t/topic/1501107
时间: 2026-01-22 17:02:10
摘要:
我的在开发中遇到一个问题,那就是safari以及其他webkit内核浏览器似乎不支持H.265视频硬解,这也导致了我无法实现在safari上在线播放H.265视频,考虑过先缓存视频到后端服务器再转码,试了一下成本太高了。。小鸡完全无法承受,现在只能在前端检测浏览器不支持的情况下提示下载并给出下载按钮,还有没有别的方法?
流量走向如下:
Telegram服务器

Telethon 客户端(后端)

本地缓存

Nginx 反向代理(支持 Range 请求)

前端 Video.js 或 外部播放器
标题: 反重力炸了吗
作者: #景琛
板块: #搞七捻三
编号: 1501108
帖子: https://linux.do/t/topic/1501108
时间: 2026-01-22 17:02:14
摘要:
反重力挂了,退出就上不去了,
标题: 母猫发情,怎么缓解
作者: #:distorted_face:_Official
板块: #搞七捻三
编号: 1501110
帖子: https://linux.do/t/topic/1501110
时间: 2026-01-22 17:02:23
摘要:
家里布偶好像进了发情期
感觉拍屁股没有要缓解的迹象
还有什么更好的方法吗
标题: 想尝试一下trae国际版,这什么情况,被封了?
作者: #kikiy
板块: #搞七捻三
编号: 1501111
帖子: https://linux.do/t/topic/1501111
时间: 2026-01-22 17:02:32
摘要:
有没有懂得佬
标题: 【薄荷公益站】上新分组,codex分组
作者: #bohe
板块: #开发调优
编号: 1501117
帖子: https://linux.do/t/topic/1501117
时间: 2026-01-22 17:03:36
摘要:
[!note] 分组选择:kyx分组


codex模型放在二星和三星是有点速率低了,所以就单独拎出来了,全站都可以用,速率限制是5分钟50次,自己按需蹬吧
最好就是用在codex上面咯,普通聊天调用确实不大好调用,不过我实测的话,在cherrystudio上面是可用的,选择oai渠道,填入url和key就可以了

curl的话:
curl --location --request POST 'https://x666.me/v1/responses' \
--header 'authorization: Bearer sk-' \
--header 'content-type: application/json' \
--data-raw '{
"model": "gpt-5.2",
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "你好"
}
]
}
],
"stream": false
}'

我一开始看oai api文档,死活调用不出来,人都麻了,一直502,结果发现原来是input这里面有大问题。
标题: 白嫖0.3元 2026122
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #福利羊毛
编号: 1501122
帖子: https://linux.do/t/topic/1501122
时间: 2026-01-22 17:04:01
摘要:
https://25379339-399.hd.ysfaisco.cn/25379339/47wL3-0HZagHaQGrj62SZQ/xycjl.html?appid=wx159a1233490ec7a4&fromQrcode=false&canal=0

就是相当于你给华硕公众号点个关注
然后给你0.3
标题: 分享一个AI 语音转文字工具,在想能不能用它对着cc撸啊撸
作者: #smallktjoyc
板块: #开发调优
编号: 1501130
帖子: https://linux.do/t/topic/1501130
时间: 2026-01-22 17:04:51
摘要:
Typeless 是一个 AI 语音转文字工具,号称比打字快 4 倍。
能不能用它对着cc撸啊撸~




typeless.com





Typeless | AI Voice Dictation That's Actually Intelligent

Speak naturally, and Typeless will turn your words into polished messages, emails, and documents that read like you carefully typed them.