Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 5y ago · link · parent

As I am solidly a millenial, I guess I'll take it that I'm keeping hip to the lingo of kids these days :)

My definition of "Yeet" is to fling/throw/hurl something, typically with great vigor. Urban Dictionary defines it as "To discard an item at a high velocity." Derives from the Latin Iacio, From Proto-Italic jakjō‎, from Proto-Indo-European (H)yeh₁-‎ ("to throw, let go"). JK I just made that up, but it's actually plausible.

Never heard the "exclamation of excitement" definition.

comment 5y ago · link · parent

Yeet them into the sun. I say that as someone whose job benefits greatly from the convenience of easy to pip-install GPU wheels, and has fought many hours compiling GPU libraries from scratch.

I think it's the wrong abstraction. It encourages ridiculous amounts of bloat and duplication, of bandwidth, file systems, virtual environments, and docker images. It's really not actually that portable.

It encourages blindly installing unauditable giant binary blobs which run with all kinds of leaky abstractions. But boy howdy are they convenient.

I think "Allow external hosting" is the best case here. The first point of user expectation on PEP 470 is:

> Easily allow external hosting to "just work" when appropriately configured at the system, user or virtual environment level.

That's already out of the window once GPGPU is involved. The ecosystem is much better than it used to be, but there is still no plug-and-play GPGPU on linux without hiccups.

Let PyPI be the namespace, registry and lookup, and let users pass an --allow-external again, or (less optimal imho) do something like Conda channels. Improve the user experience for integrating with external hosts.

Pip is unlike NPM, Cargo, go get, etc because Python is much more intimate with linked libraries. It's unlike Brew because it's way more cross-platform. It's much closer to apt-get in this regard, and its challenges are different. Apt-get has sources lists, and I think that makes some sense for Python as well.

comment 5y ago · link · parent

Disclosure: I work in the field of facial/emotional recognition.

This bill [0] seems pretty decent. There could be improvements; as per usual, the definition of FR isn't great, but it's one of the better ones I've seen.

> "facial recognition technology" means an electronic system for enrolling, capturing, extracting, comparing, and matching an individual's geometric facial data to identify individuals in photos, videos, or real time...

This ought to exclude things like face detection, alignment, and landmark annotation. Unclear if it would affect things like sentiment analysis, gait analysis, etc. Unclear if it's allowed to generate feature vectors (and operate on those) so long as it isn't used "to identify individuals." But it's scoped to LEOs, which is nice, as it won't affect academic research.

I'm generally in favor of more aggressive / overreaching regulations on ML/AI now, while the world is moving so fast and there is so much potential for abuse. They can always be repealed later, and there's always going to be entities which will push the envelope, regardless.

[0] https://lis.virginia.gov/cgi-bin/legp604.exe?212+ful+HB2031E...

1744.

Virginia Law Bans Local Police Use of Facial Recognition Technology(natlawreview.com ↗)

1 points · by kortex · 5y ago · 1 comment

comment 5y ago · link · parent

Ergodox (zsa) actually just came out with a new model which revamps the thumb cluster. Looks much better for chording.

https://www.zsa.io/moonlander

comment 5y ago · link · parent

I read it to mean "probe that is moving hella fast and also radiating in every direction." So there is a "contact cone" rather than a "contact sphere," increasing the amount of space interacted with (even if only briefly)

comment 5y ago · link · parent

I dewelop machine learning data pipelines. My dev environment of choice is a Macbook running JetBrains suite, Alfred, BetterTouchTool, and an iTerm pane or 3 with Mosh and Tmux running on an Ubuntu Server. HID is a tricked out Ergodox EZ, right hand mouse, left hand Magic Trackpad. Prior to that I developed directly on Ubuntu 18/20, and windows well before that. The experience unparalleled. The OS/windowed desktop is smoother and less buggy than Gnome 3, more responsive than Win 7 or 10.

I'm talking a 16GB Intel i7 8-thread Macbook vs a 32 thread twin-socket 72GB RTX2080 beast running Ubuntu 20. The Mac crushes it in terms of feel, fit and finish. I haven't tried M1 yet but I bet it'll one-up my current Intel macbook. I'm quite eager to get one.

> Besides that, the M1 doesn't support most of the software that most engineers are using...

