|
Because Roslyn is too rich for the CodeDOM. The CodeDOM supports just enough code constructs to make a program, even missing some basics like switch case and post increment operators.
I don't know what you mean by your second question? Do you mean using the new C# language features to do source generation?
There are a number of reasons not to rely on that, least of which is lack of flexibility. I can run this code in any pipeline as a CLI tool. With source generation it's stuck as part of the C# compiler work during the build itself, which creates issues, like being able to manage the staleness when the input file changes. It's more trouble than it's worth, and imo the wrong tool for this particular task.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Until very recently I've been maintaining a Windows project (UI, hooks, COM, all the fun stuff) that I started selling in 2008.
If I hadn't checked in the exes for some of the utilities needed (installer tools, license stuff, etc.) I would have been screwed! Yes, I could have modernised it and removed many of them, but it simply didn't make commercial sense to do that.
Purity is all well and good, but at the end of the day shipping software wins over intellectual mas rigour.
|
|
|
|
|
honey the codewitch wrote: Anyway, my lexer generator, Rolex...I'd love input on this.
I suggest you change the name.
Besides making it difficult to google for, I would be concerned that you might get a lawyer letter telling you to desist.
honey the codewitch wrote: But I've gotten flack for checking executables into git on my public projects
I would tend to agree with them.
I don't want to download exes from a small site which are supposed to run, quite possibly, with admin permissions.
So either you add the code, or you add instructions one which other sources are needed and how to add those into the solution.
|
|
|
|
|
As far as trademarks, they don't apply across different industries, so I'm safe there. If I was making timepieces, that would be a different story, at least last time I asked a lawyer.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
At least here in Norway (and I believe most European countries), the owner of a trademark may register it in an arbitrary number of product classes - but there is a fee for each class, so you probably wouldn't register it in all classes available. (That is like applying for a patent in every one of the 195 countries in the world: It doesn't pay!)
Still, you might be surprised: The Japanese Kenwood Corporation sells their electronics, such as stereo systems, under their 'Kenwood' brand name in all European countries but Great Britain: GB has a manufacturer of kitchen machines, named Kenwood. I don't know for which product classes Kenwood GB has trademark protection. Apparently, they are afraid that someone might confuse a Kenwood vinyl turntable from Japan with a Kenwood Chef mixer. After all, they both turn around ... So the vinyl turntable, as well as the amplifiers, was marketed in GB under the brand name "Trio".
So, before making a final decision: Check up in which product classes Rolex is a registered trade mark. It may be registered in a number of classes that you are not aware of, because the owner of the trade mark has not marketed any products competing with yours in your area.
|
|
|
|
|
Taking what you said into consideration, I did some digging and this is all I could find.
ROLEX Trademark of Rolex Watch USA, Inc. - Registration Number 3312062 - Serial Number 78864831 :: Justia Trademarks[^]
Goods and Services are listed as Watches on this one. I found one other Justia link for Rolex that said like, watches, watch parts and accessories.
I think I'm safe enough, and if I'm not, we can gather our lawyers, guns and money and sort it out.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: As far as trademarks, they don't apply across different industries
lol...that doesn't matter.
Sure if you want to pay a lawyer you might win. But do you want to pay the lawyer just to validate your legal right?
Also doesn't change the other point about someone looking for your library.
|
|
|
|
|
If Rolex, which isn't even publicly traded cares so much about a little open source project, let them sic their lawyers on me.
Until I get a cease and desist letter, it's staying up as is. I'm not violating any laws.
Edit: Mine is easier to search for than the two most popular - Flex and Bison. I'm okay with that.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: If Rolex, which isn't even publicly traded cares so much about a little open source project, let them sic their lawyers on me.
lol...sorry can't explain what lawyers, marketing and C levels might get upset about.
|
|
|
|
|
It started out last night, and I posted about it here: Help, I Can't Drink My Beer[^]
Last night, I wasn't able to stay awake. I was nodding off because I was holding an empty glass. In an effort to stay awake, I tried again. I poured beer into my glass and held the glass of beer in my hand. That way I would have to focus on not spilling the beer. If I'm focused, I can't nod off. If I can't nod off, then I can code. Then I drink all the beer in the glass again.
If you don't succeed, try, try again.
|
|
|
|
|
The ROTC students at my school used the technique of holding their foot a few inches off the floor.
If you fall asleep, your foot drops and you wake up.
…and no chance of spilling your beer!
Their student leaders would force them to march/run all night and then require them to attend all classes.
|
|
|
|
|
englebart wrote: The ROTC students at my school used the technique of holding their foot a few inches off the floor.
If you fall asleep, your foot drops and you wake up.
Oh, I like this!
|
|
|
|
|
Have you considered trying this with coffee?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: Have you considered trying this with coffee? [Coffee]
I hadn't thought of that...
|
|
|
|
|
NO, you did not seriously consider that... Just a laughs...
|
|
|
|
|
Steve Raw wrote: I would have to focus on not spilling the beer. If I'm focused, I can't nod off. If I can't nod off, then I can code I'd rather think the code written under those conditions would not be the greatest.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: I'd rather think the code written under those conditions would not be the greatest.
You're exactly right! I experiment and break things on my current project if I've had a beer. This actually leads to new discoveries. It's sort of like how Penicillin was invented.
|
|
|
|
|
Can I park my flying car outside my condo? It's a convertible.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I was going to post a YouTube clip of the Jetson's, but to sit through 5 mins. of ads is just ridiculous.
As the aircraft designer said, "Simplicate and add lightness".
PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
AdBlock on PC, ReVanced on Android, ads on Apple.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Gerry Schmitz wrote: Can I park my flying car outside my condo? It's a convertible.
A flying car? Well, that's ridiculous!
I could be wrong, though.
Just ask Mr. Jeeves to reserve the helipad.
|
|
|
|
|
bug people : hey, there's an issue with a report we generate...
me: naively opens up one of 3 report related files.
hmmm, resharper doesn't start.
looks at the report related files, first one has 37,000 lines and the other 2 files 17,000 and 15,000 lines.
There's another file in our solution with 46,000 lines !!!
(all formatted by rogue gremlins)
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I see your huge files, and raise you 12300 lines of C code for PNG libary validation[^]. This is just the program that runs the tests. It is full of "interesting" things like parameters named "this" and "that":
static void
image_transform_png_set_palette_to_rgb_set(const image_transform *this,
transform_display *that, png_structp pp, png_infop pi)
{
png_set_palette_to_rgb(pp);
this->next->set(this->next, that, pp, pi);
} Also structure members called "new":
char wname[FILE_NAME_SIZE];
png_store_buffer new;
store_pool write_memory_pool;
For good measure, you should know that:
#define FILE_NAME_SIZE 64
If you are wondering how this can work, check this out:
#ifdef __cplusplus
# define this not_the_cpp_this
# define new not_the_cpp_new Next time you hear the BS about "given enough eyeballs...", show them this crap open-source code.
Mircea
|
|
|
|
|
So in that first method, there is:
const image_transform *this
That's a const image_transform pointer named this!?!
Oy!
|
|
|
|
|
raddevus wrote: That's a const image_transform pointer named this!?! Indeed! But if you look at the #define I mentioned, it turns into:
const image_transform *not_the_cpp_this
And there are many, many functions that all use the this and that parameters. I swear, the guy who wrote this code (John Cunningham Bowler according to copyright notice), had the worst naming system I've ever seen.
Also, if you think this is code from the '80-es or'90-es, you are wrong again, at least according to copyright notice:
* Copyright (c) 2021 Cosmin Truta
* Copyright (c) 2014-2017 John Cunningham Bowler
And this is the code used to validate libpng, one of the most popular pieces of open-source software.
Mircea
|
|
|
|