HNHacker News
TopNewBestAskShowJobs

Cieplak

6,168 karma · joined September 30, 2011

λ𝑓.(λ𝑥.𝑓(𝑥 𝑥))(λ𝑥.𝑓(𝑥 𝑥))
submissionscomments
Cieplak··on PyO3: Python Rust binding
pybind11 is a similar library, but for interfacing with C++ from Python:

https://github.com/pybind/pybind11

Cieplak··on OpenBSD switches the default compiler on amd64 and i386 to clang
What are some cool ways to introduce vulnerabilities into LLVM so that even "secure" languages like Rust are vulnerable to software-based exploits?
Cieplak··on Verizon admits to throttling video in apparent violation of net neutrality
Pretty sure all 4G networks deprioritize streaming video and occasionally inject TCP resets. It's simple to test by loading the same content from multiple internet connections, then observing that the performance is consistently degraded on one of the connections.
Cieplak··on Announcing Rust 1.19
I should clarify the "remove async IO" as the decision to not include an event-loop primitive in the core language or stdlib, which is tantamount to complaining about GC not being part of Rust core :)

Metal IO is an awesome library as well:

https://github.com/carllerche/mio

Cieplak··on Announcing Rust 1.19
Great running into you at Shizen @steveklabnik!

Just started using Rust in a serious capacity this month to secure some C++ functions that are called by our Erlang apps, with great assistance from Rustler [1]. Several people have complained to me about the decision to remove async IO from Rust, but I'm really grateful that it happened, because it lets Rust focus on being the best at what it is. Erlang's concurrency primitives and Rust's performance & security are a match made in heaven.

[1] https://github.com/hansihe/rustler

Cieplak··on What Does It Take to Track a Million Cell Phones?
Please don't abuse this :)

https://github.com/ernw/ss7MAPer

Cieplak··on Customizing My Postgres Shell
Also, check out pgcli:

https://www.pgcli.com

Cieplak··on Goldman Sachs relaxes dress code for techs in fight for talent
Serge Aleynikov, you're awesome and everyone here loves you. Thanks for all your hard work and open source contributions.

https://github.com/saleyn

Cieplak··on Erlang NOTP: a middle way
In case you're like me and have no idea how to navigate bitbucket:

https://bitbucket.org/nato/notp/src/efe882a3ff3eb2e6a00d7013...

Cieplak··on Yanni – An artificial neural network for Erlang
It's definitely a very niche book; I would definitely focus on statistics and Bayesian methods before delving into genetic algorithms for evolving neural networks.
Cieplak··on Yanni – An artificial neural network for Erlang
In many ways it's a companion to this codebase:

https://github.com/CorticalComputer/DXNN2

Cieplak··on Yanni – An artificial neural network for Erlang
A native-implemented function (NIF) should always return within 1ms. If something takes longer, it should be made a port.

http://erlang.org/doc/tutorial/c_port.html

Cieplak··on Yanni – An artificial neural network for Erlang
My favorite ML book is still the Handbook of Neuroevolution Through Erlang. A bit pricey but you can borrow my copy if you're in SoMa.
Cieplak··on Behind the scenes with Tezos, a new blockchain upstart
I wonder who will be the first to posess a computer with enough quibits to properly implement Shor's algorithm and steal all the bitcoin.
Cieplak··on ZFS Is the Best Filesystem For Now
On my current laptop, I'm seeing a 20% reduction in disk usage relative to the filesystem size because of ZFS's built-in compression.
Cieplak··on How Discord Scaled Elixir to 5M Concurrent Users
Yes
Cieplak··on How Discord Scaled Elixir to 5M Concurrent Users
I know that the JVM is a modern marvel of software engineering, so I'm always surprised when my Erlang apps consume less than 10MB of RAM, start up nearly instantaneously, respond to HTTP requests in less than 10ms and run forever, while my Java apps take 2 minutes to start up, have several hundred millisecond HTTP response latency and horde memory. Granted, it's more an issue with Spring than with Java, and Parallel Universe's Quasar is basically OTP for Java, so I know logically that Java is basically a superset of Erlang at this point, but perhaps there's an element of "less is more" going on here.

Also, we're looking for Erlang folks with payments experience.

cGF0cmljaytobkBmaW5peHBheW1lbnRzLmNvbQ==

Cieplak··on How to GraphQL – A Fullstack Tutorial for GraphQL
If you treat PostgREST as an ORM, then you can easily decouple the database data model from the API representation. I imagine there are scenarios in which PostgREST would outperform certain ORMs implemented in dynamically-typed languages.
Cieplak··on How to GraphQL – A Fullstack Tutorial for GraphQL
Just wanted to give a huge shout-out to PostgREST:

