HNHacker News
TopNewBestAskShowJobs

ivanceras

890 karma · joined January 23, 2009

[ my public key: https://keybase.io/ivanceras; my proof: https://keybase.io/ivanceras/sigs/ekPEXeOuWO8lKD8JSz6C9A4P04saqCsamWn1PHJ97x4 ]
submissionscomments
ivanceras··on Svgbob: Convert your ASCII diagram scribbles into happy little SVG
https://ivanceras.github.io/spongedown/ I haven't revisited these projects for awhile now.
ivanceras··on Show HN: Rust transform macro ident case
This is useful for building more macros.
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
In that case, breaking up the functions into several smaller functions helps. The rule of thumb of the size of a function body shouldn't be larger than the size of a computer screen.
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
I traded a bit of performance for aesthetics by cloning the children of a node. I tried the todomvc benchmark and saw it wasn't so bad without employing optimizations in placed. It's still in it's early stage though.
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
I think If you start adding more code, the growth of the release binary will diminish. The todomvc code is only 207KB when compiled and has relatively more code than the minimal example.

There is a lot of rust compilation flags, and I have only tested a few. I also enabled a lot of wasm-bindgen features in the library, I will eventually tighten it up.

ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
You can also take a look at the window_tab_rows example. It will allow you to modularize into isolated subcomponents which you can embed into the main component.
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
You need to use the script for release mode.

$> wasm-pack build --target no-modules --release -- --features "wee_alloc"

It will shrink it down to 165KB

ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
Thanks. I think I'm pretty good at naming. I have a few repo with good names as well.

rustorm - an orm in rust

diwata - a database UI in rust.

ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
Because elm is elegant. I have written web-app with elm on the client side and rust in the backend. It was great, except for duplication of code when serializing/deserializing json data when making API calls. With sauron, I save up a lot of duplicated codes, and gotta squeeze that webassembly performance as well.
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
As long as all event callbacks are delegated into the update function and unified in an Msg enum, the code will have the same pattern regardless of how big the project is.
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
What I mean "based" is "I look at their code, and take only what I need".
ivanceras··on Show HN: Sauron – A web framework in Rust that adheres to the Elm architecture
1.) The syntax in creating the view: is just plain function calls which the rust compiler can accurately tell you about errors in your code, ie: typo, unclosed brackets/braces/parenthesis mismatch.

2.) Concise code, there is not too much ceremonial/boilerplate code to get started.

3.) Less code in the library maintain, there is no parser(which are mostly complex).

4.) Sauron is using wasm-bindgen, yew is using stdweb.

5.) It's in the early phase, so the performance is not yet optimized. https://github.com/ivanceras/todomvc-perf-comparison/

ivanceras··on NPM staff claimed they were fired after trying to unionize
yarn is just an interface to the vast npm ecosystem.
ivanceras··on Markdeep markup language
Similar https://ivanceras.github.io/svgbob-editor/
ivanceras··on A graph of programming languages connected through compilers
I like the graphing library used in this one. A quick look and search at the code leads me to this https://github.com/cytoscape/cytoscape.js-cose-bilkent
ivanceras··on Show HN: Diwata – a user-friendly database interface for PostgreSQL
CockroachDB claims to have compatibility with Postgres, but I wasn't able to make a cockroach db sample database using the postgresql dump files(cockroachdb doesn't seem to support schemas). I'll have to revisit it again to make the project work with cockroach db.
ivanceras··on FastPhotoStyle from Nvidia
>Preparation 1: Setup environment and install required libraries >Python Library Dependency

> conda install pytorch torchvision cuda90 -y -c pytorch

What is conda? How do i install it on ubuntu 16.014?

ivanceras··on Ask HN: As a data scientist, what should be in my toolkit in 2018?
Maybe too soon, but this framework[0] claims to be 2x faster than spark

[0]: https://datafusion.rs/

ivanceras··on Show HN: Diwata – a user-friendly GUI for PostgreSQL
I intend this to be a tool to be clearly see the data and do corrections when needed, even for not so very technical users such as managers and business owners. It could be a replacement for PgAdmin when you are only interested in manipulating the Data, as I have no plans of adding DDL functionalities into the project.
ivanceras··on Show HN: Diwata – a user-friendly GUI for PostgreSQL
Hi everyone, I'm the author of this app, questions and feedback would be very much appreciated.
ivanceras··on ActivityPub: decentralized social networking protocol
I'm looking for the specs of the message format used, but couldn't find it. Is it gonna be like email message format? html perhaps?
ivanceras··on Ijk – Transforms arrays into virtual DOM trees
Improve it a little bit more by by removing the single quote by turning the html tags into functions that accepts 2 arrays: the attributes and the child elements, by this time you will come across with elm in which expressing the html document tree fits perfectly in the language syntax and semantics.
ivanceras··on Announcing Rust 1.23
I'm building a user-friendly database interface for postgresql https://github.com/ivanceras/diwata . It is a very complex application, but rust and elm helps me build it with ease.
ivanceras··on Writing GUI Apps Using the Red Programming Language
How is the development experience with haxe-ui? Is it trully write once then deploy to all without any need for tweaking quirks on each of the target specifics?
ivanceras··on Show HN: Writing – A lightweight distraction-free editor (MathJax and Markdown)
Not as fleshed out as, but does support diagrams using plain text http://ivanceras.github.io/spongedown-editor/
ivanceras··on Show HN: Writing – A lightweight distraction-free editor (MathJax and Markdown)
This is not flesh out, but it does support vim keybindings. http://ivanceras.github.io/spongedown-editor/
ivanceras··on Show HN: Spongedown
Yeah, I'm guessing that too. When I load the page in firefox my new ubuntu 16 machine randomly freezes, had to reset and update the drivers suspecting it was some hardware/driver issue. However, chrome is working pretty well.
ivanceras··on Show HN: Spongedown
money
ivanceras··on Show HN: Spongedown
The shapes on the svg is adjusted to fit with source diagrams I've found anywhere online. If you have some interesting diagrams that are a bit off on the render, please don't hesitate to show it, or file a bug on the github repo.
ivanceras··on Show HN: Spongedown
This is inspired by my first project when I was still a student(2002's). One of my professor wanted to have an application that does a question and answer test for his electric/electronic class. He wanted to fit on a floppy disk, and can be distributed to all of his students. The questionnaires was then encoded in plain text and I made a parser to go through each of the questions and their corresponding choices/answer. I skipped on questions that has diagrams and figures, since the program will only run on the terminal and I don't know any simple document formats at that time.
← PreviousPage 2 of 5Next →