For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | more drschwabe's commentsregister

Amazon's repo here is open source at least so perhaps this could be remedied with an edit to their README and a PR - go for it !

Agree with you there should be credit where credit is due - I have been using QuickJS for some time and its awesome. For the cost of about 1MB you can get entire modern JS in your C/C++ binary.


It's good for quick things and prototyping cause you can always swap out those calls with native later. It's API is generally easier to remember/less typing that most native equivalents. You can also use its API serverside via Cheerio to do parsing & manipulation of html without a dom.

edit: also its way more lightweight than React/Vue/Svelte i don't necessarily disagree you shouldn't reach for jQuery if you have a dynamic page (something like uhtml+preact signals would be good if you have fair bit of rendering logic going on) but I would say you should totally try seeing how far you can get with jQuery instead of Svelte/React/Vue on simple pages.


Is it really way more lightweight than Svelte? Svelte has more tooling (of course) but it ships no runtime and only sends the user the JS they actually need to interact with your page.


Well, if you're talking SvelteKit then it requires a build step so yes, jQuery is way more lightweight.

jQuery is also pure JS whereas Svelte is Typescript so it may be more difficult to debug/hack if your primarily JS coder.


This is a brilliant idea that seems to lack execution.


FWIW I think execution could've been way worse. I mean it actually works! I can click a button and look out of someone else's window.


In what way?


Ironically now with AI art tech the fans themselves can now carry on the series as they like (including making animated flicks). Not saying this wouldn't violate C&H's IP protections nor that the resulting product will have the same essence but a creative+technically inclined fan tinkering in spare time now has the power to create an all new 'Calvin & Hobbes book' of their dreams. Even if they want to just do it for fun on their own.

Of course, if you were to put in enough effort to make a complete book (ie- 100+ page Sunday comic collections) that could stand among the rest in the original series probably best to adjust your art style, theme and content enough away from the original to make what you are doing essentially a spiritual successor - enabling you to comfortably share it with the outside world.


ControlNet model specifically the scribble ControlNet (and ComfyUI) was major gamechanger for me.

Was getting good results with just SD and occassional masking but it would take hours and hours to hone in and composite a complex scene with specific requirements & shapes (with most of the work spent currating the best outputs and then blending them into a scene with Gimp/Inkscape).

Masking is unintuitive compared to the scribble which gets similar effect; no need to paint masks (which is disruptive to the natural process of 'drawing' IMO) instead just make a general black and white outline of your scene. Simply dial up/down the conditioning strength to have it more tightly or fuzzily follow that outline.

You can also use Gimp's Threshold or Inkscape Trace Bitmap tool to get a decent black & white outline from an existing bitmap to expedite the scribble procedure.


Comfy ui is really nice. The fact that the node graph is saved as png metadata actually makes node based workflows super fluent and reproducible since all you need to do to get the graph for your image is to drag and drop the result png to the gui. This feels like a huge quality-of-life improvement compared to any other lightweight node tools I’ve used.


Yeah the PNG embedded 'drag and drop to restore your config' is brilliant.

Reminds me of Fireworks which Adobe killed off (after putting out a decent update or two to be fair) which used PNGs for layers and meta ala PSD format.

But its more analogous to a 3D modeller suite like Blender or Maya but with theoretical feature such that you could take a rendered output image and dragndrop it back into the 3D viewport and have it restore all the exact render settings you used instantly back. That would be handy!


You don't need to go through Gimp or Inkscape, this is built-in to the auto1111 ControlNet UI. You just dump the existing photo there and you can select a bunch of pre-processors like edge-detection or 3D depth extraction, which is then fed into ControlNet to generate a new image.

This is super powerful for example visualizing the renovation of an apartment room or house exterior.


Will have to play with those more thx for the headsup; I do find however for scribble outlines I like to often draw my own lines by hand instead of an auto-generated one to emphasize the absolute key areas that would not otherwise be auto-identified. Logo and 2D design for example where you may have very specifc text shape that needs be preserved regardless of contrast or perceivable depth.