??? Other than CUDA, the macbook meets my needs 95% of the time. I'm mostly want for a native Docker networking experience a small minority of the time. I need a responsive GUI head to act as my development environment. All the heavy lift compute is done on servers/on-prem/in-cloud.

> - BSD-styled memory management causes frequent page faults and thrashes memory/swap

Only under super heavy memory demand. I close some browser tabs or IDE panes (I normally have dozens of both).

> - Abstracting execution makes it harder to package software, harder to run it, and harder to debug it when something goes wrong

Almost everything I do is containerized anyways, so this is moot.

I was squarely one of those "why would anyone use mac? It's overpriced, lock in, $typical_nerd_complaints_about_mac" until COVID happened and it became my daily driver. Now I can't go back.

> - MacPorts and Brew are both pretty miserable package managers compared to the industry standard options.

No snark intended - Like what? I'm not exactly blown away by Brew, but it's been generally on par with Apt(get). Aptitude is marginally better. There's not a single package manager that doesn't aggravate me in some way.

comment 5y ago · link · parent

Question for the peanut gallery: In a -nix OS system, let's say single-threaded process is running on core 0. It makes a syscall. Does core 0 have to context-switch in order to handle the syscall, or could the kernel code run on core 1? This would allow a process to run longer without context switching and cache dumping, which would improve performance (as well as potentially security).

Corollary question: could one make a kernel-specific core and would there be benefit to it? Handle all the I/O, interrupts and such, all with a dedicated, cloistered root-level cache.

comment 5y ago · link · parent

It feels like Option types could be done quite easily - basically slices with a hardcoded capacity of 1. Could compile down to a pointer type. But it would make linting way easier. Of course, the real power of Option comes from Map.

Give Go a map and option and I'll be a happy gopher.

comment 5y ago · link · parent

Strong and unevenly distributed. The more rural the area, the less vaccinations are occurring, and also less mask compliance. So the ~33% anti-vaxxers aren't evenly distributed, they are probably <10% in some and >50% in others. As of May 16, there is about 45% vaccinated in New England but <30% in the deep south.

This means there will likely be covid hotspots and reservoirs for a long time.

https://www.beckershospitalreview.com/public-health/states-r...

comment 5y ago · link · parent

You would likely need to look at county by county data. Austin TX is probably closer to Albany NY behaviorally, than it is to Kent County TX. Schoharie County NY is probably closer to your average TX county. America isn't red state vs blue state, it's rural vs urban.

comment 5y ago · link · parent

"Proper" astrology is way more precise than season you were born in. The 12-sun-sign newspaper astrology isn't "proper astrology," which is far more granular. E.g. my sun, moon, and mercury sign are all in Cancer, which predicts that I'm a moody ball of fluctuating emotions that turn on a whim (which is 100% accurate), and a bunch of other minutiae I forget now.

That's the weird thing: astrology done right isn't vague, broadly applicable cold-reading. The confirmation bias helps, but it's super faceted, and still manages to be right more than wrong.

Nowadays I chalk that up to something akin to the birthday paradox, plus maybe some memory construction as TFA mentions, but I've done some insanely detailed readings that were kinda spooky.

Source: was super into astrology as a teen. I had/have huge thick tomes of charts.

comment 5y ago · link · parent

That's kind of the bent of many of the modern practitioners of chaos magick. Whether "magick" is "real" is irrelevant. If you can convince yourself strongly enough that things will go well for you, it often does.

comment 5y ago · link · parent

> Coding modern C++ right is the same, that way, as coding Rust: when it compiles, it works.

Works in what way? Serious question. Do you mean "works" as in 1) "doesn't crash/seg/overflow" or 2) "doesn't UB" or 3) "doesn't have race bugs" or 4) "does what the programmer intended"?

I would say from my experience, none are strictly true. I'll hazard you mean to imply the dev knows the language pretty well in order to satisfy "works lvl 1" but you still have veterans running into bugs of the 2-4 variety.

But even to get to (1), C++ requires a ton of domain knowledge. I've been working with C++ intensively for several months and incidentally for years, and I still seg every now and then. Even after using Valgrind, it feels rickety. Meanwhile, I've spent a few dozen weekends on Rust and I just feel way more confidence that my program will "just work" without crashing.

That's all still "level 1 works". When it comes to race conditions and programmer intent making its way into correct code, it's no comparison. Rust is way easier to get my intent into a running program. C++, I still have to lean into logs and debugging, because it just doesn't quite do what I want a non-trivial amount of the time.

