Podcast thumbnail for 独立开发者 • 生存指南

独立开发者 • 生存指南

Claim This Podcast

by 罗哥读书

63 episodes
Updated Daily
Accepts GuestsHas Sponsors

Podcast Overview

独立开发者·生存指南是一个为想成为独立开发者的人提供学习与经验分享的音频播客。主要是把作者在逐步成长为独立开发者的过程中的所见、所闻、所想分享给大家,让大家知道应该怎么做,要做哪些重要的事情,以及要学习哪些知识与技能,以及在成为独立开发者过程中所要面对的一些问题与挑战。

Language

🇨🇳

Publishing Since

11/27/2020

1 verified contact email on file for 独立开发者 • 生存指南

Pitch yourself as a guest, propose sponsorships, or reach out directly to the host.

Recent Episodes

Episode thumbnail for 063.深入macOS之Mac原语

March 11, 2021

063.深入macOS之Mac原语

<p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;">Mach原语</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal"><strong style="color:#FC5832;word-break:break-all;font-family:Helvetica,Arial,sans-serif;font-weight: normal;">原语:</strong>是由若干条机器指令构成的完成某种特定功能的一段程序。具有不可分割性,执行也必须是连续的,且在执行过程中不允许被中断。</p><p style="font-size:17px;line-height:30px;margin:10px 0px;color:#333333;font-weight:900;" data-flag="subtitle">同步原语</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;">Mach IPC架构中的两个重要组件,一个是消息传递机制;另一个是同步机制(synchronization)。而同步机制在根本上是由同步原语来实现的。自旋锁(hw_lock_t)</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">自旋锁是让没有获取到锁的线程一直循环等待判断该资源是否已经释放锁,它不会把线程阻塞起来。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">互斥体与信息量都是阻塞等待的对象。阻塞等待是指如果锁对象被其他线程持有,那么请求访问的线程就被加入到等待队列中,因而被阻塞。阻塞一处线程意味着放弃线程的时间片,把处理器让给调度器认为下一个要执行的线程。当锁可用时,调度器会得到通知,然而根据自己的判断将线程从等待队列中取出并重新调度。然而这种方式可能会严重的影响性能,由于在很多情况下锁对象只需要持有短短几个周期时间,而因此造成的两次或更多次的上下文切换带来的开销则要大好几个数量级。在这种情况下,如果线程不放弃处理器,而是继续 重复地尝试访问锁对象可能是更明智的选择,这种方式就称为忙等(busy-wait)。如果当前锁的持有者确实在几个周期之后就放弃锁了,那么这样就可以节省到少两次上下文切换。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">自旋锁是计算机科学用于多执行者同步的一种锁,执行者反覆检查锁变量是否可用。由于执行者在这一过程中保持执行,因此是一种忙等待。一旦获取了自旋锁,执行者会一直保持该锁,直至显式释放自旋锁。自旋锁避免了进程上下文的调度开销,因此对于执行者只会阻塞很短时间的场合是有效的。互斥体(lck_mtx_t)</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">互斥体可以看成是二值信号量的特殊情况。是最常用的锁对象。它的实现是把没有获取到锁的线程自己阻塞起来,等待重新调度请求。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">互斥体必须属于一个锁组。锁组对象(lck_grp_t)就是一个链表中的一个元素,带有一个给你写的名字,以及最多3种锁的类型:自旋锁、互斥体和读写锁。读写锁(lck_rw_t)</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">读写锁是更”智能”的互斥体,能够区分读访问与写访问。信号量(semaphore)</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">信息量是泛化的互斥体,其取值为某个正数,即允许并发持有信号量的持有者的个数。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">信号量可以在用户态使用,而互斥体只能在内核态使用。锁集(lock_set_t)</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">锁集就是锁(实际上是互斥体)的数组,通过给定的锁ID可以访问锁。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">锁可以传递给其他线程。交出一个锁会阻塞交出锁的线程,并唤醒接受锁的线程。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">Task(任务,Mac上管理进程叫任务)可以在用户态使用锁集。</p><p style="font-size:17px;line-height:30px;margin:10px 0px;color:#333333;font-weight:900;" data-flag="subtitle">机器原语</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;">Mach通过一些所谓的”机器原语”对运行的机器的逻辑抽象,机器原理处理的对象包括主机(物理机器的抽象)、时钟(维护时间)、处理器(CPU)、处理器集(CPU的逻辑分组)。主机</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">提供机器信息</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">提供子系统的访问</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">提供默认的异常处理时钟</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">Mach内核提供的一个简单的”时钟(clock)”对象抽象。这个对象用于计时和闹铃。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">最重要的内部API: clock_deadline_for_periodic_event()处理器</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">基本操作:关闭或启动CPU</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">runq元素是指分发到这个处理器的线程的本地队列处理器集抽象</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">active_queue保存当前正在执行线程的处理器</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">idle_queue用于保存当前空闲的处理器</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">run_queue保存在这个集合中的处理器 执行的线程</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">pset_self 用于对处理器集进行操作</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">pset_name_self 用于获得处理器集的信息</p><span><br /></span><br />

Episode thumbnail for 062.一个程序员对文学与文化的理解

January 1, 2021

062.一个程序员对文学与文化的理解

