<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>zzz6519003 (Snowmanzzz)</title>
    <link>https://ruby-china.org/zzz6519003</link>
    <description>梦游</description>
    <language>en-us</language>
    <item>
      <title>cloudfare vercel 部署后得到的链接国内用不了，求推荐域名服务～</title>
      <description>&lt;p&gt;///&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Tue, 31 Mar 2026 15:37:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/44534</link>
      <guid>https://ruby-china.org/topics/44534</guid>
    </item>
    <item>
      <title>最近学 rust，vibe 了一个序列化器，想念宏魔法</title>
      <description>&lt;p&gt;整出这样的代码&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use crate::ast::Json;
use crate::parser::parse;
use std::collections::HashMap;

pub trait ToJson { fn to_json_value(&amp;amp;self) -&amp;gt; Json; }
pub trait FromJson: Sized { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt;; }

pub trait Serialize { fn serialize(&amp;amp;self) -&amp;gt; String; }
pub trait Deserialize: Sized { fn deserialize(s: &amp;amp;str) -&amp;gt; Result&amp;lt;Self, String&amp;gt;; }

impl&amp;lt;T: ToJson&amp;gt; Serialize for T { fn serialize(&amp;amp;self) -&amp;gt; String { self.to_json_value().to_string() } }
impl&amp;lt;T: FromJson&amp;gt; Deserialize for T { fn deserialize(s: &amp;amp;str) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { let j = parse(s)?; FromJson::from_json_value(j) } }

// Primitive impls
impl ToJson for String { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::String(self.clone()) } }
impl ToJson for &amp;amp;str { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::String(self.to_string()) } }
impl ToJson for bool { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::Bool(*self) } }
impl ToJson for f64 { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::Number(*self) } }
impl ToJson for i64 { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::Number(*self as f64) } }
impl ToJson for u64 { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::Number(*self as f64) } }

impl FromJson for String { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::String(s) = v { Ok(s) } else { Err("expected string".into()) } } }
impl FromJson for bool { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::Bool(b) = v { Ok(b) } else { Err("expected bool".into()) } } }
impl FromJson for f64 { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::Number(n) = v { Ok(n) } else { Err("expected number".into()) } } }
impl FromJson for i64 { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::Number(n) = v { Ok(n as i64) } else { Err("expected number".into()) } } }
impl FromJson for u64 { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::Number(n) = v { Ok(n as u64) } else { Err("expected number".into()) } } }

// Option
impl&amp;lt;T: ToJson&amp;gt; ToJson for Option&amp;lt;T&amp;gt; { fn to_json_value(&amp;amp;self) -&amp;gt; Json { match self { Some(v) =&amp;gt; v.to_json_value(), None =&amp;gt; Json::Null } } }
impl&amp;lt;T: FromJson&amp;gt; FromJson for Option&amp;lt;T&amp;gt; { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { match v { Json::Null =&amp;gt; Ok(None), other =&amp;gt; Ok(Some(FromJson::from_json_value(other)?)) } } }

// Vec
impl&amp;lt;T: ToJson&amp;gt; ToJson for Vec&amp;lt;T&amp;gt; { fn to_json_value(&amp;amp;self) -&amp;gt; Json { Json::Array(self.iter().map(|v| v.to_json_value()).collect()) } }
impl&amp;lt;T: FromJson&amp;gt; FromJson for Vec&amp;lt;T&amp;gt; { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::Array(arr) = v { arr.into_iter().map(|el| FromJson::from_json_value(el)).collect() } else { Err("expected array".into()) } } }

// HashMap&amp;lt;String, T&amp;gt;
impl&amp;lt;T: ToJson&amp;gt; ToJson for HashMap&amp;lt;String, T&amp;gt; { fn to_json_value(&amp;amp;self) -&amp;gt; Json { let mut m = HashMap::new(); for (k, v) in self.iter() { m.insert(k.clone(), v.to_json_value()); } Json::Object(m) } }
impl&amp;lt;T: FromJson&amp;gt; FromJson for HashMap&amp;lt;String, T&amp;gt; { fn from_json_value(v: Json) -&amp;gt; Result&amp;lt;Self, String&amp;gt; { if let Json::Object(map) = v { let mut out = HashMap::new(); for (k, v) in map { out.insert(k, FromJson::from_json_value(v)?); } Ok(out) } else { Err("expected object".into()) } } }

&lt;/code&gt;&lt;/pre&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Thu, 19 Mar 2026 21:08:18 +0800</pubDate>
      <link>https://ruby-china.org/topics/44525</link>
      <guid>https://ruby-china.org/topics/44525</guid>
    </item>
    <item>
      <title>感觉突然冒出一个 linux。do 社区，还特别高冷。不给注册。</title>
      <description>&lt;p&gt;。。。&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Tue, 06 Jan 2026 21:38:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/44439</link>
      <guid>https://ruby-china.org/topics/44439</guid>
    </item>
    <item>
      <title>以前相对容易获得几千或几万 U 的 grant，现在门槛高了很多，审核周期也更长。这对开发者生存是很大的挑战？</title>
      <description>&lt;p&gt;？？？&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Fri, 26 Dec 2025 15:35:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/44428</link>
      <guid>https://ruby-china.org/topics/44428</guid>
    </item>
    <item>
      <title>Ai 时代 结合现实的话诸君选择 ruby 还是 python</title>
      <description>&lt;p&gt;或者说 ai 更擅长哪个 话说编程能力没瓶颈吧？&lt;/p&gt;

