6 ms·
I see 2 targets that Nim could attack well with a bit of focus - Python and Swift. Both have their strengths, but you always pick off people at the edges. Per
by MR4D 5y ago
I see 2 targets that Nim could attack well with a bit of focus - Python and Swift.
Both have their strengths, but you always pick off people at the edges. Performance would do well against Python, and multi-platform against Swift.
This will be an interesting space to watch. If a beautifulsoup equivalent existed, I would put some serious time into it and reduce my Python time (but that’s just my need).
- MR4D 5y agoOne thing I think would be interesting - get listed on Computer Benchmarks Game.
- dom96 5y agoIt would be interesting, yes, but the maintainers of that have explicitly refused to add Nim (and other "new" languages).
- MR4D 5y agoAh - I wasn't aware of that. That sucks.
- igouy 5y agoTry https://programming-language-benchmarks.vercel.app https://programming-language-benchmarks.vercel.app
- igouy 5y agoThink of it as an opportunity for you to publish the measurements you make! https://benchmarksgame-team.pages.debian.net/benchmarksgame/sometimes-people-just-make-up-stuff.html#maintenance-burden https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- dom96 5y agoInstead of beautifulsoup you're honestly better off just running an instance of Firefox/Chrome and scraping data that way. You can do fairly easily these days and I have a library that allows you to do so in Nim: https://github.com/dom96/webdriver https://github.com/dom96/webdriver
- MR4D 5y agoI use it to parse crappy (non-standard) RSS feeds offline for an internal app I use. chrome-scraping would just be more of a pain (although I've done it before).
- elcritch 5y agoHave you tried htmlparser? Its fairly tolerant of "wild" html. It could use some tweaks to match the html5 spec that defines a lot more tags that don't require end tags. Also the library isnt to bad to grok and tweak yourself. There's also Nimquery that looks nice, though I haven't used it yet. Still looks to replace a lot of beautifulsoup.
- MR4D 5y agoNo, but I use feedparser in the same script. Basically I'm scraping SEC data, but the script has been around for awhile untouched, so there are probably better solutions today.