<p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">现在很多人学习文化,读了几十年的书,对文学与文化这两个概念都没有理解。可能很多人会这样简单的理解,包括我自己以前也这样认为的。以为文学就是文字学,文化就是文字化,以为文学的目的就是学习文字、学会认字读书看报,以为文化的目的就是让大众都能认字读书看报。<br /><br /><br />其实文学与文化远不是如此,文学与文化是承载着人类文明的发展责任的。<br /><br /><br />现在想来过去自己的理解在根本上就是错误的,文学应该是理解成文明学、文化应该理解成文明化。文学的作用是让人知是非善恶美丑、成为有良知的文明人,而文化的作用是让大众脱离野蛮状态变得有文明有礼仪,让整个社会摆脱动物界的丛林法实现和谐文明化。<br /><br /></p>

Episode thumbnail for 061.对上班时间做自己的事的价值判断

December 15, 2020

061.对上班时间做自己的事的价值判断

<p style="font-size:16px;line-height:30px;font-family:Helvetica, Arial, sans-serif;color:#333333;hyphens:auto;text-align:justify;" data-flag="normal"><b>对上班时间做自己的事的价值判断</b><br /></p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica, Arial, sans-serif;hyphens:auto;text-align:justify;" data-flag="normal"><img data-key="0" src="http://imagev2.xmcdn.com/storages/a7e6-audiofreehighqps/46/A7/CMCoOScDrkq-AAGUDABxhjAs.jpg!op_type=4&amp;device_type=ios&amp;upload_type=attachment&amp;name=mobile_large" alt="" data-origin="http://imagev2.xmcdn.com/storages/a7e6-audiofreehighqps/46/A7/CMCoOScDrkq-AAGUDABxhjAs.jpg?op_type=0" data-large="http://imagev2.xmcdn.com/storages/a7e6-audiofreehighqps/46/A7/CMCoOScDrkq-AAGUDABxhjAs.jpg!op_type=4&amp;device_type=ios&amp;upload_type=attachment&amp;name=mobile_large" data-large-width="750" data-large-height="227.34374999999997" data-preview="http://imagev2.xmcdn.com/storages/a7e6-audiofreehighqps/46/A7/CMCoOScDrkq-AAGUDABxhjAs.jpg!op_type=4&amp;device_type=ios&amp;upload_type=attachment&amp;name=mobile_small" data-preview-width="140" data-preview-height="42.4375" /><br /></p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">关于开小灶这事,之前看到在一个评选节目上看到马云质问批责一个候选人,在公司替老板上班的时候自己业余也搞了一个小网站的行为。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">看后时常在思考对这个问题的价值判断,从人性的角度看也总觉得马云这个批评质问总欠缺些什么。现在仔细一想这就是不准人家开小灶,剥夺个人的私有权力。</p><span><br /></span><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">如果说那个候选人是因为工作时间自己开小灶导致没有完成公事,那是这候选人的不对;如果人家很好的完成了公事还禁止人家开小灶,那就是剥夺个人的私人空间了,并且还会打击员工的积极性,让本来很有能力的人会要磨洋工。</p><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal">允许员工在完成公事后,可以自己开小灶,这会极大的激发员工的积极性,因为人都有私心,都想更快更有效率的把公事干完,剩下的时间去干自己的事,实现自己的理想。最终的结果是员工工作效率与产出会成倍上升,员工自己的能力与成就也会快速成长。</p><span><br /></span><p style="color:#333333;font-weight:normal;font-size:16px;line-height:30px;font-family:Helvetica,Arial,sans-serif;hyphens:auto;text-align:justify;" data-flag="normal"><b>允许开小灶本质上是一种保护个人权力的机制,是符合人性的,在完成公事的同时鼓励发展个人私产及私人空间,能极大的激发个人积极性,最终促进个人与整体的成长。</b></p><span><br /></span><br />

63 total episodes available

Deep-dive analytics for 独立开发者 • 生存指南

Frequently asked questions

Have a different question and can't find the answer you're looking for? Reach out to our support team by sending us an email and we'll get back to you as soon as we can.

What is 独立开发者 • 生存指南?

独立开发者·生存指南是一个为想成为独立开发者的人提供学习与经验分享的音频播客。主要是把作者在逐步成长为独立开发者的过程中的所见、所闻、所想分享给大家,让大家知道应该怎么做,要做哪些重要的事情,以及要学习哪些知识与技能,以及在成为独立开发者过程中所要面对的一些问题与挑战。

How often does this podcast release new episodes?

This podcast updates daily.

Where can I listen to this podcast?

This podcast is available on 4 platforms including Apple Podcasts, Spotify, and more. You can also use the RSS feed directly.

Does this podcast accept guests?

Information about guest appearances is not available.

Legal Disclaimer

Pod Engine is not affiliated with, endorsed by, or officially connected with any of the podcasts displayed on this platform. We operate independently as a podcast discovery and analytics service.

All podcast artwork, thumbnails, and content displayed on this page are the property of their respective owners and are protected by applicable copyright laws. This includes, but is not limited to, podcast cover art, episode artwork, show descriptions, episode titles, transcripts, audio snippets, and any other content originating from the podcast creators or their licensors.

We display this content under fair use principles and/or implied license for the purpose of podcast discovery, information, and commentary. We make no claim of ownership over any podcast content, artwork, or related materials shown on this platform. All trademarks, service marks, and trade names are the property of their respective owners.

While we strive to ensure all content usage is properly authorized, if you are a rights holder and believe your content is being used inappropriately or without proper authorization, please contact us immediately at hey@podengine.ai for prompt review and appropriate action, which may include content removal or proper attribution.

By accessing and using this platform, you acknowledge and agree to respect all applicable copyright laws and intellectual property rights of content owners. Any unauthorized reproduction, distribution, or commercial use of the content displayed on this platform is strictly prohibited.