Better HN
topnewbestaskshowjobs
Log inSign up

desmap

143 karma · joined Feb 10, 2019 (7y ago) · 135 submissions

Submissions

comment 6y ago · link · parent

Tailwind's paradigm ("atomic css") is great and the future, but there is a much better implementation, the barely maintained Tachyons is way superior and was also the first that made atomic css popular. I wrote following on Reddit which still holds true:

After 2 days of testing, I chose this stack:

Tachyons as primary CSS-in-JS and media-queries method in my React components; why: it's slick, easy and complete and brings you quite far

configuration is super; eg, creating your own color or default font is just putting them in your App.css and they override Tachyons; creating other breakpoints is possible (just change and recompile, this takes 1sec and a tachyons-cli is there, no need to touch webpack or eject CRA)

however, configuring Tachyons is not required at all, I tested it in and out and it's all perfect at the moment, it's really turn-key and absolutely the right approach to our problem; Tachyons does just one thing and it does is right

I preferred it very much over others like Tailwind because Tailwind has cumbersome and long CSS naming; Tailwind's philosophy and strategy is inconsistent; on the one hand, it wants to be atomic CSS, on the other hand, it bloats and pollutes your components almost like real CSS, wth? either I do minimal atomic CSS (it's called 'atomic'!) like Tachyons or I put real CSS in my component; Tailwind doesn't know what it wants to be while Tachyons has a clear strategy which is perfectly executed => an ultra atomic mapping to CSS, Tailwinds bobs up and down with some short names and then some long ones...; also setting Tailwind up or configuring is unnecessary complex and bloated; doc is comprehensive and complete but also because of its own complications and disunity; atomic css doesn't need to be science; compared to Tailwind, Tachyons is a dream

I also checked styled-system but found the DX not close to Tachyons and couldn't see any benefit over Tachyons; it's too cumbersome but in a different way than Tailwind

Tachyons is just 13kb gzipped while fully featured (Tailwind is 36kb)

while small Tachyons has the biggest ecosystem (related libs, cheatsheets, blog posts), at the end of the day, you don't need more, again it's just a mapper and more advanced stuff should be done with eg Emotion anyway[1]

[1] https://www.reddit.com/r/reactjs/comments/a6qhbr/checked_21_...

comment 6y ago · link · parent

Weeks later and we still don't know nothing. How do M1's TPU cores (the dedicated, so called "AI engine", not M1' GPU!) compare to current, consumer Nvidia TPU cores, eg those from the 3080 or 3090 (not Nvidia's GPU cores and please, no CPU and not some random Intel GPU!) re model training (not execution!)?

If there's someone who has an educated guess of the performance difference between...

M1's TPU vs 3090's TPU re training

...please let us know.

comment 6y ago · link · parent

> It's much easier to test out a small snippet of something in-buffer which might grow into something else.

Ok, here you got me and I'm about to try it another time. But then again I remember the slow loading times, the weaker ecosystem (is the lsp implementation as good and fast as coc-vim?) but whatever, maybe I should give it a try with evil mode. But there are so many other cool things waiting to be learned...

comment 6y ago · link · parent

Thanks for doing the math.

comment 6y ago · link · parent

No stuttering, no input lag, we must have had different machines. Native apps were super responsive.

comment 6y ago · link · parent

I know this very well, still both have similarities to JS and eventually, C++ evolved from C. No need to be snarky.

comment 6y ago · link · parent

> it is within ~10%

This is just so off. Look at Geekbench's figures for a 865 Plus, add 35% on top and you are still not close to an A14 and miles away from the M1.

comment 6y ago · link · parent

Windows RT isn't too bad. You wouldn't actually notice a difference. A decade ago (or less), I had the first RT-based Surface running native Word processing a 300-pages PhD paper, it was running buttersmooth and cool, all the time.

I think this is more about MS' commitment to ARM than a software problem.

comment 6y ago · link · parent

OT: I recently learned C++ after doing JS/TS for years. This was an eye-opener because there were so many similarities which JS inherited from C/C++. Plus stuff I've seen in other languages and environments.

After this, I thought that everybody should learn C/C++ at school, it's like Latin to other languages (I learned Turbo Pascal at school and didn't like how it handled pointers and its overall elaborative style).

comment 6y ago · link · parent

Since the 855 or even earlier, Qualcomm had always a notebook derivate SoC (which were not much faster than the mobile phone version). However, the M1 is now the reference for any ARM licensee and anyone at Qualcomm's scale should have some answer to Apple's SoC, especially then when the create some press buzz around a new SoC with a fancy name.

comment 6y ago · link · parent

This.

Exactly my gut feeling and the press is not questioning anything just rephrasing press releases from Qualcomm, writing about so important details like why the name 888 and so on.

Qualcomm and Intel should come out asap and tell what they plan to do in the next 12-18 months, e.g. embedding RAM or whatever, to match M1' performance. But they rather work on original naming schemes. Good that I sold my Qualcomm stocks years ago.

comment 6y ago · link · parent

For days, I'm reading about the 888, its Cortex X1 and a 35% uplift and that it's coming (some day) but I couldn't find a single word about how it will perform against the M1. Even Anandtech dares to bring four, full pages of fluff.

This is what most are interested in and Qualcomm should asap disclose the performance and/or give an outlook on what is coming, always referencing M1's performance as the current benchmark.

comment 6y ago · link · parent

> It just takes time but it's worth it in my humble opinion.

But why? Because I have a better scripting language? Are there more benefits beyond having lisp?

comment 6y ago · link · parent

