HNHacker News
TopNewBestAskShowJobs

Cieplak

6,168 karma · joined September 30, 2011

λ𝑓.(λ𝑥.𝑓(𝑥 𝑥))(λ𝑥.𝑓(𝑥 𝑥))
submissionscomments
Cieplak··on How Does Java Both Optimize Hot Loops and Allow Debugging
Maybe this is just openjdk8 but my API is ~5 times slower when run with `-Xdebug -agentlib:jdwp=transport=dt_socket,address=9999,server=y,suspend=y`
Cieplak··on Battle of the Clipper Chip (1994)
Thought it was interesting that plans for the Clipper Chip were canceled around the time the recently discovered CPU vulnerabilities were introduced. Extremely unlikely that there was some conspiracy given the number of vendors affected, but a possibility given the magnitude of the military budget and the value of being able to decrypt enemy communications via side-channel attacks.
Cieplak··on Open-sourcing MonkeyType – Let your Python code type-hint itself
Easy:

    std::vector<P> people = { P{"jane", 47}, P{"mary", 71}, P{"john", 65} };

    ranges::sort(people, [](auto& x, auto& y){ return x.weight > y.weight; });
Compile this gist with `c++ -std=c++1z -I range-v3/include`:

https://gist.github.com/cieplak/dcd587c67d989768900e4110e776...

Cieplak··on Open-sourcing MonkeyType – Let your Python code type-hint itself
Given that people have asked why not use a statically typed language, seems appropriate to mention that it's possible to write pythonic-looking C++:

http://preshing.com/20141202/cpp-has-become-more-pythonic/

I have been using C++ a lot lately but really wish there were more tools for reflection at compile time, e.g., ability to iterate over all the members of a class. Other than that, I'm really loving C++17's auto template parameters and type deduction capabilities, plus code that's 200x faster at runtime than most interpreted languages. I've found autocompletion in CLion to be slightly better than autocompletion PyCharm, but not quite as good as IPython or IntelliJ with Java.

Cieplak··on Antidote: CRDT-based distributed database
Looking forward to Kyle Kingsbury’s Jepsen review.
Cieplak··on Friden EC-132 Calculator [video]
Personal favorite calculator:

https://en.wikipedia.org/wiki/Curta

Cieplak··on Auto increment is a terrible idea
Article doesn't mention this but if you're exposing UUIDs to users, it's nice to base62 or base58 encode them.

E.g.

    uuid v4: de7013fb-658e-40a0-9c02-d23080b57fdb
    base58 : tt7Udwi9Tx9VE1ze7HDBxi
Here's a lib I wrote in c++ for doing this, with python and erlang bindings, https://github.com/cieplak/uuid
Cieplak··on Auto increment is a terrible idea
Would it be useful to compress 128-bit UUIDs to fit them into narrower columns and reduce IO? I don't fully grasp the issues this would entail.

Looks like there's an old patent related to this:

https://www.google.com/patents/US5913217

Cieplak··on Scaling Postgres with Read Replicas and Using WAL to Counter Stale Reads
How do you generate your diagrams? They're really beautiful. Zooming in on the svg I see that it's all just unicode, but was wondering if you're manually typesetting it.
Cieplak··on Interfacing Python and C: Advanced “ctypes” Features
pybind11 is the nicest foreign function interface I've encountered:

https://github.com/pybind/pybind11

Cieplak··on What are some innovative encryption methods?
Cryptography with Cellular Automata:

http://www.stephenwolfram.com/publications/academic/cryptogr...

Cieplak··on Building a Home Lab for Offensive Security and Security Research
Depending on the threat model, might also want to install RF insulation to mitigate Van Eck phreaking [1].

[1] https://en.wikipedia.org/wiki/Van_Eck_phreaking

Cieplak··on Crypto Anchors: Exfiltration Resistant Infrastructure
If you're serious about preventing exfiltration, you'll do what the military does and use data diodes

https://en.wikipedia.org/wiki/Unidirectional_network

On a slightly tangent, people with physical access to a server can extract encryption keys from RAM by plugging into a PCI slot:

https://github.com/ufrisk/pcileech

