HNHacker News
TopNewBestAskShowJobs

snake_case

1,274 karma · joined December 22, 2014

https://github.com/jacobdeichert
submissionscomments
snake_case··on Crystal 0.25.1 released
I tried out Crystal and Kemal a few months ago and really enjoyed it. However, one issue that's preventing me from wanting to take it to production is that apparently you cannot generate fat binaries and run them without Crystal also being installed in your deployed environment.

Is that true still? If it is, does anyone know when support for "real" fat binaries (no need for Crystal on the server) will be available?

snake_case··on Actix: a small, pragmatic, and fast Rust web framework
I also recently just finished porting a side project of my own from Rocket to Actix. I'm absolutely loving Actix so far!

Other than Rocket being nightly, the other reason I switched to Actix was because Rocket doesn't have the ability to respond to requests directly within the middleware layer, you can only modify the response but not return early. This is pretty important with regards to CORS and trying to catch all OPTIONS requests. There are a few solutions of course, but all of them felt hacky or verbose.

I have no complaints with Actix yet.

snake_case··on Ask HN: How to handle bookmarks so you can find them again?
Yes, I saw this a few months ago on HN! Actually, it's got a lot of great features, but lacking the layout I'm personally looking for. The 3 col layout (in my screenshot), along with visible favicons, allows me to quickly glance and find what I'm looking for without having to scroll to far. I also plan on adding a quick filter search too.

Great job on your app though, it's very functional and much better than other bookmarking solutions I've seen.

snake_case··on Ask HN: How to handle bookmarks so you can find them again?
So, I've actually been working on a bookmarks manager for myself (screenshot)[1].

I have this exact same problem.. so many links and no good way to organize them. My previous solution was a simple markdown file that I would add my links to and then generate an html page served through my website. But this got really cumbersome. I wanted something easier to manage/edit, so I made this.

Is anyone interested in trying this out? If so, check out my profile contact info and I'd be happy to discuss it :) I'm very close to having the mvp complete, and it would be nice to get some feedback before opening it up to the public more.

[1]: http://i.imgur.com/LKSQuT4.png

snake_case··on Gatsby – A Static Site Generator for React
I created a very basic react static site generator called rovr [0]. It was an experiment I started about a year ago to learn more about react... and I also wanted to create something similar to how Jekyll works. You can mix html, markdown, and react components to create pages and layouts.

Anyway, I don't plan on supporting it... just an experiment. I should probably update the readme to state that.

While developing rovr, I was also learning ES6 at the same time. If you have any opinions on the code, please let me know!

I have checked out Gatsby before though, and it looks like a great project with many more features than rovr. Although I'm happy with Jekyll, I may try this out again in the future.

[0]: https://github.com/jakedeichert/rovr

snake_case··on Apple cloud services outage
Could this be related? Today we got an email from Amazon that our EC2 instance server has degraded hardware. We have until June 16 to spin up a new server before they kill this one.
snake_case··on FOUT is back in Chrome 50
Okay this is a logical explanation. I am probably wrong then.
snake_case··on FOUT is back in Chrome 50
I just switched from using a blocking link tag to loadCSS today which indeed loads it asynchronously. I'd say 1/5 times I am not seeing FOUT.

However I'm not seeing FOUT on Safari for Mac and iOS and Firefox for Mac at the moment.

*edit: I definitely understand that you're right Paul. If the website loads slow, FOUT is expected. However, I'm seeing it more than what I expected to with loadCSS combined with this bug report I found. So I'm kind of leaning toward the idea that it is a bug in Chrome 50. If not, I'm wrong and it's only my loadCSS causing it.

snake_case··on FOUT is back in Chrome 50
At first glance, that document states that Chrome (and the other browsers) have a 3 second timeout before showing the fallback font.

For me, I'm seeing a fallback in less than 100ms before flickering to my web font. So the timeout doesn't seem to be working right now maybe?

snake_case··on FOUT is back in Chrome 50
Yeah... I probably should have commented that earlier.

If anyone wants to see an example of FOUT, you might be able to on my website with Chrome 50. I am currently experiencing this and then I found this bug report. Reload a few times if you don't see it at first.