It's not a religion. Rust simply is a better experience. I can say that having learned both basically side-by-side.

comment 5y ago · link · parent

I learned in this order: C, "C++" (very C-like, just enough to write arduino stuff), rust, and the "real" C++14.

Unless you write C++ like C with classes, which is not really writing C++ at all, Rust is actually simpler, easier to learn on your own, more consistent, with better compiler error messages, tooling, documentation, etc.

Your situation - boiling frog analogy - is a very common case but also the only one in which case C++ feels less complicated, simply because it's familiar.

Everything about C++ feels overwhelming, with so many decisions and degrees of freedom at every step, from build system, to lifetime management, mutable state, concurrency, and threading, to libraries, to dependencies, to deployment. It often feels easier, especially for beginners, because there are so many ways to silently do the wrong or suboptimal thing.

comment 5y ago · link · parent

That's still not what "digital natives" means. Yes, sure, there's millenial nerds like myself that had to actually know a bit about computers to use them. That's not the point.

Digital natives were born after the inception of the internet. If they don't want to use it to learn about computers, or hobbies, or ancient history, that's their prerogative. But I bet the percent of young folks enriching their minds is about the same nowadays as back then. But now, they are outnumbered by general users. No, you don't get 1337 skillzors by osmosis, that's not the point of Digital Natives. The point is they were born with greater intellectual opportunities than any prior generation.

comment 5y ago · link · parent

Personally, I'd use Arq instead of Celery.

https://github.com/samuelcolvin/arq

I find celery's api kinda painful.

comment 5y ago · link · parent

> How do we come to know things we didn't know before? And how can we trust those conclusions?

IMHO, this is the heart of what discerns scientists from engineers. Yes there is plenty of overlap, but to me this is the principle component. In engineering, the correct answer almost always exists. Enough eyeballs on the problem, sufficient double- and triple-checking converges on high confidence.

Scientific problems may not have a right answer, or gaining confidence has diminishing returns, and at some point you decide that's enough sigmas. You can scrutinize in so many ways but there's always blind spots.

(Data) scientists generally have to be way more comfortable with uncertainty. And as you mention, the easiest person to fool is yourself.

comment 5y ago · link · parent

Hot fire, stoked with forced air. HDDs rely on magnetism, bringing the platters above the Curie temperature destroys all information - 570 °C (1,060 °F) . SSDs, I'm actually not sure, but I imagine a bed of white-hot coals will render any electrical charge in those tiny cells undecipherable. Heat increases the ability of electrons to tunnel (jump out of potential wells) so at some temp, the traps will leak all their charge.

I'm not a semiconductor guy so I'm not making any claims.

comment 5y ago · link · parent

Yes. Night and day. I haven't got too deep into it, but FastApi allows writing async def right out of the box, super easy to set up. Uvicorn is stupid fast and easily configurable. There is also fledgeling asgi (async wsgi) support iirc.

comment 5y ago · link · parent

IMHO, FastAPI is more obvious and less magical than Flask. Give it a shot, its super easy to write endpoints.

comment 5y ago · link · parent

Indeed. SAT is basically "how good are you at cramming a bunch of relatively arbitrary information into your brain and regurgitating it in a high pressure, timed scenario". That is a kind of intelligence, but there are very few occupations where that kind of intelligence is useful. Lawyers and doctors.

Both the "intensely study something rather uninteresting" and "perform under high stress and time demand" are specific kinds of intelligence, and I happen to know many intelligent folks who are expressly bad at it. They don't "test well". Anecdotally, diligent study and fast-testing are anti-correlated in many of these smart folks.

comment 5y ago · link · parent

> One byte = one "character" makes for much easier programming.

Only if you are naively operating in the Anglosphere / world where the most complex thing you have to handle is larger character sets. In reality, there's ligatures, diacritics, combining characters, RTL, nbsp, locales, and emoji (with skin tones!). Not to mention legacy encoding.

And no, it does not use a "small fraction of memory and storage" in a huge range of applications, to the point where some regions have transcoding proxies still.

comment 5y ago · link · parent

Hi, I'm Mike! I'm an engineer and scientist with tons of breadth as well as depth, with a background in the hard sciences and a penchant for reproducible machine learning systems. I love to build stuff and have a fierce tenacity when it comes to difficult problems. I'm particularly experienced at taking off-the-shelf academic machine learning codebases, hooking them into APIs, and making them maintainable.