Caching was nice but nicer is not to have to download the fonts, not to mkdir public/fonts, not to copy the files to that dir, not to match the file location in the css file and to have a CDN included for sites which I didn't employ with a CDN.

Besides, one should load one or max two fonts, not more and I couldn't care less if that 150kb is cached or not.

comment 6y ago · link · parent

VS Code is very good at connecting to remote servers/wsls/etc being just a dumb client. I still use VS Code next to all my terminal apps because some stuff is unmatched in VS Code, eg Pythons Interactive Console paired with a Jupyter server (1000x better than any notebook).

comment 6y ago · link · parent

Just checked out Sway's intro video, this looks promising! Would you mind to elaborate if Sway is ready for being a daily driver + how is multi-monitor support (all monitors same dpi and also with different dpi levels).

comment 6y ago · link · parent

> You don't have to spend hours learning and configuring things

I got 70% of my sysadmin skills because of hanging out 24/7 in the shell and configuring things.

comment 6y ago · link · parent

Yes, I also found "kludge together a bunch of..." a bit misleading since this atomic nature of *nix is why we use it.

comment 6y ago · link · parent

Yeah hidpi on Linux is pretty underwhelming and it seems that nobody really cares. I think Windows needed years to match macOS and is now on the same level. Still Windows notebooks barely have more then 200dpi unless there are from the premium segment. Whatever, at least the software side is great now. But on Linux, Ubuntu just had until last year hidpi only in 100% steps paired with dozens of glitches here and there. Sad since especially a terminal looks just terrific in 300dpi (UHD on 13" or 8k on 32").

comment 6y ago · link · parent

Tried so many times to get into emacs (3 or 4 times) and once into org mode. It unfortunately never made click despite my love for any kind of terminal app and also competition in this space. Just emacs lisp would be the reason to switch from vimscript but again I just couldn't get warm with emacs.

Also I think that the paradigm of modal editing is key to editing, not because I am used it, it just makes sense to have the myriad of functions of an editor easily reachable without too many modifiers. Coding isn't about just writing code but a lot about thinking, editing, staring at code, thinking, editing, jumping, f, /, yy's, dd's, ct, etc. I use modifiers heavily, way more than the typical ctrl/alt, but again to have an extra dedicated mode is crucial, so I can't imagine how any non-modal editor, eg emacs, can excel re UX like vim or nvim do. There must be reason that even the emacs community itself promotes spacemacs, which follows that paradigm, so much. But for some spacemacs is a layer too much adding unnecessary complexity. Besides, vim is also so popular because it's fast, load time, editing, anything.

Whatever, put me into any text field without modal binds and I am pretty much handicapped but maybe I might just missed emacs' hidden qualities. Trying emacs feels going one step back (when coming from modal editing).

Edit: Don't get me wrong, this shouldn't qualify as offense but every time I read some random emacs praise on the net, I never know if I should give emacs another try or if it's just a vocal minority who never experienced proper modal editing and I just should move on.

comment 6y ago · link · parent

Nice to hear and need to try it again. I stopped using it 2017. Another gripe I had with i3 was that setting up proper hidpi support was a mess, maybe this improved as well. I know that the latest Ubuntu got here quite well, allowing also 25% steps etc.

comment 6y ago · link · parent

I posted in another comment more about my view on i3. However, compared to tmux it also lacks the capability to be used via ssh. At the end of the day there are not really comparable but yeah, I prefer to work with tmux+nvim on a *nix environment through ssh, all wrapped in a typical window manager such as Windows which handles stuff like hidpi, meta window management, device management etc. The good thing is that I am not stuck with Windows. You can give me any meta/desktop OS/window management such as any Linux wm or macos as long as I have tmux and nvim, my productivity will stay the same.

FWIW, while automatic tiling with i3 is super impressive, it's overrated. In the beginning you believe that this really boosts your productivity but you get quickly annoyed. If tmux is set-up right, so not just this seamless navigation but also creating and resizing of panes in a similar fashion with intuitive binds you wouldn't want any automatic tiling anymore. With my binds I am able to open and resize dozen of panes faster than I ever could with i3. And as a bonus tmux' config is just simple some remapping but never a rabbit hole to get basic things working.

comment 6y ago · link · parent

No, you need that plugin/script but installation and usage is rock-solid, I am using this now for years. FWIW, I also never use nvim's built-in terminal because this setup with tmux is so fast and feels super natural.

Hint: you have to redefine more of tmux' binds, the defaults are just not usable.

Hint2: most creation and resizing of panes and windows binds should be mapped without the tmux prefix, you can do this with "bind -n" in the .tmux.conf.

Hint3: read the tmux manual, it's really good and on one (long) page.

comment 6y ago · link · parent

Does this run on GPUs and/or TPUs?

comment 6y ago · link · parent

FWIW, why the Windows Terminal is so responsive from its collaborator: https://github.com/microsoft/terminal/issues/327#issuecommen...

This was posted here few times but it's still an interesting read in this context.

comment 6y ago · link · parent

A naïve question: Couldn't other ARM licensees just integrate RAM into the SoC like Apple did and come easily close to M1' performance? With easily I mean in a doable manner within 1-2 years. I know there are more tricks/magic involved but just to start somewhere.

comment 6y ago · link · parent

Just the combination of tmux and nvim with shared ctrl-hjkl between both nvim and tmux panes is so buttersmooth and no other setup has given me such an seamless interoperability between an editor and an OS. What this means: you can switch between tmux panes or nvim panes or from tmux to nvim and back always with the same shortcut. This is the most underrated killer feature.
12345