http://jakedeichert.com

edit: FOUT usually means a fallback font is briefly shown before flickering and rendering a loaded web font.

edit: As people have pointed out below, my situation likely has nothing to do with this possible bug. My website layout is very lightweight and Chrome is rendering it probably faster than the other browsers I tried which explains why I'm seeing FOUT more often in it. And yes, I'm loading my CSS asynchronously which is the main reason behind my FOUT.

snake_case··on Procedural Island Generation
I'll dig through my project to see if I have any screenshots of my height maps left. I believe I do somewhere.

I'd be happy to send you a build! I'll contact you on twitter.

snake_case··on Procedural Island Generation
Great post!

A few months ago, my partner and I finished a 6 month long project over the course of our final year of Game Programming. We developed an island survival game made for Oculus Rift and Razer Hydra. I did the island and environment generation including animal AI for finding the player while avoiding any of the 40 000 trees that may be in the way.

I used most of the techniques in the post except for the moisture map. I actually ended up generating rivers by accident (which turned out great) just by rearranging the order of masks that I applied to the height map. I used around 4 masks I believe to get the island to be the way I wanted. Unity took care of the rendering, I just applied my height map to the terrain.

I'm planning on writing a post soon about my experiences, but here's a video of the final version for now: https://www.youtube.com/watch?v=CTYT3fU-Cek

snake_case··on Redux Blog Example
I'm hoping to drop the 9.5s to more like 4-5s. I don't think it can reach the speed of Jekyll since Babel is heavily used to convert the jsx to js at the start of the generation. If everyone wrote pure js React code, then the babel step would essentially be eliminated which should definitely be a config option.

Dropping at least a second or two should be easy. My code is a beautiful mess right now, and I know there's so many parts I can improve, let alone also using the production version of React instead of the warning/error checking version.

Also, when I say 2 weeks, I actually meant more like 40 hours over the course of 2 weeks. It's a side project :)

snake_case··on Redux Blog Example
I'm also working on a React + Markdown static site generator heavily inspired by Jekyll.

For the past few weeks, I've been experimenting with how I could render both React + Markdown into HTML and minimize the numerous edge cases that occur during the build process.

For example, ReactDOMServer.renderToStaticMarkup(page) will remove all line breaks in the HTML output. The problem with that is pre/code elements will have their line breaks removed as well which for obvious reasons is not good. Oh and another problem, it converts all (or most, if I remember correctly) HTML entities to their literals.. so those code blocks may look pretty messed up in the browser.

But after weeks of experimenting with different rendering/build processes and libraries, things have finally been coming together recently. Unfortunately, my private repo is a mess due to all the tests and methods I've tried. I'm going to be releasing a clean public repo of the project soon after I develop a landing github.io page for it. That will also be open source and serve as a great example for how to use the generator.

However, I did rewrite my live website from Jekyll to my generator (need to come up with a good name still..) this past week.

http://jakedeichert.com

Regarding build times on my $5 DigitalOcean droplet, my website is built in ~3.7s with Jekyll and ~9.5s with my generator. I still have many ways to improve performance and I haven't tested NODE_ENV production mode yet which the React team says should be much faster due to no warnings/error checking. Though, most of that build time is due to Babel converting my ES6+JSX components into actual JS that Node can execute. I'll be focusing on lowering this build time for the next week or two probably.

snake_case··on Evolvr.io – IMDb for Products and Companies
I'm not the creator unfortunately.. I just thought it was pretty awesome!
snake_case··on GetAwesomeness – retrieve all amazing awesomeness from GitHub
HN auto-capitalizes the first letter
snake_case··on Docker GitLab
This isn't official, not made by the people at GitLab.
snake_case··on GitLab Flavored Markdown (GFM)
I can't tell if this is exactly like GitHub flavored markdown or not...

https://help.github.com/articles/github-flavored-markdown/