That's for sure - I think we have seen other kind of edge detector or filter work better for differing use cases, especially around foreground images where you want to retain more information (i.e. images with small nitty-gritty details)

In this post, we just seek to showcase the fastest way to do it - and how augmentation may potentially help vary the position!


any tutorial you would recommend? I found https://comfyanonymous.github.io/ComfyUI_examples/controlnet...


Yeah that tutorial is decent its what I used to get going.

Note that all of the images in those comfy tutorials (except for images of the UI itself) can be dragndropped into ComfyUI and you'll get the entire node layout you can use to understand how it works.

Another good resource is civit.ai and specifically look for images that have a comfy UI embedded metadata. I made a feature request that they create a tag for uploaders to flag comfyUI pngs but not sure if they've added that yet. Or caroose Reddit or Discord for people sharing PNGs with comfy embeds.

Trying out different models (also avail from civit) is a good way to get an understanding of how swapping out models affects performance and the results. I've been abusing Absolutereality (v1.81) + More Details LORA because its just so damn fast and the results are great for almost any requirement I throw at it. AI moves so fast but I don't even bother updating the models anymore there is just so much potential in the models we already have; more pay off would be mastering other techniques like the depth map Control Net.

I would say that above all extensive familiarity with an image editor like Photoshop, Gimp, or Krita - will get you the most mileage particularly if you have specific needs beyond just fun and concepting. AI art makes artists better, people who struggle with image editing will struggle to maximize this new tech just as people who struggle with code will have issues maintaining the code Copilot or ChatGPT is spitting out (versus a coder who will refactor and fine tune before integrating to the rest of their application).


Is there any solution for consistency yet that goes beyond form and structure and gets things like outfits, color, and facial features consistent in an easy way to compose scenes with multiple consistent characters?


LoRA for specific items/characters + regional prompting covers a lot of that area.


Consider switching to Linux, I think you will see this trend a lot more.


What trend? The ignorant trend where a niche group of dev thinks Windows support should be second class, even though it ranks highest used by personal and professional developers year after year?

I use all 3 OSes and this superiority complex is tiresome


> superiority complex

what do you base this ad hominem on?

If you try to convince your company to deploy servers on a windows environment instead of linux, you better have a really extraodinary reason, that's just a fact. If Windows is any good it's because of the software ran on it (games and related drivers?), despite the OS


>what do you base this ad hominem on?

Look at OP's original post. Why would one consider a change at all when everything that one needs is already in the OS? I mean... it could perhaps be a preference. Shocking right?

Anyhow, I wouldn't convince any company to use windows environment unless necessary as you mentioned. However not all software are web servers and there are plenty of reason, not extraordinaryly, requiring a windows environment.


Yeah but Bun is a web server. This thread is not about a tool for domain where Windows shines. Windows always sucked for web dev and for web deployment. Bun is an open source tool. The devs don't owe anything to Windows users. As a matter of fact, they are trying to bring it to Windows. It would probably already landed if it the support was as easy as for unix based system.

If you have circumstances requiring Win env and you want to do web stuff, run WSL. If you want to do web stuff and Win without WSL is your _prefererence_ don't expect the world to bend for you -> keep wallowing in your masochism.


One theory: TypeScript

Maybe tangential, but I have seen a pattern of projects that go all-in on TypeScript only to become overly complex & lose development steam. I'm not saying that is or will be the case with Codemirror but I do think there is some merit to the idea that JavaScript helps developers code effectively at the high-level whereas TypeScript has a way of taxing that process; detracting from what made the original project come together in the first place.

Of course, there are plenty of projects that have done exceptionally well after going all-in on TypeScript (or from the get-go) so take this with a grain of salt.


Nice to see sprae on there it's handy when you want reactivity with minimal fuss.

I would lobby for featuring Webreflection's uhtml it is a workhorse for me personally.


Agree! Webreflection is a huge reference when it comes to using Javascript to its fullest, reducing dependencies and using the platform™


Thanks for the recommendation! I'll add it to the list as soon as possible.