Cieplak··on Cowboy 2.0 released
Thanks Ali! Miss working with you dude
Cieplak··on Cowboy 2.0 released
Sorry. Not trying to impress anyone. Just a simple filter. I love working with Erlang and want to meet other people who do too. Recruiters usually don't immediately recognize which base it is :)
Cieplak··on Cowboy 2.0 released
If you're interested in working with cowboy, we use it extensively at Finix, directly from Erlang as well as through Phoenix from Elixir. My email is cGF0cmljaytobkBmaW5peHBheW1lbnRzLmNvbQ==
Cieplak··on Ask HN: Who is hiring? (October 2017)
Finix | Software Engineer | San Francisco, CA

Looking for exceptional people to join our team building payment systems and financial infrastructure.

Example product docs: http://developers.finixpayments.com

Current stack is a mix of

  - java
  - erlang/elixir
  - c++1z
  - postgres
  - linux
  - freebsd
  - aws
We're backed by Homebrew and are Visa's first ever seed-stage investment.

email: cGF0cmljaytobkBmaW5peHBheW1lbnRzLmNvbQ==

Cieplak··on DNS for Service Discovery in HAProxy
Yes. Current setup runs a local DNS server which serves SRV records containing the local IP addresses and ports of services running inside FreeBSD jails. For instance, the payments service in one jail can communicate with the risk service running in another jail on the same host by sending an HTTP message to http://risk.local

Currently using dnsmasq but would like to use erl-dns once I finish wrapping it with an HTTP admin API.

https://github.com/aetrion/erl-dns

Cieplak··on Ask HN: Can Kotlin Native be a possible contender for Go on server side?
If you're optimizing for performance, you might consider C++. That said, if you're building software that accepts untrusted user input, there's a learning curve for adhering to secure coding practices:

https://www.securecoding.cert.org/confluence/x/BgE

Cieplak··on Pimax: The World's First 8K VR Headset
I wonder if you can code on it or use it as a general purpose display.
Cieplak··on Magic Leap looking to raise at a $6B valuation
Transistor count is a limited metric. That said, the A11 supposedly has 4.3 billion transistors, which is more than IBM's 12-core POWER8 chip's count. Apples to oranges, since the A11 has far more application-specific circuitry and much lower power consumption & clock speed.

https://en.wikipedia.org/wiki/Transistor_count

Ps: should be noted that the embedded GPU in the A11 contributes many transistors.

Cieplak··on Java Reflection, 1000x Faster
Although not a realistic option for everyone, I find c++ templates to be simpler than java annotation processors for type-safe compile-time code gen.
Cieplak··on Better Database Migrations in Postgres
Sqitch is a pretty useful migration tool:

http://sqitch.org

Cieplak··on AWS Network Load Balancer
I wonder what they wrote it in. I'd guess C++, Java or Erlang, or a combination of those.
Cieplak··on How ACH works: A developer perspective (2014)
Ah, yes, for interbank reconciliation and talking to the Fed. Typically not for merchant services related ACH applications.
Cieplak··on How ACH works: A developer perspective (2014)
Every bank I've worked with uses SFTP rather than FTP.
Cieplak··on Building Reactive Terminal Interfaces in C++
Thanks for sharing! This is awesome because it's so much easier to embed than Python Prompt Toolkit, which IMO is the state of the art for building terminal-based interfaces. RxTerm is exciting though because it isn't constrained performance-wise, is MIT licensed and it compiles to native code and static binaries and overall lends a simpler packaging and distribution experience.

https://github.com/jonathanslenders/python-prompt-toolkit

Cieplak··on Latency matters
With an arduino and an LED, it's simple to test the limits of one's perception. Copy one of the hello world LED blinking programs (basically a square wave to a GPIO pin) and modify the frequency of the blink. I see a rapidly blinking light around 15ms period, and a solid light around 10ms period. To me that implies that my human sample rate is about 12ms, although there could be other factors at play, such as capacitance in the circuit.

Edit: s/frequency/period/

Cieplak··on Talos II
Will it support FreeBSD? Of course it would run it, but I don't have time anymore to write my own device drivers.
Cieplak··on Why I Choose Delphi
Since Delphi derives from Pascal, it seems appropriate to mention Project Oberon, an awesome OS project that Niklaus Wirth (creator of Pascal) worked on:

http://www.projectoberon.com

If you want to borrow the book, I have a copy in my office in SoMa (2nd and Bryant).

← PreviousPage 5 of 20Next →