https://postgrest.com

https://github.com/begriffs/postgrest

You can get many of the benefits of GraphQL using postgrest's resource embedding:

https://postgrest.com/en/v4.1/api.html#resource-embedding

We're using it in production.

PS: To be clear, you can't expose it directly to your users. We wrap it in a proxy service that provides authentication and authorization, and parses and transforms the users' URL queries destined for PostgREST. We also apply some transformations to the data coming back from PostgREST, such as encoding our internal UUIDs. It may sound complicated, but it's actually only about 200 lines of Erlang.

Cieplak··on Unikernels are secure
Hypothetically, if there were a buffer overflow in a unikernel process, wouldn't it potentially give the exploit full-system access, whereas a normal operating system would detect the out-of-bounds memory access and kill the process? I'm sorry if this is an ignorant question.
Cieplak··on Migration from Postgres to Datomic
You can achieve similar goals to Datomic using Postgres:

    create table snapshot (
        id uuid primary key default uuid_generate_v4(),
        ts timestamp without time zone default now(),
        entity_id uuid references entity(id),
        value jsonb
    );

    create table entity (
        id uuid primary key default uuid_generate_v4(),
        snapshot_id uuid references snapshot(id)
    );
Rather than mutating the value of an entity, you simply append a new record to the snapshot table and update the entity's reference to it. This gives you a full audit trail of the entity.
Cieplak··on Why can't you guys comment your fucking code?
I hate to disagree but that's fairly clean code. It's not doing anything tricky or exceedingly clever, so the code speaks for itself. They're even polite enough to separate their implementation from their interface, which is rare for projects in dynamic languages. It reads like idiomatic, OO, pep8'd python. Python is basically executable pseudocode as it is, provided the method names and parameters convey the semantics of the code.

https://github.com/facebookresearch/end-to-end-negotiator/bl...

Cieplak··on Ask HN: Who is hiring? (July 2017)
Finix | Software Engineer | San Francisco, CA

Finix is a small but nimble team of engineers developing a payments processing platform (http://developers.finixpayments.com). We work with several major financial institutions and are growing faster than we can handle with our current team.

We'd love to take you out for coffee and talk about any of the following:

* Payments

* Highly-Available Architecture on AWS

* Java 8, Quasar

* Postgres

* Cryptography

* Firmware Rootkits

* Problem Solving

* Erlang/OTP

* c++ -std=c++1z

Reach us at this base64-encoded email address: cGF0cmljaytobkBmaW5peHBheW1lbnRzLmNvbQ==

Cieplak··on Delivering Billions of Messages Exactly Once
Basically the Two General's Problem, eh?

https://en.wikipedia.org/wiki/Two_Generals%27_Problem

Cieplak··on What the heck is a parser-combinator?
Gotta love Parsec for Haskell and pyparsing for Python. Some other awesome parsing libs:

PEGTL - C++ Parsing Expression Grammar Template Library https://github.com/taocpp/PEGTL

Parboiled - Java & Scala PEG Library https://github.com/sirthias/parboiled

Nom - Rust parser combinator framework https://github.com/Geal/nom

Nearley - JavaScript parser toolkit https://github.com/Hardmath123/nearley

Neotoma - Erlang library and packrat parser-generator for PEGs https://github.com/seancribbs/neotoma

Cieplak··on Java 10 – Specification for Value Types
I was hoping the Seriously though conveyed the sarcasm of the previous sentence, given that Java is written in C++.

I agree with you that C# is a much nicer programming language than Java. The HotSpot JVM, otoh, is a masterpiece of engineering in terms of its JIT and GC optimizations.

Cieplak··on Java 10 – Specification for Value Types
Chisel is very sweet, definitely the tool I would use to implement the JVM instruction set in silicon.
Cieplak··on Java 10 – Specification for Value Types
C++ has had these things for years.

Seriously though, the JVM is killing it. Can't wait until I can compile my .jar to verilog and run it on my FPGA, or send the verilog to TSMC and get some ASICs printed out.

Cieplak··on Malware Uses Obscure Intel CPU Feature to Steal Data and Avoid Firewalls
I suspect that one can partially mitigate this risk by removing the network card from a laptop motherboard and using a USB network device that requires a software driver.
Cieplak··on List of Printers Which Do or Do Not Display Tracking Dots
Time to start reverse engineering printer firmware :)
← PreviousPage 6 of 20Next →