TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pragtical: Practical and pragmatic code editor

255 点作者 rd079 个月前

27 条评论

bunderbunder9 个月前
Not criticism, just thinking out loud:<p>This editor claims to be lightweight, citing that it uses 30MB of RAM. But I assume that&#x27;s without any extensions loaded.<p>Back in the day, though, one joke about Emacs was that it&#x27;s an acronym for Eight Megabytes All Continuously Swapping. This was meant to highlight Emacs&#x27;s reputation for bloat. Right now when I run Emacs it&#x27;s using a lot more than 30, let alone eight. I&#x27;m pretty sure most of that is all the modes I have installed for every language I might ever use, regardless of whether I&#x27;m actually using it right now.<p>About 15 years back Visual Studio had a reputation for bloat, but my experience was that it was actually quite lightweight and snappy, especially compared to Eclipse and IntelliJ. <i>Until</i> you install ReSharper, which transformed it into 50 tons of molasses.<p>At work, Visual Studio Code currently consumes about 1GB of RAM and takes 5+ minutes to start up. On my personal computer, a 2013 MacBook, it uses more like 50MB and starts darn near instantaneously. But they&#x27;re very different beasts; on my MacBook I&#x27;ve got it configured to only load the plugins I need for each project. At work we&#x27;ve got a whole dang Devcontainer that includes configuration to load I-don&#x27;t-know-how-many extensions, basically anything anyone on the team has ever wanted. The devcontainer extension makes you put the list of extensions to load into a file that needs to be checked into source control. So the only way for someone to get this tool they want is to make everyone else get it, too. All to sling a relatively modest volume of Python code.<p>And of course if I try to opt out of all of that I make my life even harder. Trying to get by without that pile of crap is just spitting in the wind. Run-time requirements aren&#x27;t documented; they&#x27;re shoved into an undocumented and ever-growing list of Bash commands in the Dockerfile. Coding standards aren&#x27;t documented or managed with something straightforward like Git hooks; they&#x27;re enforced through a plugin and its configuration.<p>I do remember when vscode was lightweight. It happened to be a time when not many plugins were available. That put a hard limit on just how much bloat you could accomplish. But, of course, as soon as it got popular people started creating plugins for darn near everything.<p>Perhaps the problem isn&#x27;t the editors. Perhaps it&#x27;s us.
评论 #41300393 未加载
评论 #41301309 未加载
评论 #41300417 未加载
评论 #41302289 未加载
评论 #41300316 未加载
评论 #41301052 未加载
评论 #41303801 未加载
geenat9 个月前
As an extension writer...<p>Writing extensions in Lua is huge. (Same as OBS) Looks very simple and productive.<p>It&#x27;s one of the main reasons I&#x27;ve stuck to Sublime... extending with Python is very easy and works everywhere.<p>Even if both Zed and VSCode are strong in other areas.. Rust extensions makes me cringe (a build toolchain? ugh..) VSCode&#x27;s inconsistent undocumented Javascript API is a pain in the butt (paste &amp; pray driven development).<p>Will be keeping an eye on this.
评论 #41298131 未加载
评论 #41299676 未加载
评论 #41298090 未加载
评论 #41298175 未加载
评论 #41298234 未加载
评论 #41300681 未加载
评论 #41299527 未加载
_benj9 个月前
Just the fact that they did such an amazing job with their documentation is as huge win for me!<p>I really liked Lite XL but back when I looked at it it was a challenge to understand it’s API and functionality.<p>Looking forward to give this a spin!
fusslo9 个月前
Tangential: is there an IDE out there that supports different color schemes for each window it has open? does Pragtical? I didn&#x27;t see it in the docs<p>I used to like having different projects open in different windows and easily differentiate between them with their color schemes. Kinda like setting a terminal to open with a random color profile<p>It seems like vscode and sublime want to change the scheme across all the windows.
评论 #41300088 未加载
评论 #41300057 未加载
评论 #41300267 未加载
评论 #41301604 未加载
mosburger9 个月前
Is anyone else getting a &quot;“Pragtical.app” is damaged and can’t be opened. You should move it to the Trash&quot; error when attempting to run the arm64 build on macOS? Really wanted to try it out!<p>I suppose it could just be some security crap Corp IT installed on my laptop preventing it from installing.<p>It looks like it&#x27;s only taking up 7.9MB in my Applications folder so it must be corrupt or something.
评论 #41299509 未加载
评论 #41299668 未加载
评论 #41300440 未加载
评论 #41299704 未加载
评论 #41299462 未加载
vouaobrasil9 个月前
Looks a lot like LiteXL. Is it based off it? What makes it different?
评论 #41298071 未加载
评论 #41297705 未加载
atlintots9 个月前
Why fork Lite XL instead of contributing? Just out of curiosity, since I&#x27;m not familiar with either project and don&#x27;t know what their respective philosophies are.
评论 #41298692 未加载
mdaniel9 个月前
<a href="https:&#x2F;&#x2F;github.com&#x2F;pragtical&#x2F;plugins&#x2F;commit&#x2F;54096a6461f5c034cdfcc5b528eb706d4936217f?diff=unified&amp;w=0">https:&#x2F;&#x2F;github.com&#x2F;pragtical&#x2F;plugins&#x2F;commit&#x2F;54096a6461f5c034...</a> makes me long for The One Grammar To Rule Them &amp;trade;<p>I thought for a while that TextMate bundles[1] were that, especially since JetBrains[2], Linguist[3] and VSCode[4] honor them. However, in the spirit of &quot;the good thing about standards ...&quot; highlight.js does[5] almost the same thing that Pragtical does which makes me feel <i>even worse</i><p>I had high hopes for Tree-Sitter since it seems to have really won mindshare, but the idea of having an <i>executable</i> grammar spec[6] is ... well, no wonder it hasn&#x27;t caught on outside of that specific ecosystem<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;rspec&#x2F;rspec.tmbundle&#x2F;blob&#x2F;1.1.12&#x2F;Syntaxes&#x2F;RSpec.tmLanguage">https:&#x2F;&#x2F;github.com&#x2F;rspec&#x2F;rspec.tmbundle&#x2F;blob&#x2F;1.1.12&#x2F;Syntaxes...</a><p>2: <a href="https:&#x2F;&#x2F;github.com&#x2F;JetBrains&#x2F;intellij-community&#x2F;blob&#x2F;idea&#x2F;242.21829.40&#x2F;plugins&#x2F;textmate&#x2F;loadVSCBundles.sh">https:&#x2F;&#x2F;github.com&#x2F;JetBrains&#x2F;intellij-community&#x2F;blob&#x2F;idea&#x2F;24...</a><p>3: <a href="https:&#x2F;&#x2F;github.com&#x2F;github-linguist&#x2F;linguist&#x2F;blob&#x2F;v7.30.0&#x2F;lib&#x2F;linguist&#x2F;languages.yml">https:&#x2F;&#x2F;github.com&#x2F;github-linguist&#x2F;linguist&#x2F;blob&#x2F;v7.30.0&#x2F;lib...</a><p>4: <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;vscode-textmate">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;vscode-textmate</a><p>5: <a href="https:&#x2F;&#x2F;github.com&#x2F;highlightjs&#x2F;highlight.js&#x2F;blob&#x2F;11.10.0&#x2F;src&#x2F;languages&#x2F;asciidoc.js">https:&#x2F;&#x2F;github.com&#x2F;highlightjs&#x2F;highlight.js&#x2F;blob&#x2F;11.10.0&#x2F;src...</a><p>6: <a href="https:&#x2F;&#x2F;github.com&#x2F;tree-sitter&#x2F;tree-sitter&#x2F;blob&#x2F;v0.22.6&#x2F;test&#x2F;fixtures&#x2F;test_grammars&#x2F;readme_grammar&#x2F;grammar.js">https:&#x2F;&#x2F;github.com&#x2F;tree-sitter&#x2F;tree-sitter&#x2F;blob&#x2F;v0.22.6&#x2F;test...</a>
torginus9 个月前
The UI gives me a Godot-y vibe. Is there some relation?
teo_zero9 个月前
Micro-review after having used it for half a day on Windows.<p>It seems really lightweight: the UI is spartan but snappy, loading a file is instantaneous, etc. Downloading and installing a plugin is as easy as dropping a Lua file into a directory. And even after installing several plugins, the speed doesn&#x27;t seem affected.<p>On the other hand, it comes with hardly any feature out of the box, and everything must be covered by plugins. The plugins are really &quot;atomic&quot;. For example, one is to auto-indent, another one to auto-format a block; one is to highlight the matching bracket a second one to jump to the matching bracket, and a third one to automatically insert the closing bracket, while yet another one draws rulers to visualize the block between matching brackets. Do you want to set markers and jump between then? another plugin. Build from within the editor? another plugin. And so on...<p>The plugin &quot;store&quot; looks good, but accessing it from inside the editor is a poor experience: sometimes it just hungs and you have to restart the editor. Additionally the fact that plugins, themes and fonts are all mixed up doesn&#x27;t make it easy to find what you&#x27;re looking for.<p>Final judgement: if I need to select and install 10 to 15 plugins just to make it on par with a stock Vim, I&#x27;ll stay with the latter.
评论 #41306234 未加载
kerkeslager9 个月前
Anyone have any experience building GUIs in SDL?<p>I have been using Flet (basically multilingual binding for Flutter) to build GUIs the last year or so, and in general the experience has been very good.<p>However, I&#x27;ve recently started work on a project that has need for a large number of controls--on the order of 2000 controls visible at one time--and I&#x27;m running into Flet&#x27;s limitations. All the Flet controls have animations, which creates a good default experience when there&#x27;s a few of them, but when you&#x27;re using 2000 of them, simply passing your mouse over an area with a bunch of controls causes a cascade of small animations and the renderer explodes. Impressively, it <i>usually</i> doesn&#x27;t seem to cause any performance lag, but it seems like the way they avoid lag is just by dropping the animations half-rendered which causes the window to flash all sorts of broken half-rendered gobbledygook to the screen. My approach has been to turn off animations as much as possible, but there are enough controls visible at any one time that even just rendering the without animations is running into issues.<p>I&#x27;ll probably just deal with it for my first version--the core functionality is about number crunching and the user base is used to using much worse UIs--but I&#x27;m looking at lower-level tooling that can still remain cross-platform. In this post I&#x27;m seeing that Pragtical is advertising that they&#x27;re written with SDL and I&#x27;m seeing some similarities between a code editor and what I&#x27;m doing, so it seems like that might be the solution to my problem.
truckerbill9 个月前
Is it possible to do custom drawing modes for diagrams and viewers?
swah9 个月前
Downloaded both Lite XL and Pragtical and have to say that Lite XL looked ok on open, while Pragtical looked super tiny and all the UI was out of alignment.
评论 #41298960 未加载
system7rocks9 个月前
Just FYI, the thing crashed on me in inventive ways.<p>First, the ARM version, when I tried to launch it, had MacOS say it was damaged. Only option was to move it to the trash.<p>The Universal option did work, but when I tried to open a standard .c file, it crashes. It is fast though and fairly slick looking. But needs work.
brisket_bronson9 个月前
I just tried it and culdn&#x27;t get past the first screen. The &quot;installation&quot; failed on mac and had to find a workaround just to use the editor. All the fonts look wrong, too small and misconfigured. Maybe the project needs more time to mature, in the meanwhile, I&#x27;ll stick to vim.
mnmalst9 个月前
Doesn&#x27;t pick up my (non ttf) Terminus font and there is no obvious way to set the font manually.
hans_castorp9 个月前
The user interface font is way too small and nearly impossible to read on a 4K monitor (on Windows)
评论 #41297787 未加载
评论 #41298243 未加载
hollerith9 个月前
Like other apps that use SDL, this (Pragtical) is blurry on Gnome with the scale-monitor-framebuffer experimental feature enabled and scaling set to some value other than 1.00.
artemonster9 个月前
Do I understand correctly that its a software renderer? They manually blit a buffer from glyphs and use SDL to show it, akin to immediate mode?
评论 #41299050 未加载
stephc_int139 个月前
Not sure if this is mentioned somewhere, but it looks like a fork of the lite editor, also built on top of SDL and Lua.
评论 #41306280 未加载
prmoustache9 个月前
Does it have a multiple modes support and vim-like keybindings either vanilla or through plugins?
emrah9 个月前
&gt; light weight<p>Honestly that&#x27;s not an issue, I would personally not base my judgment on memory usage, unless it is a memory hog.<p>I know others do but for reasons that go beyond practical. For those that have things to get done, I suspect they think like I do.
评论 #41303537 未加载
swah9 个月前
No LLM plugins yet?
评论 #41298403 未加载
max_9 个月前
3.5 MB is great news, I am happy it&#x27;s not another electron editor.<p>I will be trying this!
BigParm9 个月前
How does it occupy 30MB ram but 5MB disk space does it grow
评论 #41298681 未加载
评论 #41298459 未加载
k__9 个月前
<i>&quot;runs locally on your machine as a CLI application&quot;</i><p>Hrm, I was hoping it would run all in the browser.<p>Cool idea nevertheless!
评论 #41300053 未加载
评论 #41306299 未加载
评论 #41298826 未加载
cynicalpeace9 个月前
Any IDE that isn&#x27;t &quot;AI first&quot; is going to have a hard time from here on out. Cursor is beginning to eat the world much like VSCode did.<p>I&#x27;m sure there are some here on HN that will say &quot;nah, I prefer the old fashioned way&quot; but you will be decidedly in the minority very fast.
评论 #41300490 未加载
评论 #41300332 未加载
评论 #41300297 未加载