Thanks for the links. How do you suggest startup entrepreneurs work around the broader moral dillemma here?

On one had, we shouldn't feed the flames but on the other hand - we may need a foundation of patents for defensive measure or to reaslitically compete against the likes of IBM who have a gajillion patents.

And I'm aware of at least one government grant programs that requires patents apart of their application process. From what I can asertain this is otherwise money on the table, after meeting that prerequsite.

Are you suggesting we walk away from technology grants and just wing it with regards to what may happen when IBM legal team (or other patent troll) comes knocking ?


> How do you suggest startup entrepreneurs work around the broader moral dillemma here?

Turn your invention into prior art. Publish it, in detail, publicly. Then, if someone else tries to patent it, it's much easier to contest the patent application.


If you are in the game, you have to play it.

You don't have to advocate for it, and you can advocate against it. But you may not have much a choice on playing.

Anyway, defending a patent requires some deep pockets, and if you don't defend them, they are just cost with no benefit.

Besides, the IBM legal team will come knocking, won't tell you anything that can let you understand why, and you will have no other option but to comply. How many patents you have, or if they actually have one that you are infringing isn't really relevant.


Good points

> Anyway, defending a patent requires some deep pockets, and if you don't defend them, they are just cost with no benefit.

unless you just need them for gov't grants that require them - in this case it's an investment into a pre-requisite and if the net capital from the grant is higher than the cost of the patent you got then hypothetically you are ahead; unless there are recurring/other expenses involved in 'maintaining' the patent that I'm not aware of.


Can anyone comment on which government grants require a patent?


SBIR grants will see it as a positive if you have a potential monopoly. They want you to have a successful business and a valid exit strategy is to sell out the IP or license it.

Require is a strong word, it's just a strategy they recognize as valid.


Can you point me to the government grant program that requires patents as part of the application process? That is potentially very concerning. I would be interested to learn more.


It's a Canadian tech grant; non-dilluting - and they don't explicitly specify it is a requirement, but from the rep directly working for the program and anyone who I've talked to who has applied to the program your chances of getting the grant are basically zero if there is no IP. Coincidentally, they have another smaller grant you can apply for that goes direct to a service provider of your choice; and basically they suggest you use this first to pay for a law firm to get a patent started and then apply for the larger grant thereafter.


I've personally witnessed venture capital firms requiring patent filings as a prerequisite for funding. An acquaintance of mine once worked for a startup where the team was diverted from product development to ideation on patentable processes. The focus was less on innovation and more on creating a unique claim to secure funding, which I find misguided.

The VC, instead of nurturing the inventive process, largely contributed to the crafting of a patent application. The objective was to design it in such a way that it was cryptic and as widely applicable as possible. Despite its questionable practices, the patent was approved, leading to the subsequent funding of the startup.

However, the market didn't respond well to the idea, necessitating a pivot. Meanwhile, there were other companies independently pursuing similar ideas. They could have invested significant time and resources, unaware that they were infringing on an existing patent. It's a speculative guess, but I can't help but wonder if the VC fund is vigilantly searching for successful implementations of the patented idea, ready to initiate lawsuits for patent infringement. This illustrates the potential misuse of patents, which, rather than fostering innovation, sometimes stifle it.


> And I'm aware of at least one government grant programs that requires patents apart of their application process

Any examples? Interesting, first time hearing about this


I worked with companies that were funded by DARPA and patent filings were required. This was all in defense related tech like vision systems, robotics, communications, etc. There's a special portion of a patent application where you have to disclose that government funding was involved, so it must be a common occurance. If the company decides to later change the strategy for handling pending patent applications, they needed to get DARPA approval first.


Not a question, cause you already mention this here, but just wanted to give you extra props for supporting CommonJS out of the box; keep up the great work.

https://twitter.com/jarredsumner/status/1475238259127058433?...

have been doing this (using ES and CommonJS modules in the same file) in clientside code via Browserify or Rollup ever since ESM got popular but it's a bit more nuanced and annoying to do in NodeJS


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You