News for hackers. Stuff that matters.

jnetterf

Re:Yarn 3.0 on Friday July 30, 2021 @02:48PM (#28010997)
My team upgraded our frontend monorepo from npm+lerna to Yarn 2 with PnP. We saw vastly improved installation time, most importantly on incremental installations. The startup times for jest, webpack, and TypeScript also improved. PnP's dependency strictness eliminated cases where updating a package in one workspace would break a different workspace.

It was a fairly difficult migration, in particular because Yarn 2 PnP does not allow you to import a module that is not specified in package.json. Lots of libraries play fast and loose with dependencies, and so our .yarnrc.yml file which adds those missing dependencies is now 172 lines. PnP requires configuration for vscode and a custom build of TypeScript, which isn't ideal, but those have worked well.

Re:SQLite as a Document Database on Friday November 27, 2020 @02:41PM (#25231937)
Via a loadable extension: https://www.sqlite.org/cksumvfs.html
Re:Biden wins White House, vowing new direction for divided U.S. on Saturday November 07, 2020 @02:35PM (#25018144)
From https://www.wsj.com/articles/the-trump-campaign-is-suing-ove... ...

Barry Richard, an election lawyer who served as a lead attorney for President George W. Bush during the 2000 recount in Florida, criticized the campaign’s efforts. “I wouldn’t call it a strategy,” he said. “There isn’t any legal basis for anything I’ve seen so far.”

Other election law experts have questioned the multipronged attack. Richard Hasen, professor at UC Irvine School of Law and author of “Election Meltdown,” said the lawsuits, even if partially successful, were smaller-scale and didn’t threaten the results. “If they’re not being filed to change the election outcome, what’s the point?” he said.

Is it time for Epic to invest in the PinePhone?
Re:Photo Requests from Solitary on Saturday July 04, 2020 @08:57AM (#23731923)
This is activist art. The intended response is anger, not complacency.

See http://photorequestsfromsolitary.org/information

Cerner just wanted cloud storage. Google gave them a good offer, seemingly to harvest patient data for their own project.

You can use archive.is to read some paywalled content: http://archive.is/RcG5b

Re:Citymapper on Sunday December 22, 2019 @09:37AM (#21857305)
Citymapper is excellent, especially for short trips that can be done in many different ways. Sometimes, for longer trips, Citymapper shows “Uber” or “long walk” as part of a route. In those cases, I would generally prefer to bike, without a bike share. Is there a multimodal transit app that includes transit + cycling?
Re:A final proposal for Rust await syntax on Monday May 06, 2019 @03:53PM (#19843112)
Neat! When working with Options/Results/Iterators, you can use `.map` [1] for exactly this purpose. It would sometimes be convenient to have something like `.map` / `.let` on unwrapped values as well.

[1] https://doc.rust-lang.org/std/option/enum.Option.html#method..., https://doc.rust-lang.org/std/result/enum.Result.html#method..., https://doc.rust-lang.org/std/iter/trait.Iterator.html#metho...

Re:A final proposal for Rust await syntax on Monday May 06, 2019 @11:59AM (#19840603)
While there might be a better syntax if you only care about this one feature, async/await needs to fit into an existing language, and this syntax makes sense with the rest of Rust.

This syntax makes it clear that’s it’s not a function or macro invocation, works the same way as ‘?’, and allows for clear and concise chaining.

Re:Ask HN: How did you get started as a freelancer? on Tuesday September 18, 2018 @05:35PM (#18019355)
I got started by using an organization's API on a platform they didn't support and then offering to be a contractor when they sent me a cease and desist.

I found other odd dev work through family friends and by making a well-performing app for a small platform. This was all a nice supplement during university and internships, but not enough to compete with full-time remote work.

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @07:24PM (#17955983)
To parse LilyPond you would first need to write a Scheme interpreter. Once you finally get a tree for the sheet music, rendering in a way that is correct, beautiful, and easy to read is no small task either. Sheet music rendering is full of so much nuance [1], and it's really hard to get it right. It took brilliant people many years to get LilyPond to the state it's in today. I picked LilyPond because it's powerful and beautiful. Don't get me wrong, VexFlow and abcjs are impressive projects, but LilyPond has a head start.

I think one day, you'll be able to use emscripten or similar to run LilyPond in the browser. We are not there yet.

[1] See, for example, https://www.amazon.com/Behind-Bars-Definitive-Guide-Notation...

Re:A Friend of Beethoven, Now Rediscovered in His Own Right on Monday September 10, 2018 @07:01PM (#17955879)
It's neat that Hacklily is right next to an article about Reicha. Very musical day on HN.

Anyway, here's a piece by Reicha in Hacklily: https://www.hacklily.org/#?edit=jnetterf/sheet-music/Fantais...

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @05:30PM (#17955385)
For Hacklily, it turns out that the audio is rendered clientside via https://github.com/hacklily/hackmidi

Caching sheet music rendering is a hard problem. For example, a note later in the score can affect the spacing of notes before it.

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @05:07PM (#17955217)
As someone who has tried making a sheet music renderer, VexFlow is extremely impressive.
Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @04:08PM (#17954763)
Very cool work -- I'm a fan.

I considered Lambda and similar, but keeping LilyPond running as a server allows for lower latency, which is important given how long it takes for LilyPond to start up.

I don't think I'd be able to have the kind of live reloading I implemented here with Lambda.

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @04:03PM (#17954733)
Here's an arbitrary example from mutopiaproject.org: https://www.hacklily.org/?edit=jnetterf/sheet-music/BWV857BW...
Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @02:12PM (#17953736)
Right now, there are 183 active users, and the CPU is staying around 5% on my Ryzen 7 1700. Keeping LilyPond running as a server helps.

Can you tell me more about your goals? I'm open to collaborating if practical.

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @01:54PM (#17953596)
That's awesome! Do you have any suggestions on how Hacklily could help you typeset & share music?
Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @01:46PM (#17953544)
I think the LilyPond documentation (http://lilypond.org/doc/v2.18/Documentation/learning/index) is a pretty good way of learning LilyPond. It's linked to from "menu > LilyPond manual" within Hacklily. Maybe I should be more aggressive about highlighting that...

Making community features is a natural next step which might help with finding examples.

LilyPond has a bit of a steep learning curve, but you can absolutely use it professionally. http://www.mutopiaproject.org/ shows what LilyPond can do. Personally, I find that I can be more productive with LilyPond than with Finale, and that the results look better.

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @01:39PM (#17953509)
Someone requested MIDI and other exports at https://github.com/hacklily/hacklily/issues/2 and I'll try to tackle soon. Hacklily already makes MIDI available (for playback), so it's a matter of actually exposing that.

There are solutions for converting sheet music images to MusicXML/Finale/etc., but I haven't had good results with any of them.

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @01:23PM (#17953407)
That's super motivating, thanks for taking the time to comment!
Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @12:38PM (#17953012)
Yes! It uses lilypond in docker.

https://github.com/hacklily/hacklily

Re:Show HN: Hacklily – sheet music editor on Monday September 10, 2018 @11:25AM (#17952467)
Thanks! That's useful feedback. Hacklily's audience so far is primarily users who are already Lilypond users, but I'd love to make it more broadly useful.
Re:US Tax Filings are down 5% as of April 15, 2017 on Friday April 21, 2017 @04:19PM (#14169083)
Free Fillable Forms is made by Intuit. If you look at the network tab in your browser's developer tools, you will see that it makes requests to Inuit APIs.

They have an incentive to make the service as terrible as possible while still technically being usable.

I believe we'll be stuck with this mess so long as the IRS partners with the Free File Alliance.

Re:MathJax CDN shutting down on April 30, 2017 on Sunday April 09, 2017 @07:43PM (#14074955)
Depending on your use case, KaTeX [1] may be worth a look. It has a "renderToString" function that returns an HTML string.

[1] https://khan.github.io/KaTeX

It marks whatever precedes it as sarcastic.

Older »