News for hackers. Stuff that matters.

_iostreamer_

Show HN: Design architecture using code and visually simulate it in browser

https://github.com/metz-sh/simulacrum

Hey HN,I have been working on this for a few months and recently open sourced my work. It’s a code playground where you can write TypeScript based code and the bundled runtime will execute it visually.Here are some examples that you can try right away: Hello world https://app.metz.sh/template/2Average stock price(Event based system) https://app.metz.sh/template/7A polling setup(Shows parallel...

( Read More... | 2 comments | 4 points | on HN )
Re:Don't Be Clever on Thursday August 03, 2023 @09:36AM (#36985691)
I am not sure if teaching this skill would help or is possible.

But I do agree with the direction of your thought. The reading material at least needs to be inherently balanced rather than writing itself getting balanced out by 50% of articles talking about "Using proxies to prevent null pointer errors"(guilty of writing this) and the other half being "Maybe proxies are a bad idea".

Re:FuncShell – A Haskell-based alternative to awk on Monday May 01, 2017 @11:57AM (#14238637)
Also, the font is Adobe source code pro.
Re:FuncShell – A Haskell-based alternative to awk on Monday May 01, 2017 @11:36AM (#14238374)
>The only oddity I noticed isthe rather large 68MB binary file committed into master in the repository.

Thanks for bringing it to notice. I did this and later realized I can opt for the github release option[0]. I will fix this and the installation url asap.

[0] https://github.com/iostreamer-X/FuncShell/releases

Re:FuncShell – A Haskell-based alternative to awk on Monday May 01, 2017 @11:11AM (#14238116)
I understand that this caters to a very specific audience which knows haskell. Hence I plan to support JS as the inline language. I don't want to create a new JS version because I want to learn more of Haskell :p
Re:FuncShell – A Haskell-based alternative to awk on Monday May 01, 2017 @11:08AM (#14238093)
Not really, in the example of df, I was filtering on the basis of size, which is not int usually but a decimal value, hence I had to provide the type hint.
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @10:35AM (#12129289)
I am sorry, it slipped from my mind. I will add it now.
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @10:26AM (#12129221)
This seems to work, (ps -ef)().map((a)=>{return [a[0],a[7]]}).forEach((a)=>{console.log(a)})
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @09:39AM (#12128894)
Thank you!

Regarding how I structure the command output, this is the module which does the job https://github.com/iostreamer-X/Awkward/blob/master/terminal...

It splits on basis of '\n' and removes empty chars, then finally pushes the cleaned output in an array.

Regarding, the plugin system. Well, honestly I haven't thought about it but I do like the sound of it. Thanks for sharing the idea.

I am yet to try hyperterm but from what I have seen, it looks sooo awesome, and I think things could get 'awkward' there :p

Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @09:32AM (#12128851)
I understand and agree. You could see this thing as me riding the JS hype train.
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @08:43AM (#12128540)
Thank you!
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @08:43AM (#12128536)
I am gonna try PowerShell now. Never used it.
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @08:42AM (#12128528)
I would love if that happened :D
Re:Awkward – A Node.js-based terminal emulator on Wednesday July 20, 2016 @08:41AM (#12128526)
That sounds so good and better. Thank you, I will work on it.
Re:Apply HN: Grid – a Decentralized AI Assistant on Saturday April 16, 2016 @11:49PM (#11513423)
I agree. The AI part of the idea is relatively new with respect to the network part. To be specific, we have been working on AI since January and to put things in perspective, we started working in December 2014. All this time, we just worked on the decentralization aspect and the plugin framework.

And regarding the implementation of these two separate ideas, well, Grid is both of them at the same time and how we present it depends on what demographic are we dealing with.

So, yes, it's one thing at a time for us :)

Re:Apply HN: Grid – a Decentralized AI Assistant on Saturday April 16, 2016 @01:42PM (#11511497)
"Notify me when the crowd outside [this] stall is below 50"

This situation demands the location of your device. Now, the app would hide your identity by using a hash in place of your name or MAC. This is our initial solution and if something better comes up or if a more complex situation arises then we would implement something better.

Re:Apply HN: Grid – a Decentralized AI Assistant on Saturday April 16, 2016 @09:44AM (#11510569)
It has been just 3 years since I got my internet connection. And thus I am aware of what it means to be disconnected. Our initial idea wasn't even remotely about AI. I just wanted to make something which could act as a backup network, something which people with no internet(we have quite a share of this type in my city) could also use.

You see, its not just about privacy. A decentralized network helps you connect to people around you. And about the AI part being difficult, well, good stuff is always difficult ;)

Re:Apply HN: Grid – a Decentralized AI Assistant on Friday April 15, 2016 @01:45PM (#11506227)
A bus schedule would have been of great help if the system was pretty organized. But, in my city, it's a circus show. Multiple buses and jams on bus stops. To curb this issue, initially, users would have to mark the buses. This is something like the bitcoin community, where the users of the system help in operating it and in return get its services.

Chicken egg problem. My archenemy. Our solution for now, is to rely on our "Extra feature" ie Plugins. Existing startups and businesses can extend their own functionality by making their plugins. For example, there are tons of anti-rape apps on the market but almost zero which work offline. This would convert their users into Grid users. We could also get businesses to create exclusive content or offers in return for our Ad platform/Analytics.

Just in case you are thinking that marketers/businesses will get your personal data and profile, then let me say this again, your data stays on your phone. The app in turn will filter out all the ads based on your preferences.

Re:Apply HN: Grid – a Decentralized AI Assistant on Friday April 15, 2016 @11:31AM (#11505101)
The system is all about crowd sourcing information. Android can tell when a phone is charging or not and phones using our app could tell the grid. So, that gives us electrical outlets in the coffeehouse. We won't be accessing some public bus time table. Rather, the grid users riding the vehicle could give us real time and reliable data about the same. And, a person's personal space requirements, well, honestly, that's a tough one, and it needs more thought than what we have given to our current flow.

Since, Grid is all about optimizing daily lives, we would target grocery shops, local general stores and weekly markets, initially.

We are relying heavily on the sensors provided with the phones, along with the most important, location data. We believe we could have at least an alpha if we start with these streams of data.

Older »