Location: Upstate NY

Remote: Yes

Willing to relocate: No

Technologies: Core skills: Python (10 years), C++, C, docker, computer vision, signal processing, NLP, tensorflow, pytorch, flask, DVC, git, data vis, devops, ROS, distributed computing, networking, linux system management, firmware, hardware hacking, electronics.

Actively improving: kubernetes, Rust, Go, functional Python (mypy, pydantic, returns), JS, React, SQL. I want to get into more strongly functional languages, like Rust, Scala, Haskell.

Linkedin: https://www.linkedin.com/in/mikemcdermott23/

Github: https://github.com/xkortex/

Email: mikemcdermott23 AT gmail DOT com

Why to hire Mike:

  - I'm good at recognizing useful patterns when I see them (thanks, Dan :) )
  - You want an outgoing, fast-learning, jack-of-all-trades with depth in python data processing
  - I'm a great ROI - I can fit a huge variety of roles: 
 engineering, data science, AI/ML R&D
  - You need someone with a background in software, hardware, *and* chemistry/bio/neuroscience
  - You are willing to train on the job a functional-heavy language 
  - You work with robots. Robots are awesome. I can help you make awesome robots

Why not to hire Mike:

  - You expect workers to burn the candle at both ends
  - Your system is mostly CRUD applications/enterprise/ads
  - You are looking for management experience
  - Your stack is mainly Windows/NT based
Thanks for reading!

comment 5y ago · link · parent

This is fantastic! About 5 years ago (just before this repo was made it seems) I was doing a ton of stuff with EEG analysis with python. Used CWTs a ton but it was slooow, even with lots of numpy tricks. This would have been super handy.

I also learned in that time that while you can extract a complex signal from a real one using the Hilbert transform, it's not quite the same, and I've always wondered if we could achieve better fidelity/encoding/compression by starting with quadrature signals. Never figured out quite why, since Shannon-Nyquist says you should be able to encode all information of a bandwidth f signal with 2f sample rate, but I suspect it has to do with the difference between ideal real number math and nonlinear, quantizing, imperfect ADCs.

Not sure how you'd actually get quadrature signals from sound waves or any wideband scalar signal (maybe record at far higher sampling rate to get more phase information, then downsample), but it's a fun thought experiment.

comment 5y ago · link · parent

That was interesting but

> These thickeners can range from particulate silica, alumina, titanium dioxide, or even powdered clay.

If it were any of those, I imagine the stopper would be hazy, unless the refractive index of the matrix were very close to the aggregate. Curiosity abounds, the mind boggles.

Might be a silicone (polydimethylsiloxane) based grease, with various silicone oxides and/or polymers as thickeners. Now I wanna take one apart.

comment 5y ago · link · parent

Nope, pretzels are made with lye (NaOH). That's how you get the tasty brown Maillard reaction coating - boil the dough in lye water, then bake, then salt it.

comment 5y ago · link · parent

Since we are talking dishwasher life hacks: I always add washing soda (sodium carbonate) along with the detergent, for hard water. It's one of the main ingredients in dry detergent, but it's super cheap. It boosts pH and increases the ratio of sodium to detergent, reducing soap scum.

comment 5y ago · link · parent

You're not wrong. Aren't we all just manifestations of the Principle of Least Action?

comment 5y ago · link · parent

Yup. My main gripe with Ansible is exactly this. Too much mutable state, too imperative, too much reliance on "gathering facts". There's no singular source of truth. It tries to be declarative, but every Ansible deployment I've maintained (granted, not many) always accretes corner cases and config drift. Maybe that's just the nature of the domain - mutating live systems will always be more imperative than (re)deploying the whole thing from scratch.

I'd much rather use python/jinja/gomplate/what-have-you, do all my fancy expressive stuff with code I can check in, and get a single snapshot of plain, structured text (which I can also check in). Not to mention locking down your invariants (I can't recall how many times I've gotten bit by interpolating docker image uris with the wrong TAG). It's actually pushed me towards first Make and then later python cli tools (cause Makefile syntax is...ugh) to generate configs, rather than relying on any runtime business logic, cause it's just so much saner, traceable, auditable, etc.

1
585960
85