Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
berti
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
berti
8y ago
For anyone confused, currently you have a choice of either "Standard Environment", which is Python 2.7 only, or "Flexible Environment" which allows you to choose Python 2.7, Python 3.6, or your own Python runtime [1][2].
212.
▲
by
berti
8y ago
Unfortunately a large portion of the language spec is optional so it's not portable between PLC manufacturers, and implementation quality varies significantly. Source: it's my dayjob. :(
213.
▲
by
berti
8y ago
> Many developers implement this logic using simple switch statement. However, after about 7 - 10 cases such dispatch mechanism becomes quite inefficient, and its inefficiency grows with number of new messages being introduced. It's
214.
▲
by
berti
8y ago
TL;DR Avoid anything that even sounds like it might involve FTDI unless you can absolutely prove supply chain from one end to the other (near impossible). There are some good alternatives like SiLabs CP2102 around.
215.
▲
by
berti
8y ago
> e.g. embedded developers or kernel/OS developers to use the work. I certainly agree that's one of the strongest reasons to avoid allocating memory etc. It's pretty clear that not many commenters have done any work outsid
216.
▲
by
berti
8y ago
For now, at least [1][2]. See the rest of that thread.. llvm guys really don't want asm goto, and kernel really wants it. [1] https://lkml.org/lkml/2018/2/14/724 [2] https://lkml.org/
217.
▲
by
berti
8y ago
You, but in the case where the shorthand is required, the suffix (W in this case) is also dropped, or at least has been every time I've seen or used it.
218.
▲
by
berti
8y ago
I'm involved in a project using the LMS5xx.. but on a PLC, so I envy your Java microcontroller! Have you seen SICK's new MRS 6000? Range of 200 m, and 15 degrees vertical (15 degrees)! Pricing is similar to LMS5xx.
219.
▲
by
berti
8y ago
Yes, my university switched all 100-level CS papers from Java to Python quite a number of years back (~10). Then came 200-level EE classes, straight into C on bare-metal. :D
220.
▲
by
berti
8y ago
IRC is a good substitute for being in the same room, but you still need more formal discussions recorded in issues and pull requests (the recorded part is quite important if you project is around for more than a few weeks).
221.
▲
by
berti
8y ago
It's more than that too, workflows, CI, release process are all built around GitHub (your release artifacts automatically show up on GitHub when you push a tag right?). GitLab doesn't even have "releases" in the GitHub s
222.
▲
by
berti
8y ago
Plenty of systems still have less RAM than that (hint: microcontroller). Unsurprisingly they're overwhelmingly C.
223.
▲
by
berti
8y ago
AMD is the clear winner on Linux simply because the official drivers are in the mainline kernel. No more dealing with NVIDIA binary blobs, and DKMS + the breakage caused when NVIDIAs shim is out of step with the particular kernel you want t
224.
▲
by
berti
8y ago
Did you actually read what he wrote? He agrees that's what the standard says, thus the standard is not workable in reality, so he goes with GCC's (defined in documentation) implementation. It doesn't "just happen to work
225.
▲
by
berti
8y ago
Or 9.9.9.9 if you're not as comfortable with Google services.
226.
▲
by
berti
8y ago
And that is how we get #if defined(_THIS_THING_SOME_COMPILER_DEFINES) && !defined(__BUT_NOT_THIS_ONE_THAT_COMPILER_X_DEFINES) soup ;)
227.
▲
by
berti
8y ago
Yeah, I can't see many C/C++ types swallowing that. The cost of writing a single function tends to be much lower than the cost of maintaining an external dep, as leftpad proved.
228.
▲
by
berti
8y ago
grep is pretty handy, -C 5 or so will get you a nice amount of context. Maybe GibBreakPls has better tricks.
229.
▲
by
berti
8y ago
You can also pipe tshark capture to the Wireshark GUI on your machine through ssh in realtime, e.g. `ssh host.example.com 'tshark -i eth0 -w - -F pcapng -f "not tcp port 22"' | wireshark -k -i -`
230.
▲
by
berti
8y ago
Sadly I don't think many got the moose reference [1][2]. :( [1] https://www.stuff.co.nz/national/103196185/new-zealands-moos... [2] https://www.stuff.co.nz/national/104071821/there-a
231.
▲
by
berti
8y ago
> it’s only idiotic in the sense of tools not working with them properly. It's idiotic because it's annoying for things like tab completion (technically another tooling issue I suppose... but why bother going against the grain
232.
▲
by
berti
8y ago
The problem is that I can't afford the services of a lawyer, or a data protection officer, for a non-profit project. Especially not to satisfy regulations made in a foreign land far away from my own. So the only option left on the tabl
233.
▲
by
berti
8y ago
Does the GDPR actually draw that line somewhere above the filesystem, but below the database?
234.
▲
by
berti
8y ago
So you then need to make sure that dataset is at least as resilient as your cold backups. That's not exactly a trivial problem in most cases.
235.
▲
by
berti
8y ago
Does this law not apply to organisations that don't make money? I was under the impression it applied to anybody and everybody.
236.
▲
by
berti
8y ago
The new interface is close to plain english in most common cases, so I'd say it's a significant win.
237.
▲
by
berti
8y ago
Thanks! Just aliased that in my .zshrc. The route object doesn't seem to do colouring sadly.
238.
▲
by
berti
8y ago
C++ ABI compatibility across such a wide range of compilers and platforms is the real story of Qt. The excellent API/source compatibility is just the cherry on top (no doubt a very welcome one!).
239.
▲
by
berti
8y ago
June 5 is announce date AFAICT https://www.google.com/search?q="htc+touch+announced"
240.
▲
by
berti
8y ago
Until you look at the home screen.. and the hardware buttons... Samsung's problem is that they cloned the iPhone look and feel (aka design).
More ›