&lt;p&gt;Moonbit 据说很有前途&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Mon, 15 Dec 2025 19:22:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/44419</link>
      <guid>https://ruby-china.org/topics/44419</guid>
    </item>
    <item>
      <title>如何在高校内谋一份差事呢？在哪投？</title>
      <description>&lt;p&gt;～～～&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Sat, 29 Nov 2025 19:47:09 +0800</pubDate>
      <link>https://ruby-china.org/topics/44403</link>
      <guid>https://ruby-china.org/topics/44403</guid>
    </item>
    <item>
      <title>各位怎么看待工作流引擎 n8n</title>
      <description>&lt;p&gt;&lt;a href="/jasl" class="user-mention" title="@jasl"&gt;&lt;i&gt;@&lt;/i&gt;jasl&lt;/a&gt; &lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Tue, 28 Oct 2025 17:05:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/44361</link>
      <guid>https://ruby-china.org/topics/44361</guid>
    </item>
    <item>
      <title>用了 dev container，clash x 代理之类的就会失效，有什么方法吗？</title>
      <description>&lt;p&gt;RT          &lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Wed, 24 Sep 2025 11:23:21 +0800</pubDate>
      <link>https://ruby-china.org/topics/44327</link>
      <guid>https://ruby-china.org/topics/44327</guid>
    </item>
    <item>
      <title>我的 cursor 用不了 sonnet 了，理由是地区封杀，有什么解决方案吗？</title>
      <description>&lt;p&gt;RT&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Sun, 14 Sep 2025 10:44:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/44312</link>
      <guid>https://ruby-china.org/topics/44312</guid>
    </item>
    <item>
      <title>RubyMine 现在对非商业用途免费</title>
      <description>&lt;p&gt;各位开发者注意啦！RubyMine 现在对非商业用途免费！无论您是刚开始学习 Ruby 与 Rails、推动开源项目、创作开发内容，还是开发个人兴趣项目，我们都希望为您提供趁手的工具，让您的开发过程更愉悦… 而且全程零费用。&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Thu, 11 Sep 2025 14:29:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/44309</link>
      <guid>https://ruby-china.org/topics/44309</guid>
    </item>
    <item>
      <title>一句 has_many 在背后做了哪些事情？</title>
      <description>&lt;p&gt;RT&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Fri, 05 Sep 2025 12:09:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/44288</link>
      <guid>https://ruby-china.org/topics/44288</guid>
    </item>
    <item>
      <title>LLM 是如何不运行就知道代码运行的结果？</title>
      <description>&lt;p&gt;。。。&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Wed, 05 Mar 2025 11:41:16 +0800</pubDate>
      <link>https://ruby-china.org/topics/44079</link>
      <guid>https://ruby-china.org/topics/44079</guid>
    </item>
    <item>
      <title>现在写代码用哪个大模型聊天当参谋最好？</title>
      <description>&lt;p&gt;。。。&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Mon, 10 Feb 2025 17:07:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/44044</link>
      <guid>https://ruby-china.org/topics/44044</guid>
    </item>
    <item>
      <title>构建 web2 的应用我感觉没太大兴趣了。。。咋办</title>
      <description>&lt;p&gt;。。。&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Mon, 10 Feb 2025 16:47:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/44043</link>
      <guid>https://ruby-china.org/topics/44043</guid>
    </item>
    <item>
      <title>elixir 还算是最像 ruby 的东西吗~是不是不太靠谱</title>
      <description>&lt;p&gt;以前对 phoenix 期望挺大的&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Fri, 22 Nov 2024 11:05:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/43962</link>
      <guid>https://ruby-china.org/topics/43962</guid>
    </item>
    <item>
      <title>12-factors app 的重要性和 rails 信条比起来 孰重？</title>
      <description>&lt;p&gt;。。。&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.12factor.net/" rel="nofollow" target="_blank"&gt;https://www.12factor.net/&lt;/a&gt;&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Thu, 21 Nov 2024 10:08:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/43958</link>
      <guid>https://ruby-china.org/topics/43958</guid>
    </item>
    <item>
      <title>ruby on rails 这个名字意思是铁轨上有红宝石，会不会太危险了？</title>
      <description>&lt;p&gt;。。。&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Thu, 21 Nov 2024 08:01:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/43957</link>
      <guid>https://ruby-china.org/topics/43957</guid>
    </item>
    <item>
      <title>活跃会员的逻辑是咋样的～</title>
      <description>&lt;p&gt;～～～&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Mon, 14 Oct 2024 09:44:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/43908</link>
      <guid>https://ruby-china.org/topics/43908</guid>
    </item>
    <item>
      <title>substrate 像极了的 rails，糙快猛出项目，gavin 也很有个性</title>
      <description>&lt;p&gt;substrate 像极了当年的 rails，糙快猛出项目，gavin 也很有个性&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Sun, 01 Sep 2024 09:09:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/43874</link>
      <guid>https://ruby-china.org/topics/43874</guid>
    </item>
    <item>
      <title>大家对 codespace 的使用有啥心得吗~</title>
      <description>&lt;p&gt;大家对 codespace 的使用有啥心得吗~&lt;/p&gt;</description>
      <author>zzz6519003</author>
      <pubDate>Wed, 28 Aug 2024 15:31:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/43870</link>
      <guid>https://ruby-china.org/topics/43870</guid>
    </item>
  </channel>
</rss>