snake_case··on Brackets editor 1.2 released
I tried Brackets once, but it was really web developer oriented from the start. I went full Atom a couple weeks ago and I love everything about it except its opening speed. It just took 9 seconds to open on my iMac and I haven't installed any plugins really. Sublime opens instantly. Really hoping the Atom devs can speed that up...
snake_case··on Rust 1.0: Status report and final timeline
Since you ported from a C++ codebase, how have you handled situations in your game where a lot of inhetitance was used? You may not even use inheritance much in the first place however, just curious about your rust-like solutions for typical c++ game development practices.
snake_case··on Enough's enough: Contract teaching at a Canadian University
On a related note, University of Toronto contract professors are about to strike because of low wages.

Source: http://www.thestar.com/yourtoronto/education/2015/02/12/u-of...

snake_case··on Papyros – Arch based OS with material design
Apparently this is just another name change from Quantum OS which was originally called Quartz OS.

https://plus.google.com/app/basic/communities/10402418756809...

snake_case··on DirectX 11 vs. DirectX 12 oversimplified
With the performance gains of Mantle and DirectX 12, where does OpenGL exactly fall within all of this?
snake_case··on Sunrise Privacy Policy
> Notwithstanding the above, certain Third Party Services like Apple Calendar do not offer a developer API and we must obtain your login information to enable a connection to such Third Party Service. In such event: (i) we will use that information only to login to the Third Party Service on your behalf for the purpose of providing you content from such Third Party Service and (ii) you must use the settings in your account on the Sites or the App to revoke our access to such Third Party Service.

So they technically have full access to everyone's Apple/iCloud accounts? That's what it sounds like so far.

Is it safe to assume, all other apps that connect to Apple/iCloud also have full access?

snake_case··on Partial commits in GitHub for Windows
Now that would be a funny situation
snake_case··on Announcing Rust 1.0 Alpha
Yes, I think you're right!
snake_case··on Announcing Rust 1.0 Alpha
I guess I should mention... I did write a maze game for a final project in a different class with it. This semester, I was one of the few that actually wanted to work hard on my engine. I just find it really fun because there's so many problems you have to think about when developing an engine, and even more solutions. It's very rewarding for the brain.

This semester, I used an app to keep track of how much time I put into every class.

- game engine: 106 hrs

- AI: 10 hrs

- physics: 10 hrs

- ogre: 12 hrs

As you can tell, my game engine was the thing I worked nearly every day on, mostly late at night. If I took an assumption about my class average on hours put into their game engines, I'd say a safe guess is around 15 hours if we don't include my time and the 2 others who also put an insane amount of time into their engines (it was pretty much a competition between 3 friends to outdo each other).

Back to making my maze game... We had the entire semester to work on either a solar system or a maze game. I pumped out the maze game in 3 hours with my engine on the day it was due. The thing is, I was confident with my engine. I put so much work into it, and I understand how it worked under the hood, that I knew I could produce something very fast and easily with it.

The game itself was simple. Have a first-person camera walk around the maze, pick up a key, and then go to the maze exit and open the door. Even though I did it in 3 hours, I also included the ability to pick up a gun, attach it to the camera like an FPS; added a skybox; added a simple sin wave twirl for objects sitting on the ground; and a few other small details here and there.

Anyways, sorry I went on for a little bit there. I'm just really happy with how much my engine is progressing, but it still needs a lot of work and polish. I'm way more open minded now after this discussion. I feel confident about not needing inhetitance now, especially since I feel like in a couple months I might port everything to Rust.

I also realize that it was very risky leaving that project until the last minute. If I ran into an issue, it could have severely messed up my mark. Making a game at the same time as an engine does indeed help with the engine development, I see the benefits of doing so. When I get a chance to continue working on it, I will probably continue developing the maze game along side it.

Anyways, thanks for those links, I'll be checking them out tonight!

snake_case··on Announcing Rust 1.0 Alpha
But, I still need inheritance. DuckComponent would need to inherit from Component in order for my GameObject to add that to the list of components attached.

Am I wrong?

snake_case··on Announcing Rust 1.0 Alpha
This also is a good solution to my problem. Thanks!
snake_case··on Announcing Rust 1.0 Alpha
Thanks, I'll definitely take a read through this!
← PreviousPage 3 of 4Next →